User:Zeal/Sandbox/Templates/syntax: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:


<onlyinclude><includeonly><nowiki>{{</nowiki><span style="background-color: #eee;">[[{{#ifexist:Template:{{{1|}}}|Template:{{{1}}}|{{{1|Unknown}}}}}|<span style="color: #111;">{{{2|{{{1|}}}}}}</span>]]{{{params|}}}</span><nowiki>}}</nowiki></includeonly></onlyinclude>
<onlyinclude><includeonly><nowiki>{{</nowiki><span style="background-color: #eee;">[[{{#ifexist:Template:{{{1|}}}|Template:{{{1}}}|{{{1|Unknown}}}}}|<span style="color: #111;">{{{2|{{{1|}}}}}}</span>]]{{{params|}}}</span><nowiki>}}</nowiki></includeonly></onlyinclude>
[[Category:User:Zeal/Bulbapedia (Sandbox)/Templates|Syntax]]

Revision as of 17:25, 29 February 2008

Description
A more flexable and styled template for syntax display. Designed to be used with {{param}}. For an explanation of what certain keywords mean, a key is provided here.
Syntax
{{Syntax| <name> | <string> | params=<{{param}}s> }}
Note: This serves as its own example.
Parameters
1=
Template's page name (the template namespace may be exluded for shorthand use).
2=
Template's display name (replaces the template's name when displayed).
params=
Template's parameters listed using {{param}} for each.