Template:Npcbox: Difference between revisions

From Azeroth Gazetteer
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><templatestyles src="Npcbox/styles.css" />{{#cargo_store:_table=NPCs|Name={{{name|{{PAGENAME}}}}}|Faction={{{faction|}}}|Sex={{{sex|}}}|Race={{{race|}}}|Creature_type={{{creature|}}}|Level={{{level|}}}|Class={{{class|}}}|Affiliation={{{affiliation|}}}|Former_affiliation={{{faffiliation|}}}|Occupation={{{occupation|}}}|Former_occupation={{{foccupation|}}}|Profession={{{profession|}}}|Current_location={{{location|}}}|Status={{{status|}}}|Source={{{source|}}}}}<table class="npcbox"><tr>
<includeonly><templatestyles src="Npcbox/styles.css" />{{#cargo_store:_table=NPCs|Name={{{name|{{PAGENAME}}}}}|Faction={{{faction|}}}|Sex={{{sex|}}}|Race={{{race|}}}|Creature_type={{{creature|}}}|Level={{{level|}}}|Class={{{class|}}}|Affiliation={{{affiliation|}}}|Former_affiliation={{{faffiliation|}}}|Occupation={{{occupation|}}}|Former_occupation={{{foccupation|}}}|Profession={{{profession|}}}|Current_location={{{location|}}}|Status={{{status|}}}|Source={{{source|}}}}}<table class="npcbox">
<th colspan="2" class="npcbox-header">
{{#if:{{{faction|}}}|
<span class="npcbox-faction">{{FactionIcon|{{{faction}}}}}</span>
}}
<span class="npcbox-name">{{{name|{{PAGENAME}}}}}</span>
{{#if:{{{title|}}}|<br><small>{{{title}}}</small>}}
</th>
</tr>
 
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" class="npcbox-image">
<th colspan="2" class="npcbox-header">{{#if:{{{faction|}}}|<span class="npcbox-faction">{{FactionIcon|{{{faction}}}}}</span>}}<span class="npcbox-name">{{{name|{{PAGENAME}}}}}</span>{{#if:{{{title|}}}|<br><small>{{{title}}}</small>}}</th>
[[File:{{{image}}}|200px|center|{{{name|{{PAGENAME}}}}}]]
</td>
</tr>
</tr>
}}
{{#if:{{{image|}}}|<tr><td colspan="2" class="npcbox-image">[[File:{{{image}}}|200px|center|{{{name|{{PAGENAME}}}}}]]</td></tr>}}
 
{{#if:{{{sex|}}}|<tr><th>Sex</th><td>{{{sex}}}</td></tr>}}
{{#if:{{{sex|}}}|<tr><th>Sex</th><td>{{{sex}}}</td></tr>}}
{{#if:{{{race|}}}|<tr><th>Race</th><td>{{{race}}}</td></tr>}}
{{#if:{{{race|}}}|<tr><th>Race</th><td>{{{race}}}</td></tr>}}
Line 33: Line 20:
{{#if:{{{students|}}}|<tr><th>Student(s)</th><td>{{{students}}}</td></tr>}}
{{#if:{{{students|}}}|<tr><th>Student(s)</th><td>{{{students}}}</td></tr>}}
{{#if:{{{companions|}}}|<tr><th>Companion(s)</th><td>{{{companions}}}</td></tr>}}
{{#if:{{{companions|}}}|<tr><th>Companion(s)</th><td>{{{companions}}}</td></tr>}}
{{#if:{{{source|}}}|<tr><th>Source(s)</th><td>{{{source}}}</td></tr>}}</table></includeonly>
{{#if:{{{source|}}}|<tr><th>Source(s)</th><td>{{{source}}}</td></tr>}}
<noinclude>
</table></includeonly><noinclude>
{{#cargo_declare:
{{#cargo_declare:
_table=NPCs
_table=NPCs

Revision as of 10:50 PM, September 11, 2026

This template defines the table "NPCs". View table.