Template:Npcbox: Difference between revisions

From Azeroth Gazetteer
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><templatestyles src="Npcbox/styles.css" />{{#cargo_store:
<table class="infobox" style="float:right; clear:right; width:25em; margin:0 0 1em 1em;">
_table=NPCs
 
|Name={{{name|{{PAGENAME}}}}}
<tr>
|Faction={{{faction|}}}
<th colspan="2" style="font-size:125%; text-align:center;">
|Sex={{{sex|}}}
 
|Race={{#if:{{{race|}}}|[[{{{race}}}]]}}
{{#if:{{{faction|}}}|
|Creature_type={{{creature|}}}
<span style="display:inline-block; vertical-align:middle; margin-right:0.25em;">{{FactionIcon|{{{faction}}}}}</span>
|Level={{{level|}}}
}}<span style="vertical-align:middle;">{{{name|{{PAGENAME}}}}}</span>
|Class={{#if:{{{class|}}}|[[{{{class}}}]]}}
 
|Affiliation={{{affiliation|}}}
{{#if:{{{title|}}}|
|Former_affiliation={{{faffiliation|}}}
<br><small>{{{title}}}</small>
|Occupation={{{occupation|}}}
}}
|Former_occupation={{{foccupation|}}}
 
|Profession={{{profession|}}}
</th>
|Current_location={{{location|}}}
</tr>
|Status={{{status|}}}
 
|Source={{{source|}}}
{{#if:{{{image|}}}|
}}<table class="npcbox">
<tr>
<td colspan="2" style="text-align:center;">
[[File:{{{image}}}|250px|center|{{{name|{{PAGENAME}}}}}]]
</td>
</tr>
}}
 
{{#if:{{{sex|}}}|
<tr>
<th style="text-align:left;">Sex</th>
<td>{{{sex}}}</td>
</tr>
}}
 
{{#if:{{{race|}}}|
<tr>
<th style="text-align:left;">Race</th>
<td>{{{race}}}</td>
</tr>
}}
 
{{#if:{{{creature|}}}|
<tr>
<th style="text-align:left;">Creature type</th>
<td>{{{creature}}}</td>
</tr>
}}
 
{{#if:{{{level|}}}|
<tr>
<th style="text-align:left;">Level</th>
<td>{{{level}}}</td>
</tr>
}}
 
{{#if:{{{class|}}}|
<tr>
<th style="text-align:left;">Class</th>
<td>{{{class}}}</td>
</tr>
}}
 
{{#if:{{{affiliation|}}}|
<tr>
<th style="text-align:left;">Affiliation(s)</th>
<td>{{{affiliation}}}</td>
</tr>
}}
 
{{#if:{{{faffiliation|}}}|
<tr>
<th style="text-align:left;">Former affiliation(s)</th>
<td>{{{faffiliation}}}</td>
</tr>
}}
 
{{#if:{{{occupation|}}}|
<tr>
<th style="text-align:left;">Occupation</th>
<td>{{{occupation}}}</td>
</tr>
}}
 
{{#if:{{{foccupation|}}}|
<tr>
<th style="text-align:left;">Former occupation(s)</th>
<td>{{{foccupation}}}</td>
</tr>
}}
 
{{#if:{{{profession|}}}|
<tr>
<th style="text-align:left;">Profession(s)</th>
<td>{{{profession}}}</td>
</tr>
}}
 
{{#if:{{{location|}}}|
<tr>
<th style="text-align:left;">Location</th>
<td>{{{location}}}</td>
</tr>
}}
 
{{#if:{{{status|}}}|
<tr>
<th style="text-align:left;">Status</th>
<td>{{{status}}}</td>
</tr>
}}
 
{{#if:{{{relatives|}}}|
<tr>
<th style="text-align:left;">Relative(s)</th>
<td>{{{relatives}}}</td>
</tr>
}}
 
{{#if:{{{mentors|}}}|
<tr>
<th style="text-align:left;">Mentor(s)</th>
<td>{{{mentors}}}</td>
</tr>
}}
 
{{#if:{{{students|}}}|
<tr>
<th style="text-align:left;">Student(s)</th>
<td>{{{students}}}</td>
</tr>
}}
 
{{#if:{{{companions|}}}|
<tr>
<th style="text-align:left;">Companion(s)</th>
<td>{{{companions}}}</td>
</tr>
}}
 
{{#if:{{{source|}}}|
<tr>
<tr>
<th style="text-align:left;">Source(s)</th>
<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>
<td>{{{source}}}</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:{{{race|}}}|<tr><th>Race</th><td>[[{{{race}}}]]</td></tr>}}<!--
-->{{#if:{{{creature|}}}|<tr><th>Creature type</th><td>{{{creature}}}</td></tr>}}<!--
-->{{#if:{{{level|}}}|<tr><th>Level</th><td>{{{level}}}</td></tr>}}<!--
-->{{#if:{{{class|}}}|<tr><th>Class</th><td>[[{{{class}}}]]</td></tr>}}<!--
-->{{#if:{{{affiliation|}}}|<tr><th>Affiliation(s)</th><td>{{{affiliation}}}</td></tr>}}<!--
-->{{#if:{{{faffiliation|}}}|<tr><th>Former affiliation(s)</th><td>{{{faffiliation}}}</td></tr>}}<!--
-->{{#if:{{{occupation|}}}|<tr><th>Occupation</th><td>{{{occupation}}}</td></tr>}}<!--
-->{{#if:{{{foccupation|}}}|<tr><th>Former occupation(s)</th><td>{{{foccupation}}}</td></tr>}}<!--
-->{{#if:{{{profession|}}}|<tr><th>Profession(s)</th><td>{{{profession}}}</td></tr>}}<!--
-->{{#if:{{{location|}}}|<tr><th>Location</th><td>{{{location}}}</td></tr>}}<!--
-->{{#if:{{{status|}}}|<tr><th>Status</th><td>{{{status}}}</td></tr>}}<!--
-->{{#if:{{{relatives|}}}|<tr><th>Relative(s)</th><td>{{{relatives}}}</td></tr>}}<!--
-->{{#if:{{{mentors|}}}|<tr><th>Mentor(s)</th><td>{{{mentors}}}</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:{{{source|}}}|<tr><th>Source(s)</th><td>{{{source}}}</td></tr>}}
</table>[[category:NPCs]]</includeonly><noinclude>
{{#cargo_declare:
_table=NPCs
|Name=String
|Faction=String
|Sex=String
|Race=Wikitext string
|Creature_type=Wikitext string
|Level=String
|Class=Wikitext string
|Affiliation=Wikitext string
|Former_affiliation=Wikitext string
|Occupation=Wikitext string
|Former_occupation=Wikitext string
|Profession=Wikitext string
|Current_location=Wikitext string
|Status=String
|Source=Wikitext string
}}
}}


</table>
</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
[[category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 12:31 AM, September 12, 2026

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