Template:Slashcommand: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
m (moves "see also" links to the "see also" section)
No edit summary
 
(40 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''/[[{{{1}}} (Slash Command)|{{{prefix|}}}{{{1}}}]]'''{{if|test={{{2|}}}|then='' {{{2|}}}''|else=}}<noinclude>
<includeonly>'''/[[{{{1}}} (Slash Command)|{{{prefix|}}}{{{1}}}]]'''{{#if:{{{2|}}}| '' {{{2|}}}''|}}{{#if:{{{3|}}}|&nbsp;{{{3|}}}|}}</includeonly><noinclude>
 
{{Documentation}}</noinclude>
== Usage ==
 
<nowiki>{{slashcommand|</nowiki>''command''<nowiki>|</nowiki>''options''<nowiki>}}</nowiki>
 
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 ==
 
; <nowiki>{{slashcommand|petcom_all|commands}}</nowiki>
: {{slashcommand|petcom_all|commands}}
 
; <nowiki>{{slashcommand|petcom_all}}</nowiki>
: {{slashcommand|petcom_all}}
 
; Testing the <nowiki>{{slashcommand|petcom_all}}</nowiki> in a sentence.
: Testing the {{slashcommand|petcom_all}} in a sentence.
 
; <nowiki>{{slashcommand|up|prefix=++}}</nowiki>
: {{slashcommand|up|prefix=++}}
== See Also ==
* {{tl|bindcommand}}
* {{tl|SlashCommandArticle}}
* {{tl|SlashCommand}} (note the capital C)
 
[[Category:Standardized Text Templates]]
[[Category:Slash Command Templates]]</noinclude>

Latest revision as of 05:17, 28 February 2024

[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_all commands
{{slashcommand|petcom_all}}
/petcom_all
Testing the {{slashcommand|petcom_all}} in a sentence.
Testing the /petcom_all in a sentence.
{{slashcommand|up|prefix=++}}
/++up
{{slashcommand|option_set|NoXP|1}}
/option_set NoXP 1