Template:Infobox Character: Difference between revisions

From New Normal Fan Wiki
Content deleted Content added
Allow arbitrary first appearance value
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
</title>
</title>
<data source="name_ja_jpan"><label>Japanese</label></data>
<image source="image">
<caption source="image_caption" />
</image>
<data source="name_ja_jpan"><label>日本語</label></data>
<data source="name_ja_latn">
<data source="name_ja_latn">
<label>Rōmaji</label>
<label>Rōmaji</label>
<format>''{{{name_ja_latn}}}''</format>
<format>''{{{name_ja_latn}}}''</format>
</data>
<data source="aliases">
<label>Aliases</label>
<format>{{{aliases}}}</format>
</data>
</data>
<data source="first_appearance">
<data source="first_appearance">
<label>First Appearance</label>
<label>First Appearance</label>
<format>[[New Normal, Chapter {{{first_appearance}}}]]</format>
</data>
<data source="first_appearance_raw">
<label>First Appearance</label>
</data>
<data source="grade">
<label>Grade</label>
</data>
</data>
</infobox><includeonly>[[Category:Character]]</includeonly><noinclude><templatedata>
</infobox>
<noinclude>
<templatedata>
{
{
"params": {
"params": {
Line 24: Line 36:
},
},
"name_ja_jpan": {
"name_ja_jpan": {
"label": "Name (Japanese)",
"label": "Name (日本語)",
"description": "The character's Japanese name as written in kanji, hiragana, and/or katakana",
"description": "The character's Japanese name as written in kanji, hiragana, and/or katakana",
"example": "秦遥人",
"example": "秦遥人",
Line 43: Line 55:
"type": "string",
"type": "string",
"required": true
"required": true
},
"first_appearance_raw": {
"label": "First Appearance (Raw)",
"description": "Same as first_appearance, but accepts arbitrary wikitext",
"type": "content"
},
"image": {
"label": "Image",
"description": "Representative image of the character",
"type": "wiki-file-name",
"suggested": true
},
"image_caption": {
"label": "Image Caption",
"description": "Caption for the representative image",
"type": "content",
"suggested": true
},
"grade": {
"label": "Grade",
"description": "The grade level of students",
"example": "High School 2<sup>nd</sup> year",
"type": "content"
},
"aliases": {
"label": "Aliases",
"description": "Other names by which the character is known.",
"type": "content"
}
}
},
},
"description": "Infobox for Character pages",
"description": "Infobox for Character pages",
"format": "block"
"format": "block",
"paramOrder": [
"name",
"image",
"image_caption",
"name_ja_jpan",
"name_ja_latn",
"aliases",
"first_appearance",
"first_appearance_raw",
"grade"
]
}
}
</templatedata>
</templatedata></noinclude>
</noinclude>

Latest revision as of 22:24, April 27, 2022

Infobox for Character pages

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The character's name in English

Default
{{PAGENAME}}
Example
Haruto Hata
Stringoptional
Imageimage

Representative image of the character

Filesuggested
Image Captionimage_caption

Caption for the representative image

Contentsuggested
Name (日本語)name_ja_jpan

The character's Japanese name as written in kanji, hiragana, and/or katakana

Example
秦遥人
Stringrequired
Name (Rōmaji)name_ja_latn

The character's Japanese name as written in Modified Hepburn romanization

Example
Hata Haruto
Stringrequired
Aliasesaliases

Other names by which the character is known.

Contentoptional
First Appearancefirst_appearance

The chapter number in which the character first appeared

Example
1
Stringrequired
First Appearance (Raw)first_appearance_raw

Same as first_appearance, but accepts arbitrary wikitext

Contentoptional
Gradegrade

The grade level of students

Example
High School 2<sup>nd</sup> year
Contentoptional