Template:Launchparam/doc: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 7: Line 7:
This template may be used in the middle of articles where all that is needed is the command line parameter.  
This template may be used in the middle of articles where all that is needed is the command line parameter.  


The template includes an "If - Then" function.<BR />
The template includes 2 "If - Then" functions:<BR /><BR />
If a slash command page exists for the command, then the template will link to that. Otherwise, if no slash command page exists, clicking the red link will create a new "Command Line Parameter" page.
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. <BR />
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.




Line 24: Line 25:
; <nowiki>{{launchparam|PageDoesNotExist}}</nowiki>
; <nowiki>{{launchparam|PageDoesNotExist}}</nowiki>
: {{launchparam|PageDoesNotExist}}
: {{launchparam|PageDoesNotExist}}
; <nowiki>{{launchparam|vis_scale}}</nowiki>
: {{launchparam|vis_scale}}




Testing {{launchparam|assetpath}}





Latest revision as of 10:51, 3 January 2024

This is a documentation subpage for Template:Launchparam (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

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 commands
{{launchparam|lodbias}}
-lodbias
Testing the {{launchparam|lodbias}} in a sentence.
Testing the -lodbias in a sentence.
{{launchparam|PageDoesNotExist}}
-PageDoesNotExist
{{launchparam|vis_scale}}
-vis_scale