Template:Command: Difference between revisions

From HorizonXI Wiki
No edit summary
No edit summary
Line 1: Line 1:
==Usage==
{{Preview Only Infobox|<pre>{{Command
* aliases: - editors to add in any relevent aliases. If there are none, leave blank to return "None".
| aliases = {Leave blank for "None", otherwise add in aliases.}
* usage: - leave blank to return the page name. Alternatively this parameter can be set to whatever the editor chooses.
| usage = {This can be left blank as it will automatically add the pagename eg. "Command/Example".}
* description: - provide a description of the command.
| description = {Add a small description of how to use this page. For lengthier 'notes', please add them to a "== Notes ==" section below this template.}
 
}}</pre>}}
When using this template, please manually add a <nowiki>== Notes ==</nowiki> section below it and any further notes. This is the first template I have written so I will be looking to improve upon it.
 
<pre>{{Command
| aliases = None
| usage =
| description = Shows a description of how to use this page.
}}</pre>


{{Command
{{Command
Line 41: Line 34:
<noinclude>[[Category:Templates]]</noinclude>
<noinclude>[[Category:Templates]]</noinclude>


[[Category:Templates/Headers|{{PAGENAME}}]]
==Usage==
<includeonly><onlyinclude><!--
* aliases: Leave blank for "None". Otherwise add in aliases.
 
* usage: This can be left blank as it will automatically add the pagename eg. "Command/Example".
Cheat sheet that is only visible during preview
* description: Add a small description of how to use this page. For lengthier 'notes', please add a "== Notes ==" below this template.
-->{{#if:{{REVISIONID}}||<div style="border: 4px #AA0000 solid;"><div style="margin: 4px; padding: 4px; text-align: center; font-weight: bold; color: #AA0000; font-size: 1.6em;">This Documentation is only visible in preview mode!</div><pre>
{{Command
| aliases = {Leave blank for none, otherwise add aliases}
| usage = {Leave blank for page name, otherwise include the usage}
| description = {command description goes here}
}}
</pre></div>}}<!--


-->
When using this template, please manually add a <nowiki>== Notes ==</nowiki> section below it and any further notes.

Revision as of 12:08, 5 October 2023



Command
Aliases: None
Usage: Command
Description: Shows a description of how to use this page.

Usage

  • aliases: Leave blank for "None". Otherwise add in aliases.
  • usage: This can be left blank as it will automatically add the pagename eg. "Command/Example".
  • description: Add a small description of how to use this page. For lengthier 'notes', please add a "== Notes ==" below this template.

When using this template, please manually add a == Notes == section below it and any further notes.