Manual talk:Creating pages with preloaded text
From MediaWiki.org
Contents |
[edit] Preloading "Subject/headline" Text Field
Is there a way to preload the "Subject/headline" text field when adding new comments in the discussion pages? Example. —Sledged (talk) 18:28, 23 January 2008 (UTC)
- There is a way now (was added some time ago): preloadtitle parameter, see Manual:Parameters to index.php. —AlexSm 19:29, 5 May 2008 (UTC)
[edit] Preloaded pages in Preview mode
Is there a way to put a new page with preloaded content in a preview mode (as if the user had just pushed the preview button) ?
--AkashicChacal 15:42, 5 May 2008 (UTC)
- There is user option in Preferences «Show preview on first edit», and I even think its this way by default. Anyway, yes, you can force preview or no preview with preview=yes (or preview=no) URL parameter. —AlexSm 19:29, 5 May 2008 (UTC)
[edit] General How To regarding the Preload function
Maybe I'm utterly blind, but as of yet I fail to see how the inbuilt function Preload (included in the basic Mediawiki package, not via extension) would be set up to work. Basically, what I've expected to find is this: A user creates a new page (using any of the usual methods given) and sees the editor window opening with an already loaded Preload-page in it.
Yes, of course I've read how the index.php-parameter could be altered to force the preload to happen. Just that's not what I'd call a userfriendly preloading method. Users can type new page titles into their browsers address line, they can click the red link of a failed search result, they can create a new link on another page and click it... you get the drift, there are quite many methods to create a new page.
Simply put: Is there a method in the basic package to get a preloaded page on creation of a new page using any of the given page creation methods? And if yes, how would I go about to install it?
Thanks, --Carsten3m 16:16, 16 June 2008 (UTC)
- I believe the answer is "No". preload is useless without extensions, except for expert users whom you can tell "Copy this URL to your browser's location field and modify its title param with the name you want for your new page. -- skierpage 01:39, 13 July 2009 (UTC)
[edit] Feature request: preloadtext="stuff this into edit box"
Hi. Preload is handy!
A dynamic (runtime) "preloadtext=#redirect:[[Target page title]]", say, would be cool, too.
Thanks. Saintrain 15:05, 15 September 2008 (UTC)
[edit] ULR parameters to index.php
The explanation says: "Preloading can be done with a preload parameter in a URL". But how can I produce such a link in an article? I cannot find how to add URL parameters to a link in double square brackets... —someone 12:14, 20 Nov 2008 (UTC)
- One approach to adding URL parameters is with the "magic word" fullurl:
{{fullurl:My Page name|action=edit&preload=Some_template}}
produces http://www.mediawiki.org/w/index.php?title=New_page_name&action=edit&preload=Some_template. You have the ugly URL with external link indicator, and you still have the problem of getting users to replace New page name with the actual page name of their new page. So if you can add extensions, <createbox> or <inputbox> is probably going to work better . -- skierpage 01:34, 13 July 2009 (UTC)
[edit] Passing arguments to preloaded templates
I'm able to preload a template just fine, and it's really handy. Is there some way to also pass values for arguments to the template when preloading?--140.247.59.121 16:00, 14 July 2009 (UTC)