Template:Infobox Character: Difference between revisions

From New Normal Fan Wiki
Content deleted Content added
Allow arbitrary first appearance value
Add first_appearance_raw
Line 9: Line 9:
</data>
</data>
<data source="first_appearance">
<data source="first_appearance">
<label>First Appearance</label>
<format>[[Chapter {{{first_appearance}}}]]</format>
</data>
<data source="first_appearance_raw">
<label>First Appearance</label>
<label>First Appearance</label>
</data>
</data>
Line 43: Line 47:
"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"
}
}
},
},
"description": "Infobox for Character pages",
"description": "Infobox for Character pages",
"format": "block"
"format": "block",
"paramOrder": [
"name",
"name_ja_jpan",
"name_ja_latn",
"first_appearance",
"first_appearance_raw"
]
}
}
</templatedata>
</templatedata>

Revision as of 03:23, June 25, 2021

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
Name (Japanese)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
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