Template:Launchparam

From Unofficial Homecoming Wiki
Revision as of 10:33, 3 January 2024 by BlackSpectre (talk | contribs)
Jump to navigation Jump to search
[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}}
-[[{{#ifexist:lodbias (Command Line Parameter)|lodbias (Command Line Parameter)|Template:Lodbias (Slash Command)|lodbias]]]] commands
{{launchparam|lodbias}}
-[[{{#ifexist:lodbias (Command Line Parameter)|lodbias (Command Line Parameter)|Template:Lodbias (Slash Command)|lodbias]]]]
Testing the {{launchparam|lodbias}} in a sentence.
Testing the -[[{{#ifexist:lodbias (Command Line Parameter)|lodbias (Command Line Parameter)|Template:Lodbias (Slash Command)|lodbias]]]] in a sentence.
{{launchparam|PageDoesNotExist}}
-[[{{#ifexist:PageDoesNotExist (Command Line Parameter)|PageDoesNotExist (Command Line Parameter)|{{|PageDoesNotExist (Command Line Parameter)}}|PageDoesNotExist]]]]
{{launchparam|vis_scale}}
-[[{{#ifexist:vis_scale (Command Line Parameter)|vis_scale (Command Line Parameter)|Template:Vis scale (Slash Command)|vis_scale]]]]