Template:Infobox character: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
m (Adjustment)
(Add Chinese release date to example code)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width: 22em; text-align: left; margin: 0.5em 0 0.5em 1em; padding: 0.2em; border: solid #aaa 1px; float: right; clear: right;"
<includeonly>{| class="infobox" style="width: 25em; text-align: left; margin: 0.5em 0 0.5em 1em; padding: 0.2em; border: solid #aaa 1px; float: right; clear: right;"
  ! colspan="2" style="text-align: center; background-color: #ccf; font-size: 120%; font-weight: bold;" |{{{name|}}}
  ! colspan="2" style="text-align: center; background-color: #ccf; font-size: 120%; font-weight: bold;" |{{{name|}}}
  |-
  |-
  | colspan="2" style="text-align: center" |{{{image|}}}
  | colspan="2" style="text-align: center" |{{{image|}}}
  |-
  |-
{{Infobox/row
{{Infobox/row
| label      =Japanese Name
  | label      =Japanese Name
| labelstyle =background-color: #eef; font-weight: bold;
  | labelstyle =background-color: #eef; font-weight: bold;
| data      ={{{jname|}}}
  | data      ={{{jname|}}}
}}{{Infobox/row
  }}
| label      =Seiyū
{{Infobox/row
| labelstyle =background-color: #eef; font-weight: bold;
  | label      =Seiyū
| data      ={{{seiyuu|}}}
  | labelstyle =background-color: #eef; font-weight: bold;
}}{{Infobox/row
  | data      ={{{seiyuu|}}}
| label      =Voiced by
  }}
| labelstyle =background-color: #eef; font-weight: bold;
{{Infobox/row
| data      ={{{voices|}}}
  | label      =Voiced by
}}{{Infobox/row
  | labelstyle =background-color: #eef; font-weight: bold;
| label      =Age
  | data      ={{{voices|}}}
| labelstyle =background-color:#EEF; font-weight:bold;
  }}
|data={{{age|}}}
  {{Infobox/row
}}{{Infobox/row
  | label      =Age
|label=[[Weapons|Weapon]]
  | labelstyle =background-color: #eef; font-weight:bold;
|labelstyle=background-color:#EEF; font-weight:bold;
  | data       ={{{age|}}}
|data={{{weapon|}}}
  }}
}}</table></includeonly><noinclude>
{{Infobox/row
  | label     =[[Weapons|Weapon]]
  | labelstyle =background-color: #eef; font-weight: bold;
  | data       ={{{weapon|}}}
  }}
{{Infobox/row
  | label      =ID No:
  | labelstyle =background-color: #eef; font-weight: bold;
  | data      ={{#if:{{{id|}}}|[[:Category:Magia Record by ID|{{{id}}}]]}}
  }}
{{Infobox/row
  | label      =Release Date ({{#explode:{{{release1|}}}|:|0}}):
  | labelstyle =background-color: #eef; font-weight: bold;
  | data      ={{#if:{{{release1|}}}|{{#explode:{{{release1|}}}|:|1}}}}
  }}
{{Infobox/row
  | label      =Release Date ({{#explode:{{{release2|}}}|:|0}}):
  | labelstyle =background-color: #eef; font-weight: bold;
  | data      ={{#if:{{{release2|}}}|{{#explode:{{{release2|}}}|:|1}}}}
  }}
{{Infobox/row
  | label      =Release Date ({{#explode:{{{release3|}}}|:|0}}):
  | labelstyle =background-color: #eef; font-weight: bold;
  | data      ={{#if:{{{release3|}}}|{{#explode:{{{release3|}}}|:|1}}}}
  }}
|}
{{#ifeq:{{{nocategory|}}}|yes||
[[Category:Characters]]
{{#ifeq:{{{magicalgirl|}}}|yes|[[Category:Magical girls]]|}}
{{#if:{{{id|}}}|[[Category:Magia Record by ID|{{{id}}}]]|}}
{{#if:{{{surname|}}}|
[[Category:Characters by Surname|{{{surname}}}]]
{{#ifeq:{{{magicalgirl|}}}|yes|[[Category:Magical girls by Surname|{{{surname}}}]]|}}
|}}
}}
</includeonly><noinclude>
{{Infobox_character
{{Infobox_character
|name=ANTHONY
|name=ANTHONY
Line 32: Line 67:
|age=ETERNAL
|age=ETERNAL
|weapon=roses
|weapon=roses
|id=666
|nocategory=yes
|release1=JP:April 25, 2023
|release2=NA:April 26, 2023
|release3=CN:April 27, 2023
}}
}}


Line 43: Line 83:
|age=ETERNAL
|age=ETERNAL
|weapon=roses
|weapon=roses
|id=666
|release1=JP:April 25, 2023
|release2=NA:April 26, 2023
|release3=CN:April 27, 2023
}}</pre>
}}</pre>


Line 55: Line 99:
|-
|-
|jname || The character's name in japanese characters
|jname || The character's name in japanese characters
|-
|surname || The character's surname, to add them to [[:Category:Characters by Surname]]
|-
|-
|seiyuu || The character's voice actor
|seiyuu || The character's voice actor
Line 60: Line 106:
|voices || The character's voice actors - intended for multilanguage entries
|voices || The character's voice actors - intended for multilanguage entries
|-
|-
|age ||
|age || The character's age
|-
|weapon || The weapon used by the character
|-
|magicalgirl || Set <tt>magicalgirl=yes</tt> if the character is a magical girl – this will add them to the appropriate categories
|-
|id ||The character's ingame id number (mostly for magireco)
|-
|-
|weapon ||
|releaseN ||The date the character was released (mostly for magireco); N is 1-3 and the format is <tt>Country:Date</tt>, for example <tt>JP:April 20, 2018</tt>
|}
|}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 03:44, 7 February 2024

ANTHONY
Album test.jpg
Japanese Name アンソニー (Ansonii)
Seiyū some guy on acid
Age ETERNAL
Weapon roses
ID No: 666
Release Date (JP): April 25, 2023
Release Date (NA): April 26, 2023
Release Date (CN): April 27, 2023


Example use:

{{Infobox_character
|name=ANTHONY
|image=[[File:Album_test.jpg|300px]]
|jname= アンソニー (Ansonii)
|seiyuu=some guy on acid
|age=ETERNAL
|weapon=roses
|id=666
|release1=JP:April 25, 2023
|release2=NA:April 26, 2023
|release3=CN:April 27, 2023
}}
Parameter Explanation
name Name of the character
image Link to an image of the character (e.g. [[File:Album_test.jpg|300px]])
jname The character's name in japanese characters
surname The character's surname, to add them to Category:Characters by Surname
seiyuu The character's voice actor
voices The character's voice actors - intended for multilanguage entries
age The character's age
weapon The weapon used by the character
magicalgirl Set magicalgirl=yes if the character is a magical girl – this will add them to the appropriate categories
id The character's ingame id number (mostly for magireco)
releaseN The date the character was released (mostly for magireco); N is 1-3 and the format is Country:Date, for example JP:April 20, 2018