Template:Slashcommand: Difference between revisions
Jump to navigation
Jump to search
imported>Konoko (historical) (+link) |
imported>Sekoia (historical) (trying to add a prefix param) |
||
Line 1: | Line 1: | ||
'''/[[{{{1}}} (Slash Command)|{{{1}}}]]'''{{if|test={{{2|}}}|then='' {{{2|}}}''|else=}}<noinclude> | '''/[[{{{1}}} (Slash Command)|{{{prefix|}}}{{{1}}}]]'''{{if|test={{{2|}}}|then='' {{{2|}}}''|else=}}<noinclude> | ||
== Usage == | == Usage == | ||
Line 6: | Line 6: | ||
This template to be used in the middle of articles where all that is needed is the slash command. Also includes a link to the command. | This template to be used in the middle of articles where all that is needed is the slash command. Also includes a link to the command. | ||
If provided, prefix= will put a prefix before the command. | |||
See also [[:Template:SlashCommandArticle]] and [[:Template:slashCommand]] (note the upper-case C). | See also [[:Template:SlashCommandArticle]] and [[:Template:slashCommand]] (note the upper-case C). | ||
Line 19: | Line 21: | ||
; Testing the <nowiki>{{slashcommand|petcom_all}}</nowiki> in a sentence. | ; Testing the <nowiki>{{slashcommand|petcom_all}}</nowiki> in a sentence. | ||
: Testing the {{slashcommand|petcom_all}} in a sentence. | : Testing the {{slashcommand|petcom_all}} in a sentence. | ||
; <nowiki>{{slashcommand|up|prefix=++}}</nowiki> | |||
: {{slashcommand|up|prefix=++}} | |||
== See Also == | == See Also == | ||
{{tl|bindcommand}} | {{tl|bindcommand}} |
Revision as of 06:21, 16 August 2007
/[[{{{1}}} (Slash Command)|{{{1}}}]]Template:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.
Usage
{{slashcommand|command|options}}
This template to be used in the middle of articles where all that is needed is the slash command. Also includes a link to the command.
If provided, prefix= will put a prefix before the command.
See also Template:SlashCommandArticle and Template:slashCommand (note the upper-case C).
Examples
- {{slashcommand|petcom_all|commands}}
- /petcom_allTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.
- {{slashcommand|petcom_all}}
- /petcom_allTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.
- Testing the {{slashcommand|petcom_all}} in a sentence.
- Testing the /petcom_allTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit. in a sentence.
- {{slashcommand|up|prefix=++}}
- /++upTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.
See Also
{{bindcommand}}