Template:Infobox character: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(added weapon row (for mami & others))
(Add Chinese release date to example code)
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><table 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;"
<th colspan="2" style="text-align:center;background-color:#CCF;font-size: 120%;font-weight:bold;">
! colspan="2" style="text-align: center; background-color: #ccf; font-size: 120%; font-weight: bold;" |{{{name|}}}
{{{name}}}
|-
</th>
| colspan="2" style="text-align: center" |{{{image|}}}
<tr><td colspan="2">{{{image}}}</td></tr>
|-
{{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ū
  | labelstyle =background-color: #eef; font-weight: bold;
  | data      ={{{seiyuu|}}}
  }}
{{Infobox/row
  | label      =Voiced by
  | labelstyle =background-color: #eef; font-weight: bold;
  | data      ={{{voices|}}}
  }}
  {{Infobox/row
  | label      =Age
  | labelstyle =background-color: #eef; font-weight:bold;
  | data      ={{{age|}}}
  }}
{{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}}}]]|}}
|}}
}}
}}
{{Infobox/row
</includeonly><noinclude>
|label=Seiyū
|labelstyle=background-color:#EEF; font-weight:bold;
|data={{{seiyuu}}}
}}
{{Infobox/row
|label=Age
|labelstyle=background-color:#EEF; font-weight:bold;
|data={{{age}}}
}}
{{Infobox/row
|label=Weapon
|labelstyle=background-color:#EEF; font-weight:bold;
|data={{{weapon}}}
}}
</table></includeonly>
<noinclude>
{{Infobox_character
{{Infobox_character
|name=ANTHONY
|name=ANTHONY
|image=[[File:Album_test.jpg|300px]]
|image=[[File:Album_test.jpg|300px]]
|jname=
|jname= アンソニー (Ansonii)
|seiyuu=some guy on acid
|seiyuu=some guy on acid
|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
}}
}}


Example use:
Example use:
<pre>
<pre style="width:auto; overflow:auto">
{{Infobox_character
{{Infobox_character
|name=ANTHONY
|name=ANTHONY
|image=[[File:Album_test.jpg|300px]]
|image=[[File:Album_test.jpg|300px]]
|jname=
|jname= アンソニー (Ansonii)
|seiyuu=some guy on acid
|seiyuu=some guy on acid
|age=ETERNAL
|age=ETERNAL
|weapon=roses
|weapon=roses
}}
|id=666
</pre></noinclude>
|release1=JP:April 25, 2023
|release2=NA:April 26, 2023
|release3=CN:April 27, 2023
}}</pre>
 
{|class="wikitable" style="width: 100%; clear: right;
|-
!Parameter
!Explanation
|-
|name || Name of the character
|-
|image || Link to an image of the character (e.g. <nowiki>[[File:Album_test.jpg|300px]]</nowiki>)
|-
|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 <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)
|-
|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>

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