Template:Command: Difference between revisions

From Horizon Wiki Mirror
Content deleted Content added
imported>Spiffly
No edit summary
imported>Spiffly
No edit summary
Line 1: Line 1:
{{Preview Only Infobox|<pre>{{Command
==Usage==
| aliases = {Leave blank for "None", otherwise add in aliases.}
* aliases: - editors to add in any relevent aliases. If there are none, leave blank to return "None".
| usage = {This can be left blank as it will automatically add the pagename eg. "Command/Example".}
* usage: - leave blank to return the page name. Alternatively this parameter can be set to whatever the editor chooses.
* 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>


==Usage==
[[Category:Templates/Headers|{{PAGENAME}}]]
* aliases: Leave blank for "None". Otherwise add in aliases.
<includeonly><onlyinclude><!--
* 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.
Cheat sheet that is only visible during preview
-->{{#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.