Difference between revisions of "Template:NPCTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(removing QuestRequirement, will add it at the end of the table)
(add second parameter to be used as superscript after quest checkmark - for footnotes)
Line 3: Line 3:
-->{{#vardefine:Exists|{{#ifeq: {{:Friendly data|{{{1}}}|Occupation}}|NPC {{{1}}} does not exist in [[Friendly data]].||{{:Friendly data|{{{1}}}|Occupation}}}}}}<!--
-->{{#vardefine:Exists|{{#ifeq: {{:Friendly data|{{{1}}}|Occupation}}|NPC {{{1}}} does not exist in [[Friendly data]].||{{:Friendly data|{{{1}}}|Occupation}}}}}}<!--
-->{{#vardefine:Name|{{:Friendly data|{{{1}}}|Name}}}}<!--
-->{{#vardefine:Name|{{:Friendly data|{{{1}}}|Name}}}}<!--
-->{{#vardefine:Image|{{:Friendly data|{{{1}}}|Image}}}}<!--
-->{{#vardefine:Image|{{:Friendly data|{{{1}}}|Image}}}}
-->{{#vardefine:QuestRequirement|{{:Friendly data|{{{1}}}|QuestRequirement}}}}
|-
|-
| {{:Friendly data|{{{1}}}|Occupation}}
| {{:Friendly data|{{{1}}}|Occupation}}
| {{#if:{{#var:Exists}}|[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|37px|link={{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}||{{Translate|{{#var:Name}}|NPCNames}}}}|{{Translate|{{{1}}}|NPCNames}}}}]]<br>{{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}|{{Translate|{{#var:Name}}|NPCNames}}|[[{{Translate|{{#var:Name}}|NPCNames}}]]}}|[[{{Translate|{{{1}}}|NPCNames}}]]}}}}
| {{#if:{{#var:Exists}}|[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|37px|link={{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}||{{Translate|{{#var:Name}}|NPCNames}}}}|{{Translate|{{{1}}}|NPCNames}}}}]]<br>{{#if:{{#var:Name}}|{{#if:{{#pos:{{lc:{{#var:Name}}}}|random}}|{{Translate|{{#var:Name}}|NPCNames}}|[[{{Translate|{{#var:Name}}|NPCNames}}]]}}|[[{{Translate|{{{1}}}|NPCNames}}]]}}}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Contract}}|'''✓'''}}}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Contract}}|'''✓'''}}}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Quest}}|'''✓'''}}}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Quest}}|'''✓'''}}}}{{#if:{{{2|}}}|<sup>{{{2|}}}</sup>}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Trader}}|'''✓'''}}}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Trader}}|'''✓'''}}}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Repair}}|'''✓'''}}}}
| {{#if:{{#var:Exists}}|{{#if:{{:Friendly data|{{{1}}}|Repair}}|'''✓'''}}}}

Revision as of 20:13, 18 October 2022

This template has no documentation. If you know how to use this template, please add some.