Template:Infobox character: Difference between revisions
m (fix pipes) |
(Fixed ifs) |
||
Line 9: | Line 9: | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
|image = [[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]] | |||
|imagestyle = {{{imagestyle|}}} | |||
{{#if:{{{caption|}}}| | {{#if:{{{caption|}}}| | ||
|caption = {{{caption|}}} | |||
|captionstyle = {{{captionstyle|}}} | |||
}}}} | }}}} | ||
Line 22: | Line 22: | ||
|header1 = | |header1 = | ||
|label1 = Appearances | |||
|data1 = {{#if: {{{game|1|}}}| | |||
[[Appearance::{{{game_1|}}}]]{{#if: {{{game_2|}}}| | |||
{{#if: {{{game|1|}}}| | |||
<br />[[Appearance::{{{game_2|}}}]]}}{{#if: {{{game_3|}}}| | <br />[[Appearance::{{{game_2|}}}]]}}{{#if: {{{game_3|}}}| | ||
<br />[[Appearance::{{{game_3|}}}]]}}{{#if: {{{game_4|}}}| | <br />[[Appearance::{{{game_3|}}}]]}}{{#if: {{{game_4|}}}| | ||
Line 35: | Line 31: | ||
<br />[[Appearance::{{{game_6|}}}]]}}{{#if: {{{game_7|}}}| | <br />[[Appearance::{{{game_6|}}}]]}}{{#if: {{{game_7|}}}| | ||
<br />[[Appearance::{{{game_7|}}}]]}} | <br />[[Appearance::{{{game_7|}}}]]}} | ||
}}}} | }} | ||
| | |||
{{{games|}}} | |||
}} | |||
|label2 = Full Name | |||
|data2 = {{{name|}}} | |||
|label3 = {{abbr|Aliases|Permanent nicknames or alternative names, not one-off, affectionate or abusive names}} | |||
|data3 = {{{aka|}}} | |||
{{#if: {{{ | |label4 = Status | ||
{{ | |data4 = {{#if: {{{status|}}}|{[[Status::{{{status|}}}]]}} | ||
}} | |||
{{#if: {{{gender|}}}| | |label5 = Gender | ||
|data5 = {{#if: {{{gender|}}}|[[Gender::{{#switch: {{{gender|}}} | |||
| M = Male | | M = Male | ||
| m = Male | | m = Male | ||
Line 71: | Line 64: | ||
}} | }} | ||
{{#if: {{{dob|}}}| | |||
|label6 = Date of Birth | |||
|data6 = {{#if: {{{dob|}}}|[[{{#time: Y |{{{dob|}}}}}|{{{dob}}}]][[DOB::{{{dob|}}}| ]] {{{dob-comment|}}} | |||
}} | }} | ||
|label7 = Place of Birth | |||
|data7 = {{{pob|}}} | |||
|label8 = Date of Death | |||
|data8 = |[[{{#time: Y |{{{dod|}}}}}|{{{dod}}}]][[DOD::{{{dod|}}}| ]] {{{dod-comment|}}}}} | |||
|label9 = Age at Death | |||
|data9 = | |||
{{#if: {{dod|}}| | |||
{{#if: {{{dob|}}}| | {{#if: {{{dob|}}}| | ||
{{#iferror:{{#time: Y |{{{dod|abc}}}}} | <!-- dod error --> | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error in dod --> | | {{#iferror:{{#time: Y |{{{dod|abc}}}}} | <!-- dod error --> | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error in dod --> | | ||
{{#expr: {{#time: Y |{{{dod}}}}} - {{#time: Y |{{{dob}}} }} }} }} }} }} }} | |||
|label10 = Age Now | |||
| | |data10 = | ||
{{#if: {{ | {{#if: {{{dob|}}}| | ||
{{#if: {{dod|}}|| | |||
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error --> | | {{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error --> | | ||
{{age|{{#time: Y |{{{dob}}} }} }} }} }} }} }} | |||
{{#if: {{{ | |label11 = Nationality | ||
{{ | |data11 = {{#if: {{{nationality|}}}|[[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]}} | ||
}} | |label12 = Home | ||
|data12 = {{{home|}}} | |||
|label13 = Family | |||
|data13 = {{{family|}}} | |||
}} | |||
|label14 = Main Affiliations | |||
|data15 = {{{affiliations|}}} | |||
}} | |||
|label15 = Vehicles | |||
|data15 = {{{vehicles|}}} | |||
}} | |||
|label16 = Businesses | |||
|data16 = {{{businesses|}}} | |||
}} | |||
|label17 = Voiced by | |||
|data17 = {{{voice|}}} | |||
}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> |