More actions
Dama arishe (talk | contribs) m Removed an errant extra td. |
Dama arishe (talk | contribs) m Changed the examples to match. Added some formatting. |
||
| Line 1: | Line 1: | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
| Start = | | Start | start = | ||
<table class="wikitable sortable"> | <table class="wikitable sortable"> | ||
<tr> | <tr> | ||
| Line 1,071: | Line 1,071: | ||
</tr> | </tr> | ||
| Wave | wave = <tr><td colspan="15" style="text-align:center;" nowrap><span style="font-size:1.25em;line-height:1.5em;font-weight:bold;">{{#if: {{{w|}}} | {{{w}}} }} {{#if: {{{n|}}} | {{{n}}} }}</span></td></tr> | | Wave | wave = <tr><td colspan="15" style="text-align:center;" nowrap><span style="font-size:1.25em;line-height:1.5em;font-weight:bold;">{{#if: {{{w|}}} | {{{w}}} }} {{#if: {{{n|}}} | {{{n}}} }}</span></td></tr> | ||
| End = </table> | | End | end = </table> | ||
}} | }}<noinclude> | ||
<noinclude>This is a simple (?) template to add Wormhole NPCs to any page anywhere. This might be helpful for a Wormhole Site Running Page, for instance, or for a page explaining exactly what sleepers are and how to deal with them. | This is a simple (?) template to add Wormhole NPCs to any page anywhere. This might be helpful for a Wormhole Site Running Page, for instance, or for a page explaining exactly what sleepers are and how to deal with them. | ||
==Syntax== | ==Syntax== | ||
To use this template, simply use the following syntax: | To use this template, simply use the following syntax: | ||
* <nowiki>{{npcwh| | * ''<nowiki>{{npcwh|start}}</nowiki>'' - This begins the table and adds headers. | ||
* <nowiki>{{npcwh| | * ''<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. | ||
* <nowiki>{{npcwh|Sleepless Warden|n=2x|t={{trigger}}}} - Here we specify the name | * ''<nowiki>{{npcwh|Sleepless Warden|n=2x|t={{trigger}}}}</nowiki>'' - Here we specify the NPC's name, number, and trigger status. | ||
* <nowiki>{{npcwh|Sleepless Upholder|n=3x | ** The NPC name and number (<tt>n=</tt>) are required, but the trigger (<tt>t=</tt>) is not. | ||
* <nowiki>{{npcwh| | * ''<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|end}}</nowiki>'' - This tells the table to stop. | |||
You can | You can use short names for convenience: | ||
* <nowiki>{{npcwh|swar|n=2x|t={{trigger}}}}</nowiki> | * <nowiki>{{npcwh|swar|n=2x|t={{trigger}}}}</nowiki> | ||
* <nowiki>{{npcwh|suph|n=3x | * <nowiki>{{npcwh|suph|n=3x}}</nowiki> | ||
* <nowiki>{{npcwh|skee|n=4x | * <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"). | |||
==Example Usage== | ==Example Usage== | ||
{{npcwh| | {{npcwh|start}} | ||
{{npcwh| | {{npcwh|wave|w=Wave|n=1}} | ||
{{npcwh|swar|n=2x|t={{trigger}}}} | {{npcwh|swar|n=2x|t={{trigger}}}} | ||
{{npcwh|suph|n=3x|t=}} | {{npcwh|suph|n=3x|t=}} | ||
| Line 1,100: | Line 1,100: | ||
{{npcwh|akee|n=16x|t=}} | {{npcwh|akee|n=16x|t=}} | ||
{{npcwh|argo|n=2x|t=}} | {{npcwh|argo|n=2x|t=}} | ||
{{npcwh| | {{npcwh|wave|w=Capital Escalation|n=1}} | ||
{{npcwh|swar|n=10x|t=}} | {{npcwh|swar|n=10x|t=}} | ||
{{npcwh| | {{npcwh|end}} | ||
</noinclude> | </noinclude> | ||