Template:Npc: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
No edit summary
m 25 revisions imported
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{new npc box}}
<!--
1. format
2. name
3. realm
4. town
5. profession
6. x
7. z
--><onlyinclude><includeonly>{{#switch: {{{format|{{{1}}}}}} <!--
-->| list =<!--
--><span style="display: inline-block; width: 15ex"> <!--
-->    [[{{{name|{{{2}}}}}}]] </span> <!--
--> <span style="display: inline-block; width: 20ex"> <!--
-->    [[{{{profession|{{{5}}}}}}]] </span> <!--
--> ( {{{x|{{{6}}}}}}, {{{z|{{{7}}}}}}) <!--
-->|
* '''[[Realm]]''': [[{{{realm|{{{3}}}}}}]]
* '''Town''': [[{{{town|{{{4}}}}}}]]
* '''[[Profession]]''': [[{{{profession|{{{5}}}}}}]]
* '''[[Location]]''': {{{x|{{{6}}}}}}, {{{z|{{{7}}}}}} <!--
-->}} </includeonly></onlyinclude>


===Normal (full) mode===
{{NPC|name=Adilan |realm=Ignis |town=Nasraah Tej Village |profession=Weaponsmith |x=4780 |z=865 }}


Alternatively copy the following into a new article and fill in the parameters:
===List item mode===
 
{{NPC|list|Adilan|Ignis|Nasraah Tej Village|Weaponsmith|4780|865}}
<pre>
&lt;onlyinclude&gt;{{npc | {{{1|}}} | name = {{subst:PAGENAME}}
 
  | realm =
  | area =
  | x =    | z =
  | profession =  
  | class =  
  | race =  
  | sex =  
  | level =  
 
&lt;noinclude&gt;
 
  | info = <!-- Type the character article here -->
 
&lt;/noinclude&gt;}}&lt;/onlyinclude&gt;
</pre>
<onlyinclude><includeonly><!--
-->{{#ifexpr:
    {{qd | {{{data| {{{1|}}} }}} | 1 | {{{realm}}}      }}  and
    {{qd | {{{data| {{{1|}}} }}} | 2 | {{{area}}}      }}  and
    {{qd | {{{data| {{{1|}}} }}} | 3 | {{{profession}}} }}
 
    | {{#ifeq: {{#explode:{{{data| {{{1|full}}} }}}|;|0}} | field
 
        | <!-- To be implemented: returning a single field value -->
 
        | {{npc/{{#switch:{{PAGENAME}}
                  | {{{area}}} NPCs
                  | {{{realm}}} NPC table = tablerow
                  | {{{name}}} = full
                  | {{{area}}} = count
                  | {{{area}}} map = map
                  | {{{area}}} map svg = svg
                  | #default = listitem
                }}
            | {{{1| {{{data|}}} }}} |
            | data =  {{{data| {{{1|}}} }}} | 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)