Template:Infobox Character: Difference between revisions

From Red Faction Wiki
No edit summary
No edit summary
Line 1: Line 1:
{| class="infobox" style="font-size:89%; float:{{{align|right}}}; width:250px; background-color:#cccccc;"
<infobox>
|-
    <group>
|colspan="2" style="text-align:center; background:#cccccc; -moz-border-radius-topleft: 0.5em; -moz-border-radius-topright: 0.5em;"|<big>'''{{{name}}}'''<big>
<title source="name"><default>{{PAGENAME}}</default><format>{{{title|{{PAGENAME}}}}}</format></title>
|-
<media source="image"/>
|colspan="2" style="text-align:center; background:#FFFFFF"|{{{image}}}
<header source="imageinfo"><small>{{{imageinfo}}}</small></header>
|-
</group>
|colspan="2" style="text-align:center; background:#cccccc"|''{{{imageinfo}}}''
 
|-
<group>
|style="background:#ffffff"|{{Template:If|{{{game|}}}|'''Game(s)'''|}}
<data source="game"><label>'''Game(s)'''</label></data>
|style="color:white; background:#aaaaaa"|{{Template:If|{{{game|}}}|{{{game}}}|}}
</group>
|-
 
|style="background:#ffffff"|{{Template:If|{{{sex|}}}|'''Sex'''|}}
<group>
|style="color:white; background:#aaaaaa"|{{Template:If|{{{sex|}}}|{{{sex}}}|}}
<header><small>Information</small></header>
|-
<data source="sex"><label>'''Sex'''</label></data>
|style="background:#ffffff"|{{Template:If|{{{age|}}}|'''Age'''|}}
<data source="born"><label>'''Born'''</label></data>
|style="color:white; background:#aaaaaa"|{{Template:If|{{{age|}}}|{{{age}}}|}}
<data source="died"><label>'''Died'''</label></data>
|-
<data source="alignment"><label>'''Allegiance'''</label></data>
|style="background:#ffffff"|{{Template:If|{{{alignment|}}}|'''Alignment'''|}}
<data source="role"><label>'''Role'''</label></data>
|style="color:white; background:#aaaaaa"|{{Template:If|{{{alignment|}}}|{{{alignment}}}|}}
</group>
|}
</infobox>


<noinclude>
<noinclude>
Line 32: Line 32:
|age            =
|age            =
|alignment      =
|alignment      =
|role          =
}}
}}
</pre>
</pre>
|}
|}


[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
NOTE: If "name" is omitted, it will default to the name of the page.
 
[[Category:Infobox Templates]]</noinclude>

Revision as of 04:25, 4 January 2024


{{Infobox Character
|name           =
|image          =
|imageinfo      =
|game           =
|sex            =
|age            =
|alignment      =
|role           =
}}

NOTE: If "name" is omitted, it will default to the name of the page.