Template:Launchparam: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>'''-[[{{#ifexist:{{{1}}} (Slash Command)|{{{1}}} (Slash Command)|{{{1}}} (Command Line Parameter)}}]]'''{{#if:{{{2|}}}|'' {{{2|}}}''|}}</includeonly><noinclude>
<includeonly>'''-[[{{#ifexist:{{{1}}} (Slash Command)|{{{1}}} (Slash Command)|{{{1}}} (Command Line Parameter)}}|{{{1}}} (Slash Command)]]'''{{#if:{{{2|}}}|'' {{{2|}}}''|}}</includeonly><noinclude>
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Revision as of 11:57, 22 June 2023

[edit] [purge] Documentation

Usage

{{launchparam|command|options}}

This template may be used in the middle of articles where all that is needed is the command line parameter.

The template includes 2 "If - Then" functions:

If a Command Line Parameter page exists for the command, then the template will link to that. Otherwise, if no Command Line Parameter page exists, the template will link to the command's Slash Command page.
If neither a Command Line Parameter nor a Slash Command page exits, then clicking the red link will create a new "Command Line Parameter" page.


Examples

{{launchparam|lodbias|commands}}
-lodbias (Slash Command) commands
{{launchparam|lodbias}}
-lodbias (Slash Command)
Testing the {{launchparam|lodbias}} in a sentence.
Testing the -lodbias (Slash Command) in a sentence.
{{launchparam|PageDoesNotExist}}
-PageDoesNotExist (Slash Command)
{{launchparam|vis_scale}}
-vis_scale (Slash Command)