Template:Preload/proxy-preload/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>SilverLocust at 22:01, 11 December 2024 (Copied from Template:Preload/proxy-preload from the initial revision by Mmkaram). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Purpose
This page is just a proxy preload that allows it's parameters (from the querystring) to be used to prime the contents of another page
Reference
https://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text
Mediawiki Example
https://www.mediawiki.org/wiki/Project:Sandbox?action=edit&section=new&nosummary=true&preload=Manual:Creating_pages_with_preloaded_text/param_demo&preloadparams%5b%5d=first%20value&preloadparams%5b%5d=second%20value
Other Example
index.php?title=NewPageThatShouldntExist&preload=Template:Lookup/proxy-preload&action=submit&preloadparams%5b%5d=Omar
The example above should substitute the $1 in the text of this preload page with the value passed in the parameter (which is Omar)