Template:Npc: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
mNo edit summary
ROWiki>Onteron
modified
Line 1: Line 1:
<onlyinclude><includeonly>{{#ifexpr:  
<pre>
{{npc | name = {{subst:PAGENAME}} | data = {{{1|}}}
  | realm =
  | area =
  | x =    | z =
  | profession =
  | class =
  | race =
  | sex =
  | level =
}}
</pre>
<onlyinclude><includeonly><!--
-->{{#ifexpr:  
     {{qd | {{{data|}}} | 1 | {{{realm}}}      }}  and  
     {{qd | {{{data|}}} | 1 | {{{realm}}}      }}  and  
     {{qd | {{{data|}}} | 2 | {{{area}}}      }}  and  
     {{qd | {{{data|}}} | 2 | {{{area}}}      }}  and  
     {{qd | {{{data|}}} | 3 | {{{profession}}} }}
     {{qd | {{{data|}}} | 3 | {{{profession}}} }}


    | {{#ifeq: {{#explode:{{{data|full}}}|;|0}} | field


    | {{#ifeq: {{#explode:{{{data|full}}}|;|0}} | field
        | <!-- To be implemented: returning a single field value -->


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

Revision as of 02:33, 23 October 2008

{{npc | name = {{subst:PAGENAME}} | data = {{{1|}}}
  | realm = 
  | area = 
  | x =     | z = 
  | profession = 
  | class =
  | race =
  | sex =
  | level =
}}