Search results
Results from the WOW.Com Content Network
When editing a template (documentation) page, users are supposed to insert the following line, where TemplateData shall appear: {{subst:#invoke:TemplateDataGenerator|f}} After click on [Preview], the generated lines are displayed and can be inserted by copy & paste to replace the temporary transclusion.
The following can be used as a starting point for a new infobox; simply copy-n-paste into the page designated to hold the new infobox and add or delete parameters as needed. Editors who want to take advantage of the more advanced features of infobox can copy-n-paste the comprehensive skeleton from {{ infobox }} .
When {{Parameter names example}} is used on an immediate subpage of its target template – e.g. on the target template's /doc page – its own |_template= parameter identifying the target template may be omitted. In other words, the code above, if used on Template:Infobox/page (where page could be "doc", "testcases", etc.), would become:
An inline source code string. Template parameters [Edit template data] This template prefers inline formatting of parameters. Parameter Description Type Status Code 1 code The code to display. String required Language 2 lang The programming language of the source code. List of valid values is at: [[mw:Extension:SyntaxHighlight#Supported_languages]] Default text String suggested Class class no ...
The infobox documentation page usually contains a convenient "blank" template that can be copied directly into the target article. The template consists of opening ({{) and closing (}}) double braces that contain the name of the infobox and a list of parameters without values. An editor then fills in the value for each of the parameters to the ...
The system fetches a one-time copy of the template text and substitutes it into the page in place of the template tag. If anyone edits the template afterwards, pages that used the subst: keyword do not update. Sometimes that is what you want. If the template that you want to edit looks like {{foo}}, you would go
Help:Template, the main technical help page on templates, provides information on creating and using templates; Wikipedia:Template namespace, guidelines and tips for use of templates; Wikipedia:WikiProject Templates, the WikiProject that looks after template-related issues
To add a new template to a page, place your cursor where you want the template to be inserted, and click on the "Template" icon (a puzzle piece) in the "Insert" menu. Start typing the name of the template you want to insert. When you see it on the list, click on its name. Then click "Add template".