Template syntax: Difference between revisions
Jump to navigation
Jump to search
David Mason (talk | contribs) No edit summary |
David Mason (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Templates are shortcuts to re-used displays and functionality. Templates start with double curly braces <nowiki>{{</nowiki>, next comes the template name, then any parameters separated by the pipe | symbol. So [[Template:Todo]] could look like this: | Templates are shortcuts to re-used displays and functionality. Templates start with double curly braces <nowiki>{{</nowiki>, next comes the template name, then any parameters separated by the pipe | symbol, and finally two closing curly braces <nowiki>}}</nowiki>. So [[Template:Todo]] could look like this: | ||
<nowiki>{{todo|your in-text description of the todo item}}</nowiki> | <nowiki>{{todo|your in-text description of the todo item}}</nowiki> | ||
Complex templates defined by categories are presented in forms. In-text template parameters can be specifically defined using the field=value syntax. Check the [[Special:Templates|template]] for more information. | |||
[[Category:Site documentation]] | [[Category:Site documentation]] |
Latest revision as of 23:53, 2 October 2010
Templates are shortcuts to re-used displays and functionality. Templates start with double curly braces {{, next comes the template name, then any parameters separated by the pipe | symbol, and finally two closing curly braces }}. So Template:Todo could look like this:
{{todo|your in-text description of the todo item}}
Complex templates defined by categories are presented in forms. In-text template parameters can be specifically defined using the field=value syntax. Check the template for more information.