Template:Npc: Difference between revisions
Jump to navigation
Jump to search
ROWiki>Erica conjurer m adding in conditional for boltar |
ROWiki>Erica conjurer m adding in comment explaining conditional |
||
Line 33: | Line 33: | ||
| {{localurl: NPC List }} = listitem | | {{localurl: NPC List }} = listitem | ||
| #default = {{#ifexpr: {{#ifeq: {{{name}}} | Boltar | 1 | 0}} and {{#ifeq: {{PAGENAME}} | Syrtis NPC Table | 1 | 0}} | | #default = {{#ifexpr: {{#ifeq: {{{name}}} | Boltar | 1 | 0}} and {{#ifeq: {{PAGENAME}} | Syrtis NPC Table | 1 | 0}} | ||
| tablerow | {{#explode: {{{1|listitem}}} | ; | 0 }} }} | | tablerow | {{#explode: {{{1|listitem}}} | ; | 0 }} }} | ||
<!-- Ugly code is because Boltar is an Alsius char in Syrtis Realm, thus {{{realm}}} NPC Table }} = tablerow doesn't work --> | |||
}} | }} |
Revision as of 15:53, 28 December 2010
To add a NPC article, just type the name of the NPC in the box and press create:
<createbox>
preload=Project:Preload Templates/NPC/Content editintro=Project:Preload Templates/NPC/Intro buttonlabel=Create width=50 break=no </createbox> |
Alternatively copy the following into a new article and fill in the parameters:
<onlyinclude>{{npc | {{{1|}}} | name = {{subst:PAGENAME}} | image = | realm = | area = | profession = | x = | z = | class = | race = | sex = <noinclude> | info = <!-- Type the character article here --> </noinclude>}}</onlyinclude>