Template:Npc: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
No edit summary
ROWiki>Onteron
No edit summary
Line 24: Line 24:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->{{#ifexpr:  
-->{{#ifexpr:  
    {{qd | {{{data| {{{1|}}} }}} | 1 | {{{realm}}}      }}  and  
    {{qd | {{{data| {{{1|}}} }}} | 1 | {{{realm}}}      }}  and  
    {{qd | {{{data| {{{1|}}} }}} | 2 | {{{area}}}      }}  and  
    {{qd | {{{data| {{{1|}}} }}} | 2 | {{{area}}}      }}  and  
    {{qd | {{{data| {{{1|}}} }}} | 3 | {{{profession}}} }}
    {{qd | {{{data| {{{1|}}} }}} | 3 | {{{profession}}} }}


     | {{#ifeq: {{#explode:{{{data| {{{1|full}}} }}}|;|0}} | field
     | {{npc/{{#switch:{{PAGENAME}}
 
              | {{{area}}} NPCs
        | <!-- To be implemented: returning a single field value -->
              | {{{realm}}} NPC table = tablerow
 
              | {{{name}}} = full
        | {{npc/{{#switch:{{PAGENAME}}
              | {{{area}}} = count
                  | {{{area}}} NPCs
              | {{{area}}} map = map
                  | {{{realm}}} NPC table = tablerow
              | {{{area}}} map svg = svg
                  | {{{name}}} = full
              | #default = {{#explode: {{{1|listitem}}} | ; | 0 }}
                  | {{{area}}} = count
            }}
                  | {{{area}}} map = map
        | {{{1| {{{data|}}} }}} |
                  | {{{area}}} map svg = svg
        | data =  {{{data| {{{1|}}} }}} | name = {{{name}}}
                  | #default = listitem
        | realm = {{{realm}}} | area = {{{area}}}  
                }}
        | x =    {{{x}}}    | z =    {{{z}}}
            | {{{1| {{{data|}}} }}} |
        | profession = {{{profession}}}  
            | data =  {{{data| {{{1|}}} }}} | name = {{{name}}}
        | race =              | class = {{{class|}}}
            | realm = {{{realm}}} | area = {{{area}}}  
        | sex =  {{{sex|}}}  | level = {{{level|}}}
            | x =    {{{x}}}    | z =    {{{z}}}
            | profession = {{{profession}}}  
            | race =              | class = {{{class|}}}
            | sex =  {{{sex|}}}  | level = {{{level|}}}
          }}  
       }}  
       }}  
   }}<!--
   }}<!--
--></includeonly></onlyinclude>
--></includeonly></onlyinclude>

Revision as of 00:07, 13 November 2008

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}}

  | realm = 
  | area = 
  | x =     | z = 
  | profession = 
  | class = 
  | race = 
  | sex = 
  | level = 

<noinclude>

  | info = <!-- Type the character article here -->

</noinclude>}}</onlyinclude>