Template:Npc: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Erica conjurer
No edit summary
ROWiki>Erica conjurer
m removing conditional, testing if syrtis npc table works again
Line 32: Line 32:
               | {{localurl: {{{area}}} }} = count
               | {{localurl: {{{area}}} }} = count
               | {{localurl: NPC List }} = listitem
               | {{localurl: NPC List }} = listitem
               | #default = {{#ifexpr:
               | #default = {{#explode: {{{1|listitem}}} | ; | 0 }}
                              {{#ifeq: {{{name}}} | Boltar | 1 | 0}} and
 
                              {{#ifeq: {{localurl: {{PAGENAME}}}} | {{localurl: Syrtis NPC Table }} | 1 | 0 }}
                              | tablerow | {{#explode: {{{1|listitem}}} | ; | 0 }}
                            }}
             }}
             }}
         | {{{1| {{{data|}}} }}} |
         | {{{1| {{{data|}}} }}} |

Revision as of 15:45, 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>