Template:Npc: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
modified
m 25 revisions imported
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<pre>
<!--
{{npc | name = {{subst:PAGENAME}} | data = {{{1|}}}
1. format
  | realm =  
2. name
  | area =  
3. realm
  | x =    | z =
4. town
  | profession =
5. profession
  | class =
6. x
  | race =
7. z
  | sex =
--><onlyinclude><includeonly>{{#switch: {{{format|{{{1}}}}}} <!--
  | level =
-->| list =<!--
}}
--><span style="display: inline-block; width: 15ex"> <!--
</pre>
-->    [[{{{name|{{{2}}}}}}]] </span> <!--
<onlyinclude><includeonly><!--
--> <span style="display: inline-block; width: 20ex"> <!--
-->{{#ifexpr:
-->   [[{{{profession|{{{5}}}}}}]] </span> <!--
    {{qd | {{{data|}}} | 1 | {{{realm}}}     }} and
--> ( {{{x|{{{6}}}}}}, {{{z|{{{7}}}}}}) <!--
    {{qd | {{{data|}}} | 2 | {{{area}}}       }} and
-->|
    {{qd | {{{data|}}} | 3 | {{{profession}}} }}
* '''[[Realm]]''': [[{{{realm|{{{3}}}}}}]]
* '''Town''': [[{{{town|{{{4}}}}}}]]
* '''[[Profession]]''': [[{{{profession|{{{5}}}}}}]]
* '''[[Location]]''': {{{x|{{{6}}}}}}, {{{z|{{{7}}}}}} <!--
-->}} </includeonly></onlyinclude>


    | {{#ifeq: {{#explode:{{{data|full}}}|;|0}} | field
===Normal (full) mode===
{{NPC|name=Adilan |realm=Ignis |town=Nasraah Tej Village |profession=Weaponsmith |x=4780 |z=865 }}


        | <!-- To be implemented: returning a single field value -->
===List item mode===
 
{{NPC|list|Adilan|Ignis|Nasraah Tej Village|Weaponsmith|4780|865}}
        | {{npc/{{#switch:{{PAGENAME}}
                  | {{{area}}} NPCs
                  | {{{realm}}} NPC table = tablerow
                  | {{{name}}} = full
                  | {{{area}}} = count
                  | {{{area}}} map = map
                  | {{{area}}} map svg = svg
                  | #default = listitem
                }}
            | data =  {{{data|}}} | name = {{{name}}}
            | realm = {{{realm}}} | area = {{{area}}}
            | x =    {{{x}}}    | z =    {{{z}}}
            | profession = {{{profession}}}
            | race =              | class = {{{class|}}}
            | sex =  {{{sex|}}}  | level = {{{level|}}}
          }}
      }}
  }}<!--
--></includeonly></onlyinclude>

Latest revision as of 18:28, 6 November 2020


Normal (full) mode

[edit source]

List item mode

[edit source]

Adilan Weaponsmith ( 4780, 865)