Template:Infobox Character: Difference between revisions

Template page
(Created page with "<includeonly>Category:Characters<table class="infobox-table floatright " style="padding-top:0"> <tr id="infobox-table-img-bg"> <td width="100%" colspan="3" class="infobox-table-img" style="text-align: center; padding:0 !important;">{{#if:{{{Image|}}}|[[File:{{{Image}}}|400px]]|400px}}</td> </tr> <tr> <th width="100%" colspan="3" class="infobox-table-name">{{{Name}}}</th> </tr> {{#if:{{{Race|}}}|<tr> <td width="40%" valign="top" colspan="2"...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[[Category:Characters]]<table class="infobox-table floatright " style="padding-top:0">
<div class="infobox">
<tr id="infobox-table-img-bg">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<td width="100%" colspan="3" class="infobox-table-img" style="text-align: center; padding:0 !important;">{{#if:{{{Image|}}}|[[File:{{{Image}}}|400px]]|[[File:Placeholderv2.png|400px]]}}</td>
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
</tr>
<table class="infobox-table">{{#if:{{{param1|}}}|<tr>
<tr>
    <th>Parameter 1</th>
<th width="100%" colspan="3" class="infobox-table-name">{{{Name}}}</th>
    <td>{{{param1}}}</td>
</tr>
</tr>}}{{#if:{{{param2|}}}|<tr>
{{#if:{{{Race|}}}|<tr>
    <th>Parameter 2</th>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Race</td>
    <td>{{{param2}}}</td>
<td width="60%" style="padding:3px;">[[{{{Race}}}]]</td>
</tr>}}{{#if:{{{param3|}}}|<tr>
[[Category:{{{Race}}} Characters]]
    <th>Parameter 3</th>
</tr>}}
    <td>{{{param3}}}</td>
{{#if:{{{Gender|}}}|<tr>
</tr>}}{{#if:{{{param4|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Gender</td>
    <th>Parameter 4</th>
<td width="60%" style="padding:3px;">[[:Category:{{{Gender}}} Characters|{{{Gender}}}]]</td>
    <td>{{{param4}}}</td>
[[Category:{{{Gender}}} Characters]]
</tr>}}{{#if:{{{param5|}}}|<tr>
</tr>}}
    <th>Parameter 5</th>
{{#if:{{{Born|}}}|<tr>
    <td>{{{param5}}}</td>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Born</td>
</tr>}}</table>
<td width="60%" style="padding:3px;">{{{Born}}}</td>
</div>
</tr>}}
{{#if:{{{Died|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Died</td>
<td width="60%" style="padding:3px;">{{{Died}}}</td>
[[Category:Deceased Characters]]
</tr>|[[Category:Living Characters]]}}
{{#if:{{{Role|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Role</td>
<td width="60%" style="padding:3px;">{{{Role}}}</td>
</tr>}}
{{#if:{{{Faction|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Faction</td>
<td width="60%" style="padding:3px;">[[:Category:{{{Faction}}} Faction Characters|{{{Faction}}}]]</td>
[[Category:{{{Faction}}} Faction Characters]]
</tr>}}
{{#if:{{{Citizenship|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Citizenship Status</td>
<td width="60%" style="padding:3px;">{{{Citizenship}}}</td>
</tr>}}
{{#if:{{{Organization|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Primary Organization</td>
<td width="60%" style="padding:3px;">[[:Category:{{{Organization}}} Characters|{{{Organization}}}]]</td>
[[Category:{{{Organization}}} Characters]]
</tr>}}
{{#if:{{{Actor|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Actor</td>
<td width="60%" style="padding:3px;">{{{Actor}}}</td>
</tr>}}
{{#if:{{{Occupation|}}}|<tr>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Current Employment</th>
</tr>}}
{{#if:{{{Occupation|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Occupation</td>
<td width="60%" style="padding:3px;">{{{Occupation}}}</td>
</tr>}}
{{#if:{{{Employer|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Employer</td>
<td width="60%" style="padding:3px;">{{{Employer}}}</td>
</tr>}}
{{#if:{{{Job Title|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Job Title</td>
<td width="60%" style="padding:3px;">{{{Job Title}}}</td>
</tr>}}
{{#if:{{{Workplace|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Workplace</td>
<td width="60%" style="padding:3px;">{{{Workplace}}}</td>
</tr>}}
{{#if:{{{Rank|}}}|<tr>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Military Service</th>
[[Category:Military Characters]]
</tr>
<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Rank</td>
<td width="60%" style="padding:3px;">{{{Rank}}}</td>
</tr>}}
{{#if:{{{Callsign|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Callsign</td>
<td width="60%" style="padding:3px;">{{{Callsign}}}</td>
</tr>}}
{{#if:{{{Branch|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Branch</td>
<td width="60%" style="padding:3px;">[[{{{Branch}}}|{{{Branch}}}]]</td>
[[Category:{{{Branch}}} Characters]]
</tr>}}
{{#if:{{{Unit|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Unit</td>
<td width="60%" style="padding:3px;">[[{{{Unit}}}|{{{Unit}}}]]</td>
</tr>}}
{{#if:{{{Service Start|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Years of Service</td>
<td width="60%" style="padding:3px;">{{{Service Start}}} - {{#if:{{{Service End|}}}|{{{Service End}}}|Present [[Category:Active Duty Military Characters]]}} </td>
{{#ifeq:{{{Service End}}}|Present|[[Category:Active Duty Military Characters]]}}
</tr>}}
{{#if:{{{Office|}}}|<tr>
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Political Office</th>
[[Category:Politicians]]}}
{{#if:{{{Office|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Office</td>
<td width="60%" style="padding:3px;">[[{{{Office}}}|{{{Office}}}]]</td>
[[Category:{{#invoke:util|pluralize|{{{Office}}}}}]]
</tr>}}
{{#if:{{{Office Start|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Years Held</td>
<td width="60%" style="padding:3px;">{{{Office Start}}} - {{#if:{{{Office End|}}}|{{{Office End}}}|Present[[Category:Active Political Office Holders]]}}</td>
{{#ifeq:{{{Service End}}}|Present|[[Category:Active Political Office Holders]]}}
</tr>}}
{{#if:{{{Party|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Party</td>
<td width="60%" style="padding:3px;">[[{{{Party}}}|{{{Party}}}]]</td>
[[Category:{{{Party}}}s]]
</tr>}}
{{#if:{{{Constituency|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Constituency</td>
<td width="60%" style="padding:3px;">[[{{{Constituency}}}|{{{Constituency}}}]]</td>
</tr>}}
{{#if:{{{System|}}}|<tr>
<td width="40%" valign="top" colspan="2" style="padding:3px;">System</td>
<td width="60%" style="padding:3px;">[[{{{System}}}|{{{System}}}]]</td>
</tr>}}
</table><templatestyles src="Template:InfoboxOld/styles.css" />{{Short description|Character in Star Citizen}}</includeonly><noinclude>[[Category:Infobox Templates]] {{/doc}}</noinclude>

Latest revision as of 12:12, 19 March 2023

Infobox Character