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

m
no edit summary
No edit summary
mNo edit summary
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: #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>