ViewsWatchers |
[edit] What are Templates?
[edit] How do I create a Template?To create a template, select "Other page" from the "Add" menu, change the namespace to "Template", and enter the title of the template page that you want to create. This will take you to an empty page. Enter the text of the template and save the page. [edit] Can templates have dynamic text?Yep. In wiki language, dynamic text is called a 'parameter'. Follow the instructions at the Mediawiki help pages, until we can draft something here. [edit] What is the "Subst" commandOrdinarily, templates must be edited on the template's page. All pages containing the template will be updated when the template page is saved. When the user edits a page containing a template, she will only see the {{Template title}}; she will not be able to view or edit the template text on the recipient page's edit screen. The Subst commands makes the template temporary. That is, when the recipient page is saved, the current text of the template with its wiki commands is copied onto the recipient page. The recipient page is not connected to the Template page after it is saved. Any future changes to the template will not be updated on the recipient page. This is very helpful in applications like our welcome protocol. The Welcome1 message can be edited on its template page as the system changes. Older welcomes containing the "subst" command will not be updated. But, when the new user edits his talk page, he can see all the wiki commands in the welcome message. This helps him learn to use the wiki commands. Use the Subst command as follows {{Subst:Name of Template}} [edit] How do I use a Template?
[edit] Help on Specific Templates[edit] GoogleMap Template
[edit] Merge TemplateUse this template to mark pages that are candidates to be merged with other pages.
[edit] Related Pages[edit] Index of Templateshttp://www.werelate.org/w/index.php?title=Special%3AAllpages&from=&namespace=10 |