Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Npcwh: Difference between revisions

Template page
m Changed the examples to match. Added some formatting.
Line 1,078: Line 1,078:


To use this template, simply use the following syntax:
To use this template, simply use the following syntax:
* ''<nowiki>{{npcwh|start}}</nowiki>'' - This begins the table and adds headers.
{| class="wikitable" style="font-size:90%;"
* ''<nowiki>{{npcwh|wave|w=Wave|n=1}}</nowiki>'' - This specifies a Wave header. Whatever value you pass to w= goes into the header as the title. Whatever value you pass to n= goes into the header as the number. You can make Wave headers, Escalation headers, and Capital Escalation with this.
|-
** You must pass something as <tt>w=</tt>, however <tt>n=</tt> is optional. If you specify neither, you'll simply be inserting an empty row.
! style="background:#222222;width:300px" | Code
* ''<nowiki>{{npcwh|Sleepless Warden|n=2x|t={{trigger}}}}</nowiki>'' - Here we specify the NPC's name, number, and trigger status.
! style="background:#222222;" | Explanation
|-
| <nowiki>{{npcwh|start}}</nowiki>
| This begins the table and adds headers.
|-
| <nowiki>{{npcwh|wave|w=Wave|n=1}}</nowiki>
| This specifies a Wave header. Whatever value you pass to <tt>w=</tt> goes into the header as the title. Whatever value you pass to <tt>n=</tt> goes into the header as the number. You can make Wave headers, Escalation headers, and Capital Escalation with this.
You must pass something as <tt>w=</tt>, however <tt>n=</tt> is optional. If you specify neither, you'll simply be inserting an empty row.
|-
| <nowiki>{{npcwh|Sleepless Warden|n=2x|t={{trigger}}}}</nowiki>
| Here we specify the NPC's name, number, and trigger status.
The NPC name and number (<tt>n=</tt>) are required, but the trigger (<tt>t=</tt>) is not.
|}
* ''' -
** The NPC name and number (<tt>n=</tt>) are required, but the trigger (<tt>t=</tt>) is not.  
** The NPC name and number (<tt>n=</tt>) are required, but the trigger (<tt>t=</tt>) is not.  
* ''<nowiki>{{npcwh|Sleepless Upholder|n=3x}}</nowiki>'' - Here we specify the NPC name and number but omit the trigger (<tt>t=</tt>) entirely.
* ''<nowiki>{{npcwh|Sleepless Upholder|n=3x}}</nowiki>'' - Here we specify the NPC name and number but omit the trigger (<tt>t=</tt>) entirely.
Line 1,090: Line 1,103:
* <nowiki>{{npcwh|suph|n=3x}}</nowiki>
* <nowiki>{{npcwh|suph|n=3x}}</nowiki>
* <nowiki>{{npcwh|skee|n=4x}}</nowiki>
* <nowiki>{{npcwh|skee|n=4x}}</nowiki>
The short name takes the first letter of the first word (eg. "Sleepless" becomes "s") and adds the first three letters of the second word (eg. "Warden" becomes "war").  
The short name takes the first letter of the first word (eg. "Sleepless" becomes "s") and adds the first three letters of the second word (eg. "Warden" becomes "war").


==Example Usage==
==Example Usage==