Template:Character Infobox: Difference between revisions

From Zyrkthraan Chronicles Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><cleanspace>
<table class="wikitable infobox">
{{#inherit:image|width|ns_base}}
<tbody><tr>
 
<th colspan="4" class="racecolor1 racecolor1-high_elf coloredlinks">Earyaorne</th>
<!-- Space switches -->
</tr>
{{#local:userspace|1|if={{#ifeq:{{SUBJECTSPACE}}|User|1}}}}
<tr>
{{#define:ns_base|Redguard|if={{{userspace|}}}}}
<th>Home&nbsp;Settlement</th>
{{#local:gamespace|1|ifnot={{#switch:{{NS_BASE:}}|User|Template|UESPWiki=1}}}}
<td colspan="3"><a href="/wiki/Online:Vos" title="Online:Vos">Vos</a></td>
 
</tr>
<!-- Bread Crumb Trail -->
<tr>
{{#define:notrail|1|if={{{userspace|}}}}}
<th>Location</th>
{{#inittrail:{{#ifexistx:{{NS_FULL:}}NPCs|NPCs|People}}|ifnot={{{notrail|}}}}}
<td colspan="3"><a href="/wiki/Online:Gathering_House" title="Online:Gathering House">Gathering House</a></td>
 
</tr>
<!-- Image Parameters and Checks -->
<tr>
{{#define:image|case=any}}
<th>Race</th>
{{#define:imgdesc|case=any}}
<td><a href="/wiki/Online:High_Elf" title="Online:High Elf">High Elf</a></td>
{{#unset:image|if={{#ifeq:{{lc:{{{image|}}}}}|none|1}}}}
<th>Gender</th>
 
<td>Female</td>
<!-- Infobox Parameters -->
</tr>
{{#ifeq:{{lc:{{{race|}}}}}|none|{{#unset:race}}{{#local:norace|1}}}}
<tr>
{{#local:racelets|{{lc:{{anchorencode:{{{race|}}}}}}}}}
<th>Health</th>
{{#local:racecolor1|racecolor1 racecolor1-{{{racelets}}}}}
<td colspan="3">39,959</td>
{{#local:racecolor2|racecolor2 racecolor2-{{{racelets}}}}}
</tr>
{{#define:titlename|{{LABELNAME}}}}
<tr>
{{#define:lorepage|{{{titlename}}}}}
<th><a href="/wiki/Online:Reaction" class="mw-redirect" title="Online:Reaction">Reaction</a></th>
 
<td colspan="3">Friendly</td>
<!-- Categories -->
</tr>
{{#define:nocat|1|if={{{userspace|}}}}}
</tbody></table>
{{#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}}}%"
! 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}}})}}}}
|-
! Home&nbsp;City
| {{{city|}}}
|-
! Home&nbsp;Town
| {{{town|}}}
|-
! Location
| {{{loc|}}}
|-
! Race
| {{#if:{{{norace|}}}||{{#if:{{{race|}}}|
  {{#local:racelink|{{#ifeq:{{NS_BASE:}}|Redguard|Lore:{{{race}}}|{{#findfirst:
    {{NS_FULL:}}{{{race}}}
    |{{NS_PARENT:}}:{{{race}}}
    |Lore:{{{race}}}}}
  }}}}
  [[{{{racelink}}}|{{{race}}}]]|{{huh}}}}
  }}
|-
! Gender
| {{{gender|{{huh}}}}}
|-
! Health
| {{{health|}}}
|-
! style="white-space:nowrap;" | {{SkipLink|{{NS_FULL:}}Factions|Faction(s)}}
| style="text-align:left;" | {{{faction|}}}
|}</cleantable>{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|left|{{{imgdesc|}}}]]}}</includeonly><noinclude>{{/Doc}}</noinclude>

Revision as of 17:22, 12 May 2024

<tbody> </tbody>
Earyaorne
Home Settlement <a href="/wiki/Online:Vos" title="Online:Vos">Vos</a>
Location <a href="/wiki/Online:Gathering_House" title="Online:Gathering House">Gathering House</a>
Race <a href="/wiki/Online:High_Elf" title="Online:High Elf">High Elf</a> Gender Female
Health 39,959
<a href="/wiki/Online:Reaction" class="mw-redirect" title="Online:Reaction">Reaction</a> Friendly