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

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary
m (fixing broken templates)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
;Description
;Description
:A more flexable and styled template for syntax display. Designed to be used with {{User:Zeal/Sandbox/Templates/tlink|param}}. For an explanation of what certain keywords mean, a key is provided [[User:Zeal/Sandbox/Templates/tkey|here]].
:A more flexable and styled template for syntax display. Designed to be used with [[User:Zeal/Sandbox/Templates]]. For an explanation of what certain keywords mean, a key is provided [[User:Zeal/Sandbox/Templates/tkey|here]].


;Syntax
;Syntax
:{{User:Zeal/Sandbox/Templates/syntax|Syntax|params={{User:Zeal/Sandbox/Templates/param|name}}{{User:Zeal/Sandbox/Templates/param|string}}{{User:Zeal/Sandbox/Templates/param|params|{{User:Zeal/Sandbox/Templates/tlink|param}}s}}}}
:{{User:Zeal/Sandbox/Templates/syntax={{User:Zeal/Sandbox/Templates/param|name}}{{User:Zeal/Sandbox/Templates/param|string}}{{User:Zeal/Sandbox/Templates/param|[[User:Zeal/Sandbox/Templates]]s}}}}
:''Note: This serves as its own example.''
:''Note: This serves as its own example.''


Line 10: Line 10:
:;1=:Template's page name (the template namespace may be exluded for shorthand use).
:;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).
:;2=:Template's display name (replaces the template's name when displayed).
:;params=:Template's parameters listed using {{User:Zeal/Sandbox/Templates/tlink|param}} for each.
:;params=:Template's parameters listed using [[User:Zeal/Sandbox/Templates]] for each.
</div>
</div>


<onlyinclude><includeonly><nowiki>{{</nowiki><span style="background-color: #eee;">[[{{#ifexist:Template:{{{1|}}}|Template:{{{1}}}|{{{1|Unknown}}}}}|<span style="color: #666;">{{{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]]

Latest revision as of 16:20, 18 January 2016

Description
A more flexable and styled template for syntax display. Designed to be used with User:Zeal/Sandbox/Templates. For an explanation of what certain keywords mean, a key is provided here.
Syntax
{{User:Zeal/Sandbox/Templates/syntax=| <name> | <string> | <User:Zeal/Sandbox/Templatess> }}
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 User:Zeal/Sandbox/Templates for each.