Template:Character Infobox: Difference between revisions
From Zyrkthraan Chronicles Wiki
Jump to navigationJump to search
(Created page with "</cleanspace><cleantable>{| class="wikitable infobox" style="width:{{{width|25}}}%" ! colspan=2 class="{{{racecolor1}}} coloredlinks"|{{{titlename}}}{{#if:{{{id|}}}|<br><small>''{{{id}}}''</small>|{{#ifeq:{{NS_ID:}}|BL|<br><small>''Category:Blades Pages Missing IDsMissing ID''</small>}}}}{{#if:{{{lorelink|}}}|<br>{{nowrap|({{{lorelink}}})}}}} |- ! Home City | {{{city|}}} |- ! Home Town | {{{town|}}} |- ! Location | {{{...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><cleanspace> | |||
{{#inherit:image|width|ns_base}} | |||
<!-- Space switches --> | |||
{{#local:userspace|1|if={{#ifeq:{{SUBJECTSPACE}}|User|1}}}} | |||
{{#define:ns_base|Redguard|if={{{userspace|}}}}} | |||
{{#local:gamespace|1|ifnot={{#switch:{{NS_BASE:}}|User|Template|UESPWiki=1}}}} | |||
<!-- Bread Crumb Trail --> | |||
{{#define:notrail|1|if={{{userspace|}}}}} | |||
{{#inittrail:{{#ifexistx:{{NS_FULL:}}NPCs|NPCs|People}}|ifnot={{{notrail|}}}}} | |||
<!-- Image Parameters and Checks --> | |||
{{#define:image|case=any}} | |||
{{#define:imgdesc|case=any}} | |||
{{#unset:image|if={{#ifeq:{{lc:{{{image|}}}}}|none|1}}}} | |||
<!-- Infobox Parameters --> | |||
{{#ifeq:{{lc:{{{race|}}}}}|none|{{#unset:race}}{{#local:norace|1}}}} | |||
{{#local:racelets|{{lc:{{anchorencode:{{{race|}}}}}}}}} | |||
{{#local:racecolor1|racecolor1 racecolor1-{{{racelets}}}}} | |||
{{#local:racecolor2|racecolor2 racecolor2-{{{racelets}}}}} | |||
{{#define:titlename|{{LABELNAME}}}} | |||
{{#define:lorepage|{{{titlename}}}}} | |||
<!-- Categories --> | |||
{{#define:nocat|1|if={{{userspace|}}}}} | |||
{{#if:{{{nocat|}}}|| | |||
{{#define:racecat|{{{race|}}}}} | |||
{{#define:gendercat|{{{gender|}}}}} | |||
{{NS_CATLINK:NPCs}} | |||
{{#if:{{{racecat|}}}| | |||
{{NS_CATLINK:{{{racecat|}}}}} | |||
{{#if:{{{gendercat|}}}|{{NS_CATLINK:{{{racecat}}}-{{{gendercat}}}}}}} | |||
}} | |||
{{#if:{{{gendercat|}}}|{{NS_CATLINK:{{{gendercat}}} NPCs}}}} | |||
}} | |||
<!-- Other --> | |||
{{#local:lorelink|{{#if:{{#pos:{{{lorepage|}}}|[}}|{{{lorepage}}}|{{#ifexistx:Lore:{{{lorepage}}}|[[Lore:{{{lorepage}}}|<span style="color:{{{fcolor}}}">lore page</span>]]}}}}}} | |||
{{#local:pageexists|1}} | |||
{{#if:{{{nosave|}}}||{{#save:titlename|race|class|gender|loc|pageexists|ifnot={{{userspace|}}}}}}} | |||
<!-- Infobox --> | |||
</cleanspace><cleantable>{| class="wikitable infobox" style="width:{{{width|25}}}%" | </cleanspace><cleantable>{| class="wikitable infobox" style="width:{{{width|25}}}%" | ||
! colspan=2 class="{{{racecolor1}}} coloredlinks"|{{{titlename}}}{{#if:{{{id|}}}|<br><small>''{{{id}}}''</small>|{{#ifeq:{{NS_ID:}}|BL|<br><small>''[[Category:Blades Pages Missing IDs]][[:Category:Blades Pages Missing IDs|Missing ID]]''</small>}}}}{{#if:{{{lorelink|}}}|<br>{{nowrap|({{{lorelink}}})}}}} | ! colspan=2 class="{{{racecolor1}}} coloredlinks"|{{{titlename}}}{{#if:{{{id|}}}|<br><small>''{{{id}}}''</small>|{{#ifeq:{{NS_ID:}}|BL|<br><small>''[[Category:Blades Pages Missing IDs]][[:Category:Blades Pages Missing IDs|Missing ID]]''</small>}}}}{{#if:{{{lorelink|}}}|<br>{{nowrap|({{{lorelink}}})}}}} |