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 That worked, so I guess all the parameters can be optional now.
Changed the structure of the page a little and added a few more details.
Line 52: Line 52:
| Orthrus | o | orth = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Orthrus {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">11,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">5500</td><td nowrap style="vertical-align:text-top; text-align:center;">47 / 47</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
| Orthrus | o | orth = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Orthrus {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">11,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">5500</td><td nowrap style="vertical-align:text-top; text-align:center;">47 / 47</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
| Sirius | s | siri = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Sirius {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">5,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">2500</td><td nowrap style="vertical-align:text-top; text-align:center;">26 / 26</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
| Sirius | s | siri = <tr><td nowrap style="vertical-align:text-top; text-align:center;">{{npcimg|s}}</td><td nowrap style="vertical-align:text-top; text-align:left;">{{{n}}} Sirius {{{t}}}</td><td nowrap style="vertical-align:text-top; text-align:center;"></td><td nowrap style="vertical-align:text-top; text-align:center;">50</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">0</td><td nowrap style="vertical-align:text-top; text-align:center;">250,000</td><td nowrap style="vertical-align:text-top; text-align:center;">10,000</td><td nowrap style="vertical-align:text-top; text-align:center;">5,000</td><td nowrap style="vertical-align:text-top; text-align:center;">40 / 40 / 40 / 40</td><td nowrap style="vertical-align:text-top; text-align:center;">2500</td><td nowrap style="vertical-align:text-top; text-align:center;">26 / 26</td><td nowrap style="vertical-align:text-top; text-align:center;">0 / 0</td></tr>
| 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 = </table>
}}
}}
<noinclude>This is a very simple conditional template test.
<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.


==Syntax==


To use this template, simply use the following syntax:
To use this template, simply use the following syntax:
* <nowiki>{{npcwh|Start}} - This begins the table and adds headers.</nowiki>
* <nowiki>{{npcwh|Start}} - This begins the table and adds headers.</nowiki>
* <nowiki>{{npcwh|Wave|w=Wave|n=1}} - 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 headers by calling {{npcwh|Wave}}
* <nowiki>{{npcwh|Wave|w=Wave|n=1}} - 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 headers by calling {{npcwh|Wave}}
** You don't ''have to'' specify "w" or "n". You can write {{npcwh|Wave}} if you want, which will insert an empty row into the table.
* <nowiki>{{npcwh|Sleepless Warden|n=2x|t={{trigger}}}} - Here we specify the name of the Sleeper, the number of sleepers, and that it will trigger a new wave.</nowiki>
* <nowiki>{{npcwh|Sleepless Warden|n=2x|t={{trigger}}}} - Here we specify the name of the Sleeper, the number of sleepers, and that it will trigger a new wave.</nowiki>
* <nowiki>{{npcwh|Sleepless Upholder|n=3x|t=}} - Here we again specify the name of the Sleeper, the number, and we leave the trigger blank.</nowiki>
* <nowiki>{{npcwh|Sleepless Upholder|n=3x|t=}} - Here we again specify the name of the Sleeper, the number, and we leave the trigger blank.</nowiki>