Template:Infobox character: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
No edit summary
(Add Chinese release date to example code)
 
(15 intermediate revisions by 2 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|}}}
  |-
  |-
Line 32: Line 32:
   | label      =ID No:
   | label      =ID No:
   | labelstyle =background-color: #eef; font-weight: bold;
   | labelstyle =background-color: #eef; font-weight: bold;
   | data      ={{{id|}}}
   | data      ={{#if:{{{id|}}}|[[:Category:Magia Record by ID|{{{id}}}]]}}
   }}
   }}
  |}</includeonly><noinclude>
  {{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 43: Line 68:
|weapon=roses
|weapon=roses
|id=666
|id=666
|nocategory=yes
|release1=JP:April 25, 2023
|release2=NA:April 26, 2023
|release3=CN:April 27, 2023
}}
}}


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


Line 67: 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 72: 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 ||
|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)
|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 <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