Template:Command: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Created page with "<includeonly> {| class=wikitable width=60% |- ! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden;height: 35px" | '''[[pretty name is::{{{name|{{PAG...")
 
(Undo revision 545146 by TRAIGA (talk))
 
(70 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class=wikitable width=60%
{| class=wikitable width=100%
|-
|-
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden;height: 35px" | '''[[pretty name is::{{{name|{{PAGENAME}}}}}]]'''
! align="center" style="background:#B9B59C;font-size:150%;border-right:hidden;height: 35px" | '''[[pretty name is::{{{name|{{#explode:{{PAGENAME}}| |0}}}}}]]'''
|-
|{{#if:{{{description|}}} | [[description is::{{{description}}}]] | ''Unknown'' }}
|-
|-
|{{#if:{{{messaging|}}} | [[messaging is::{{{messaging}}}]] | ''Unknown'' }}
|{{#if:{{{messaging|}}} | [[messaging is::{{{messaging}}}]] | ''Unknown'' }}
|-
|}
|}
{{#if:{{{rp|}}}|{{#switch:{{{rp}}}|y|yes|t|true=[[command type is::role-playing]]{{cat|Role-playing commands}}|}}
{{#if:{{{combat|}}}|{{#switch:{{{combat}}}|y|yes|t|true=[[command type is::combat]]{{cat|Combat commands}}|}}
{{#if:{{{magic|}}}|{{#switch:{{{magic}}}|y|yes|t|true=[[command type is::magic]]{{cat|Magic commands}}|}}
{{#if:{{{settings|}}}|{{#switch:{{{settings}}}|y|yes|t|true=[[command type is::settings]]{{cat|Settings commands}}|}}
|}
{{cat|Commands}}</includeonly><noinclude>


{{#ifeq:{{{rp|}}}|Yes|{{cat|Role-playing commands}}|}}
{{#ifeq:{{{combat|}}}|Yes|{{cat|Combat commands}}|}}
{{#ifeq:{{{magic|}}}|Yes|{{cat|Magic commands}}|}}
{{#ifeq:{{{settings|}}}|Yes|{{cat|Settings commands}}|}}
{{#ifeq:{{{systems|}}}|Yes|{{cat|Systems commands}}|}}
{{#if:{{{race|}}}|{{#arraymap:{{{race}}}|,|@@@@|[[race association is::@@@@| ]][[command type is::racial| ]]{{cat|@@@@ commands}}| }}}}
{{#if:{{{guild|}}}|{{#arraymap:{{{guild}}}|,|@@@@|[[guild association is::@@@@| ]][[command type is::guild| ]]{{cat|@@@@ commands}}| }}}}
{{cat|Commands}}[[page type is::command| ]]</includeonly>

<noinclude>
This template is for command and verb pages.
This template is for command and verb pages.
==Usage==
==Usage==
Line 22: Line 29:
|magic= y/yes/n/no/t/true/f/false
|magic= y/yes/n/no/t/true/f/false
|settings= y/yes/n/no/t/true/f/false
|settings= y/yes/n/no/t/true/f/false
|systems= y/yes/n/no/t/true/f/false
|race= Human, Elf, Gnome, etc. Leave empty if no racial association.
|guild= Barbarian, Moon Mage, Necromancer, etc. Leave empty if no guild association.
|description= A brief summary of what the command is used for.
|messaging= Include messaging in the following format:
|messaging= Include messaging in the following format:
'''COMMAND SYNTAX'''<br />
'''COMMAND SYNTAX'''<br />
''You see'': 1st person messaging. <br />
''You see'': 1st person messaging. <br />
''Target sees'': 2nd person messaging. N/A if not applicable or just leave out. <br />
''Target sees'': 2nd person messaging. N/A if not applicable or just leave out. <br />
'''Others see'': 3rd person messaging. <br />
''Others see'': 3rd person messaging. <br />


'''COMMAND SYNTAX #2'''<br />
'''COMMAND SYNTAX #2'''<br />

Latest revision as of 23:49, 29 January 2021


This template is for command and verb pages.

Usage

When making a new verb article, copy the text below into the edit window and fill in the parameter values as appropriate. Editing with form is also possible.

{{command
|rp= y/yes/n/no/t/true/f/false
|combat= y/yes/n/no/t/true/f/false
|magic= y/yes/n/no/t/true/f/false
|settings= y/yes/n/no/t/true/f/false
|systems= y/yes/n/no/t/true/f/false
|race= Human, Elf, Gnome, etc. Leave empty if no racial association.
|guild= Barbarian, Moon Mage, Necromancer, etc. Leave empty if no guild association.
|description= A brief summary of what the command is used for.
|messaging= Include messaging in the following format:
'''COMMAND SYNTAX'''<br />
''You see'': 1st person messaging. <br />
''Target sees'': 2nd person messaging. N/A if not applicable or just leave out. <br />
''Others see'': 3rd person messaging. <br />

'''COMMAND SYNTAX #2'''<br />
''You see'': etc.
}}