Template:Infobox Character: Difference between revisions
Jump to navigation
Jump to search
m (Testing a fix to age to see if we can make it stop printing years if the value is invalid) |
m (Testing something with #setmainimage) |
||
| Line 182: | Line 182: | ||
-->{{#vardefine:weightprint|{{#if:{{{weight|}}}|{{{weight}}} kg|}}}}<!-- | -->{{#vardefine:weightprint|{{#if:{{{weight|}}}|{{{weight}}} kg|}}}}<!-- | ||
-->{{#vardefine:ageprint|{{#if:{{{age|}}}| {{#iferror:{{#expr:{{{age}}} + 1}}|{{{age}}}|{{{age}}} years}}|}}}}<!-- | -->{{#vardefine:ageprint|{{#if:{{{age|}}}| {{#iferror:{{#expr:{{{age}}} + 1}}|{{{age}}}|{{{age}}} years}}|}}}}<!-- | ||
-->{{#vardefine:img|{{#if:{{{image|}}}|{{#setmainimage:{{{image}}}}}|{{#setmainimage:{{PAGENAMEE}}.png}}}}}}<!-- | |||
--><infobox theme="erra"> | --><infobox theme="erra"> | ||
Revision as of 15:36, 29 March 2023
This template defines the table "characters". View table. Declare with {{Infobox Character |content }}
Parameters
- name (Defaults to page name)
- species
- birthday (day-month-year)
- deathday (day-month-year)
- cause-of-death
- height
- weight
- age (accepts String)
- nationality (list of string (,))
- aliases (list of string (,))
- occupation (list of string (,))
- affiliation (list of string (,))
- known-for (list of string (,))
- notable-work (list of string(,))
- str-stat
- cel-stat
- end-stat
- com-stat
- int-stat
- per-stat
- lck-stat
- hp
- ac
- init
- hr
- crit
- md