Template:Slashcommand: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
m (Removing extra space at end (caused problems when command was followed by punctuation))
imported>Sekoia
(converting wikimarkup to html markup to avoid mixed apostrophe clashes)
Line 1: Line 1:
<includeonly>'''/[[{{{1}}} (Slash Command)|{{{prefix|}}}{{{1}}}]]'''{{if|test={{{2|}}}|then='' {{{2|}}}''|else=}}</includeonly><noinclude>
<includeonly><b>/[[{{{1}}} (Slash Command)|{{{prefix|}}}{{{1}}}]]</b>{{if|test={{{2|}}}|then=<i> {{{2|}}}</i>|else=}}</includeonly><noinclude>
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Revision as of 04:22, 11 December 2008

[edit] [purge] Documentation

Usage

{{slashcommand|command|options|argument}}

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.

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.
{{slashcommand|option_set|NoXP|1}}
/option_setTemplate:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.