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/doc: Difference between revisions

Template page
Siernan (talk | contribs)
Adding to Wormholes category
m Change background color to design-token.
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{main|Template:Npcwh}}</noinclude>
This is a 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 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:
{| class="wikitable" style="font-size:90%;"
{| class="wikitable"
|-
|- style="background: var(--background-color-warning-subtle);"
! style="background:#222222;width:300px" | Code
! style="min-width: 21em;" | Code
! style="background:#222222;" | Explanation
! Explanation
|-
|-
| <nowiki>{{npcwh|start}}</nowiki>
| <nowiki>{{npcwh|start}}</nowiki>
Line 23: Line 21:
|}
|}


==Shortened Syntax==
== Shortened Syntax ==
You can use short names for convenience:
You can use short names for convenience:
* <nowiki>{{npcwh|swar|2x|{{trigger}}}}</nowiki>
* <nowiki>{{npcwh|swar|2x|{{trigger}}}}</nowiki>
* <nowiki>{{npcwh|suph|3x}}</nowiki>
* <nowiki>{{npcwh|suph|3x}}</nowiki>
* <nowiki>{{npcwh|skee|4x}}</nowiki>
* <nowiki>{{npcwh|skee|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 (e.g. "Sleepless" becomes "s") and adds the first three letters of the second word (e.g. "Warden" becomes "war").
 
==No Headers==


== No Headers ==
Alternatively you can start a table with no headers:
Alternatively you can start a table with no headers:
* <nowiki>{{npcwh|start2}}</nowiki>
* <nowiki>{{npcwh|start2}}</nowiki>


==Example Usage==
== Example Usage ==
==Headers==
== Headers ==
{{npcwh|start}}
{{npcwh|start}}
{{npcwh|wave|Wave|1}}
{{npcwh|wave|Wave|1}}
{{npcwh|swar|2x|t={{trigger}}}}
{{npcwh|swar|2x|{{trigger}}}}
{{npcwh|suph|3x}}
{{npcwh|suph|3x}}
{{npcwh|ekee|4x}}
{{npcwh|ekee|4x}}
Line 48: Line 45:
{{npcwh|end}}
{{npcwh|end}}


==No Headers==
== No Headers ==
{{npcwh|start2}}
{{npcwh|start2}}
{{npcwh|suph}}
{{npcwh|suph}}
{{npcwh|end}}
{{npcwh|end}}
<includeonly>[[Category:Template]]</includeonly>
 
<noinclude>[[Category:Template documentation]][[Category:Wormholes]]</noinclude>
<includeonly>
[[Category:Formatting templates]]
</includeonly>
 
<noinclude>
[[Category:Template documentation]]
[[Category:Wormholes]]
</noinclude>