Template:Infobox Character: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- * Name * Image == Basic Information * Species * Born * (Optional) Died * (Optional) Cause of Death * Nationality * Aliases * Occupation * Known For * Notable Work == Game Statistics == * Strength * Celerity * Endurance * Composure * Intelligence * Perception * Luck * Statistics Table - Like the SPECIAL table but using Strength, Celerity, Endurance, Composure, Intelligence, Perception, Luck instead -->{{#vardefine:name|{{{name|{{PAGENAMEE}}}}}}}<!--...") |
mNo edit summary |
||
| (40 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><!-- | <noinclude><!-- | ||
-->{{#cargo_declare: | |||
_table = characters | |||
|name = String | |||
|species = String | |||
|birthday = Integer | |||
|birthmonth = Integer | |||
|birthyear = Integer | |||
|deathday = Integer | |||
|deathmonth = Integer | |||
|deathyear = Integer | |||
|height = Integer | |||
|weight = Integer | |||
|age = 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 | |||
|strength = Integer | |||
|celerity = Integer | |||
|endurance = Integer | |||
|composure = Integer | |||
|intelligence = Integer | |||
|perception = Integer | |||
|luck = Integer | |||
|hp = Integer | |||
|ac = Integer | |||
|ap = Integer | |||
|init = Integer | |||
|hr = Integer | |||
|crit = Integer | |||
|md = Integer}}<!-- | |||
* HP | |||
* AC | |||
* INIT | |||
* HR | |||
* CRIT | |||
* MD | |||
--></noinclude><includeonly><!-- | |||
* Name | * Name | ||
| Line 5: | Line 48: | ||
== Basic Information | == Basic Information | ||
* Species | * Species | ||
* Gender | |||
* Status | |||
* Born | * Born | ||
* (Optional) Died | * (Optional) Died | ||
* (Optional) Cause of Death | * (Optional) Cause of Death | ||
* Nationality | * Nationality | ||
* Current Residence | |||
* Aliases | * Aliases | ||
* Occupation | * Occupation | ||
* Known For | * Known For | ||
* Notable Work | * Notable Work | ||
== Physical Information == | |||
* Gender | |||
* Height | |||
* Weight | |||
* Eye Color | |||
* Hair Color | |||
* Fur Color | |||
* Scale Color | |||
* Feather Color | |||
* Skin Tone | |||
== Game Statistics == | == Game Statistics == | ||
* Strength | * Strength | ||
| Line 22: | Line 78: | ||
* Luck | * Luck | ||
* HP | |||
* AC | |||
* AP | |||
* INIT | |||
* HR | |||
* CRIT | |||
* MD | |||
* Statistics Table - Like the SPECIAL table but using Strength, Celerity, Endurance, Composure, Intelligence, Perception, Luck instead | * Statistics Table - Like the SPECIAL table but using Strength, Celerity, Endurance, Composure, Intelligence, Perception, Luck instead | ||
-->{{#vardefine:name|{{{name|{{PAGENAMEE}}}}}}}<!-- | For birthdays and deathdays, assume the following: | ||
-->{{# | |||
If 3 entries, D/M/Y | |||
If 2 entries, M/Y | |||
If 1 entry, Y | |||
-->{{#vardefine:name | {{{name|{{PAGENAME}}}}} }}<!-- | |||
-->{{#vardefine:species | {{{species|}}} }}<!-- | |||
-->{{#vardefine:height | {{{height|}}} }}<!-- | |||
-->{{#vardefine:weight | {{{weight|}}} }}<!-- | |||
-->{{#vardefine:age | {{{age|}}} }}<!-- | |||
-->{{#arraydefine:birthdayraw | {{{birthday|}}} |-}}<!-- | |||
-->{{#arraydefine:deathdayraw | {{{deathday|}}} |-}}<!-- | |||
-->{{#vardefine:birthdate}}<!-- | |||
-->{{#vardefine:birthmonth}}<!-- | |||
-->{{#vardefine:birthyear}}<!-- | |||
-->{{#vardefine:deathdate}}<!-- | |||
-->{{#vardefine:deathmonth}}<!-- | |||
-->{{#vardefine:deathyear}}<!-- | |||
-->{{#ifexpr: ({{#arraysize:birthdayraw}} >= 3) | |||
| {{#vardefine:birthdate | {{#arrayindex:birthdayraw | 0}} }} {{#vardefine:birthmonth | {{#arrayindex:birthdayraw|1}} }} {{#vardefine:birthyear | {{#arrayindex:birthdayraw|2}} }} | |||
| {{#ifexpr: ({{#arraysize:birthdayraw}} = 2) | {{#vardefine:birthmonth | {{#arrayindex:birthdayraw|0}} }} {{#vardefine:birthyear | {{#arrayindex:birthdayraw|1}} }} | |||
| {{#ifexpr: ({{#arraysize:birthdayraw}} = 1) | {{#vardefine:birthyear | {{#arrayindex:birthdayraw|0}} }} | |||
|}} }} }}<!-- | |||
-->{{#ifexpr: ({{#arraysize:deathdayraw}} >= 3) | {{#vardefine:deathdate | {{#arrayindex:deathdayraw|0}} }}{{#vardefine:deathmonth | {{#arrayindex:deathdayraw|1}} }}{{#vardefine:deathyear | {{#arrayindex:deathdayraw|2}} }} | |||
| {{#ifexpr: ({{#arraysize:deathdayraw}} = 2) | {{#vardefine:deathmonth | {{#arrayindex:deathdayraw|0}} }}{{#vardefine:deathyear | {{#arrayindex:deathdayraw|1}} }} | |||
| {{#ifexpr: ({{#arraysize:deathdayraw}} = 1) | {{#vardefine:deathyear | {{#arrayindex:deathdayraw|0}} }} | |||
|}} }} }}<!-- | |||
-->{{#vardefine:birthmonth | {{#switch: {{lc:{{#var:birthmonth}} }} | |||
| 1 | |||
| een = 1 | |||
| 2 | |||
| kar = 2 | |||
| 3 | |||
| mir = 3 | |||
| 4 | |||
| rort = 4 | |||
| 5 | |||
| kir = 5 | |||
| 6 | |||
| sur = 6 | |||
| 7 | |||
| ith = 7 | |||
| 8 | |||
| trint = 8 | |||
| 9 | |||
| sorth = 9 | |||
| #default = 0}}}}<!-- | |||
-->{{#vardefine:deathmonth|{{#switch: {{lc:{{#var:deathmonth}}}} | |||
| 1 | |||
| een = 1 | |||
| 2 | |||
| kar = 2 | |||
| 3 | |||
| mir = 3 | |||
| 4 | |||
| rort = 4 | |||
| 5 | |||
| kir = 5 | |||
| 6 | |||
| sur = 6 | |||
| 7 | |||
| ith = 7 | |||
| 8 | |||
| trint = 8 | |||
| 9 | |||
| sorth = 9 | |||
| #default = 0}}}}<!-- | |||
-->{{#arraydefine:nationality|{{{nationality|}}}|,}}<!-- | |||
-->{{#arraydefine:aliases|{{{aliases|}}}|,}}<!-- | |||
-->{{#arraydefine:occupation|{{{occupation|}}}|,}}<!-- | |||
-->{{#arraydefine:known_for|{{{known-for|}}}|,}}<!-- | |||
-->{{#arraydefine:notable_work|{{{notable-work|}}}|,}}<!-- | |||
-->{{#arraydefine:affiliation|{{{affiliation|}}}|,}}<!-- | |||
-->{{#vardefine:str_stat|{{{str-stat|}}}}}<!-- | |||
-->{{#vardefine:cel_stat|{{{cel-stat|}}}}}<!-- | |||
-->{{#vardefine:end_stat|{{{end-stat|}}}}}<!-- | |||
-->{{#vardefine:com_stat|{{{com-stat|}}}}}<!-- | |||
-->{{#vardefine:int_stat|{{{int-stat|}}}}}<!-- | |||
-->{{#vardefine:per_stat|{{{per-stat|}}}}}<!-- | |||
-->{{#vardefine:luc_stat|{{{lck-stat|}}}}}<!-- | |||
-->{{#vardefine:hp_stat|{{{hp|}}}}}<!-- | |||
-->{{#vardefine:ac_stat|{{{ac|}}}}}<!-- | |||
-->{{#vardefine:ap_stat|{{{ap|}}}}}<!-- | |||
-->{{#vardefine:init_stat|{{{init|}}}}}<!-- | |||
-->{{#vardefine:hr_stat|{{{hr|}}}}}<!-- | |||
-->{{#vardefine:crit_stat|{{{crit|}}}}}<!-- | |||
-->{{#vardefine:md_stat|{{{md|}}}}}<!-- | |||
-->{{#cargo_store: | |||
_table = characters | |||
|name = {{#var:name}} | |||
|species = {{#var:species}} | |||
|birthday = {{#var:birthdate}} | |||
|birthmonth = {{#var:birthmonth}} | |||
|birthyear = {{#var:birthyear}} | |||
|deathday = {{#var:deathdate}} | |||
|deathmonth = {{#var:deathmonth}} | |||
|deathyear = {{#var:deathyear}} | |||
|height = {{#var:height}} | |||
|weight = {{#var:weight}} | |||
|age = {{#var:age}} | |||
|nationality = {{#arrayprint:nationality|,}} | |||
|aliases = {{#arrayprint:aliases|,}} | |||
|occupation = {{#arrayprint:occupation|,}} | |||
|affiliation = {{#arrayprint:affiliation|,}} | |||
|known_for = {{#arrayprint:known_for|,}} | |||
|notable_work = {{#arrayprint:notable_work|,}} | |||
|strength = {{#var:str_stat}} | |||
|celerity = {{#var:cel_stat}} | |||
|endurance = {{#var:end_stat}} | |||
|composure = {{#var:com_stat}} | |||
|intelligence = {{#var:int_stat}} | |||
|perception = {{#var:per_stat}} | |||
|luck = {{#var:luc_stat}} | |||
|hp = {{#var:hp_stat}} | |||
|ac = {{#var:ac_stat}} | |||
|ap = {{#var:ap_stat}} | |||
|init = {{#var:init_stat}} | |||
|hr = {{#var:hr_stat}} | |||
|crit = {{#var:crit_stat}} | |||
|md = {{#var:md_stat}}}}<!-- | |||
// PRINTOUT DEFINITIONS // | |||
-->{{#if:{{#var:str_stat}}||{{#vardefine:str_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:cel_stat}}||{{#vardefine:cel_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:end_stat}}||{{#vardefine:end_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:com_stat}}||{{#vardefine:com_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:int_stat}}||{{#vardefine:int_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:per_stat}}||{{#vardefine:per_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:luc_stat}}||{{#vardefine:luc_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:hp_stat}}||{{#vardefine:hp_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:ac_stat}}||{{#vardefine:ac_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:ap_stat}}||{{#vardefine:ap_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:init_stat}}||{{#vardefine:init_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:hr_stat}}||{{#vardefine:hr_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:crit_stat}}||{{#vardefine:crit_stat|N/A}}}}<!-- | |||
-->{{#if:{{#var:md_stat}}||{{#vardefine:md_stat|N/A}}}}<!-- | |||
-->{{#vardefine:birthdayprint|{{#invoke:ErraCalendar|PrintDate|year={{#var:birthyear}}|month={{#var:birthmonth}}|date={{#var:birthdate}}}}}}<!-- | |||
-->{{#vardefine:deathdayprint|{{#invoke:ErraCalendar|PrintDate|year={{#var:deathyear}}|month={{#var:deathmonth}}|date={{#var:deathdate}}}}{{#if:{{#var:birthyear}}| ({{#invoke:ErraCalendar|PrintAge|year1={{#var:birthyear}}|month1={{#var:birthmonth}}|date1={{#var:birthdate}}|year2={{#var:deathyear}}|month2={{#var:deathmonth}}|date2={{#var:deathdate}}}})|}}}}<!-- | |||
-->{{#vardefine:heightprint|{{#if:{{{height|}}}|{{{height}}} m|}}}}<!-- | |||
-->{{#vardefine:weightprint|{{#if:{{{weight|}}}|{{{weight}}} kg|}}}}<!-- | |||
-->{{#vardefine:ageprint|{{#if:{{{age|}}}| {{#iferror:{{#expr:{{{age}}} + 1}}|{{{age}}}|{{{age}}} years}}|}}}}<!-- | |||
-->{{#vardefine:img|{{#if:{{{image|}}}|{{#setmainimage:{{{image}}}}}|{{#setmainimage:{{PAGENAMEE}}.png}}}}}}<!-- | |||
--><infobox theme="erra"> | |||
<title source="name"><default>{{PAGENAME}}</default></title> | |||
<image source="image"><default>File:{{PAGENAMEE}}.png</default></image> | |||
<group collapse="open"> | |||
<header>Basic Information</header> | |||
<data source="species"><label>Species</label><format>{{#ifexist:{{#var:species}}|[[{{#var:species}}]]|{{#var:species}}}}</format></data> | |||
<data source="birthday"><label>Born</label><format>{{#var:birthdayprint}}</format></data> | |||
<data source="deathday"><label>Died</label><format>{{#var:deathdayprint}}</format></data> | |||
<data source="cause-of-death"><label>Cause of Death</label></data> | |||
<data source="nationality"><label>Nationality</label><format>{{#ifexpr: {{#arraysize:nationality}} > 1 | <ul>{{#arrayprint:nationality||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:nationality||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
<data source="aliases"><label>Aliases</label><format>{{#ifexpr: {{#arraysize:aliases}} > 1 | <ul>{{#arrayprint:aliases||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:aliases||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
<data source="occupation"><label>Occupation</label><format>{{#ifexpr: {{#arraysize:occupation}} > 1 | <ul>{{#arrayprint:occupation||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:occupation||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
<data source="affiliation"><label>Affiliation</label><format>{{#ifexpr: {{#arraysize:affiliation}} > 1 | <ul>{{#arrayprint:affiliation||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:affiliation||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
<data source="known-for"><label>Known For</label><format>{{#ifexpr: {{#arraysize:known_for}} > 1 | <ul>{{#arrayprint:known_for||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:known_for||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
<data source="notable-work"><label>Notable Work</label><format>{{#ifexpr: {{#arraysize:notable_work}} > 1 | <ul>{{#arrayprint:notable_work||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:notable_work||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
</group> | |||
<group collapse="open"> | |||
<header>Physical Characteristics</header> | |||
<data source="height"><label>Height</label><format>{{#var:heightprint}}</format></data> | |||
<data source="weight"><label>Weight</label><format>{{#var:weightprint}}</format></data> | |||
<data source="age"><label>Age</label><format>{{#var:ageprint}}</format></data> | |||
</group> | |||
<group collapse="closed"> | |||
<header>Game Statistics</header> | |||
<data><default><table style="width:100%; text-align:center;"><tr><th>STR</th><th>CEL</th><th>END</th><th>COM</th><th>INT</th><th>PER</th><th>LCK</th></tr><tr><td>{{#var:str_stat}}</td><td>{{#var:cel_stat}}</td><td>{{#var:end_stat}}</td><td>{{#var:com_stat}}</td><td>{{#var:int_stat}}</td><td>{{#var:per_stat}}</td><td>{{#var:luc_stat}}</td></tr></table></default></data> | |||
<data><default><table style="width:100%; text-align:center;"><tr><th>HP</th><th>AC</th><th>AP</th><th>INIT</th></tr><tr><td>{{#var:hp_stat}}</td><td>{{#var:ac_stat}}</td><td>{{#var:ap_stat}}</td><td>{{#var:init_stat}}</td></tr></table></default></data> | |||
<data><default><table style="width:100%; text-align:center;"><tr><th>HR</th><th>CRIT</th><th>MD</th></tr><tr><td>{{#var:hr_stat}}</td><td>{{#var:crit_stat}}</td><td>{{#var:md_stat}}</td></tr></table></default></data> | |||
</group> | |||
</infobox><!-- | |||
* Nationality | |||
* Aliases | |||
* Occupation | |||
* Known For | |||
* Notable Work | |||
== Game Statistics == | |||
* Strength | |||
* Celerity | |||
* Endurance | |||
* Composure | |||
* Intelligence | |||
* Perception | |||
* Luck | |||
* HP | |||
* AC | |||
* INIT | |||
* HR | |||
* CRIT | |||
* MD | |||
</includeonly> | --></includeonly><noinclude> | ||
{{doc}}</noinclude> | |||
Latest revision as of 16:27, 21 September 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