Changes

Jump to: navigation, search

Template:Yokai Infobox

11,287 bytes added, 02:15, 9 October 2015
Created page with "<onlyinclude><div class="stdinfobox {{#if:{{{class|}}}|{{#replace:{{lc:class-{{English class name|{{{class}}} }} }}| |-}}|}}" style="width: auto;"> {| style="width: 100%;" |-..."
<onlyinclude><div class="stdinfobox {{#if:{{{class|}}}|{{#replace:{{lc:class-{{English class name|{{{class}}} }} }}| |-}}|}}" style="width: auto;">
{| style="width: 100%;"
|-
| class="box" |
{| style="width: 100%;"
|-
| rowspan="3" style=" text-align: center; width: 54px;" | {{#if:{{{class|}}}|[[File:{{English class name|{{{class}}} }} icon.png]]|<small>{{{class}}}</small>}}
| colspan="3" style="font-size: 150%; text-align: center; width: 412px;" | {{{english name}}}{{#if:{{{english name|}}}|{{#set:Has English name={{{english name}}}|Has name={{{english name}}} }}|}}
| rowspan="2" style=" text-align: center; width: 54px;" | {{#if:{{{rank|}}}|[[File:Rank {{uc:{{{rank}}} }} icon.png]]{{#set:Is of rank={{uc:{{{rank}}} }}|Is of rank/index={{Rank index|{{{rank}}} }} }}|<small>{{{rank}}}</small>}}
|-
| style="font-size: 80%; text-align: center; width: 166px;" | {{{japanese name}}}{{#if:{{{japanese name|}}}|{{#set:Has Japanese name={{{japanese name}}}|Has name={{{japanese name}}} }}|}}
| style="font-size: 80%; text-align: center; width: 166px;" | {{{romanji}}}{{#if:{{{romanji|}}}|{{#set:Has Romanji name={{{romanji}}}|Has name={{{romanji}}} }}|}}
| style="font-size: 80%; text-align: center; width: 80px;" | {{{series}}}{{#if:{{{series|}}}|{{#set:Has series code={{{series}}} }}|}}
|}
|-
|
{| style="width: 100%;"
|-
| rowspan="2" class="lightbox" style=" text-align: center; width: 120px;" | {{English class name|{{{class}}} }}<br />({{Japanese class name|{{{class}}} }}){{#if:{{{class|}}}|{{#set:Is of class={{English class name|{{{class}}} }}|Is of class (Japanese)={{Japanese class name|{{{class}}} }} }}|}}
| class="box" style="text-align: right; width: 100px;" | '''Time'''
| colspan="3" class="lightbox" style="width: 300px;" | {{{time}}}{{#if:{{{time|}}}|{{#set:Is of time={{{time}}} }}|}}
|-
| class="box" style="text-align: right;" | '''Evolution'''
| colspan="3" class="lightbox" | {{{evolution}}}{{#if:{{{evolution|}}}|{{#set:Has evolution={{{evolution}}} }}|}}
|-
| class="lightbox" style=" text-align: center;" | {{{favorite food}}}{{#if:{{{favorite food|}}}|{{#set:Has favorite food={{{favorite food}}} }}|}}
| class="box" style="text-align: right;" | '''Type'''
| colspan="3" class="lightbox" | {{{type}}}{{#if:{{{type|}}}|{{#set:Is of element={{{type}}}|Is of element/index={{Element index|{{{type}}} }} }}|}}
|-
| class="lightbox" style=" text-align: center;" | {{{role}}}{{#if:{{{role|}}}|{{#set:Has role={{{role}}} }}|}}
| class="box" style="text-align: right; width: 100px;" | '''HP'''
| class="lightbox" style="width: 100px;" | {{#if:{{{hp|}}}|{{Yokai stat|{{{hp}}}|Has HP|Has HP rank|Has HP rank/index}}|{{{hp}}} }}
| class="box" style="text-align: right; width: 100px;" | '''Spirit'''
| class="lightbox" style="width: 100px;" | {{#if:{{{spirit|}}}|{{Yokai stat|{{{spirit}}}|Has spirit|Has spirit rank|Has spirit rank/index}}|{{{spirit}}} }}
|-
| rowspan="13" class="box" style="text-align: center; vertical-align: middle;" | {{#if:{{{image|}}}|[[File:{{{image}}}|120px]]{{#set:Has image=File:{{{image}}} }}|{{{image}}} }}
| class="box" style="text-align: right;" | '''Power'''
| class="lightbox" | {{#if:{{{power|}}}|{{Yokai stat|{{{power}}}|Has power|Has power rank|Has power rank/index}}|{{{power}}} }}
| class="box" style="text-align: right;" | '''Speed'''
| class="lightbox" | {{#if:{{{speed|}}}|{{Yokai stat|{{{speed}}}|Has speed|Has speed rank|Has speed rank/index}}|{{{speed}}} }}
|-
| class="box" style="text-align: right;" | '''Defense'''
| colspan="3" class="lightbox" | {{#if:{{{defense|}}}|{{Yokai stat|{{{defense}}}|Has defense|Has defense rank|Has defense rank/index}}|{{{defense}}} }}
|-
| class="box" style="text-align: right;" | '''Command'''
| colspan="3" class="lightbox" | {{#if:{{{command|}}}|{{#lstmap:{{{command}}}|,|@@@@|<div>[[File:@@@@ icon.png|16px]] @@@@</div><esc>{{#set:Has command=@@@@}}</esc>|}}|{{{command}}} }}
|-
| class="box" style="text-align: right;" | '''Buster<br />Command'''
| colspan="3" class="lightbox" | {{#if:{{{buster command type|}}}|[[File:Buster command {{lc:{{{buster command type}}} }} icon.png|80px]]{{#set:Has buster command type={{lc:{{{buster command type}}} }}|Has buster command type/index={{Buster command type index|{{{buster command type}}} }} }}|}} {{{buster command}}}{{#if:{{{buster command|}}}|{{#set:Has buster command={{{buster command}}} }}|}}
|-
| class="box" style="text-align: right;" | '''Skill'''
| colspan="3" class="lightbox" | {{{skill}}}{{#if:{{{skill|}}}|{{#set:Has skill={{{skill}}} }}|}}
|-
| class="box" style="text-align: right;" | '''Special Effect'''
| colspan="3" class="lightbox" | {{{special effect}}}{{#if:{{{special effect|}}}|{{#set:Has special effect={{{special effect}}} }}|}}
|-
| class="box" style="text-align: right;" | '''Characteristics'''
| colspan="3" class="lightbox" style="text-align: center;" | {{{characteristics}}}{{#if:{{{characteristics|}}}|{{#set:Has characteristic={{{characteristics}}} }}|}}
|-
{{#if: {{{other lan|}}}|
{{!}} class="box" style="text-align: right;" {{!}} '''Other names'''
{{!}} colspan="3" class="lightbox" {{!}} {{#lstmap:{{{other lan}}}|,|@@@@|<div>@@@@</div><esc>{{#set:Has other name=@@@@|Has name=@@@@}}</esc>|}} | }}
|-
{{#if: {{{game|}}}{{{chapter|}}}{{{episode|}}}{{{jva|}}}|
{{!}} colspan="4" class="box" style="text-align: center;" {{!}} '''Debut''' | }}
|-
{{#if: {{{game|}}}|
{{!}} class="box" style="text-align: right;" {{!}} ''Game''
{{!}} colspan="3" class="lightbox" {{!}} [[{{{game}}}]]{{#set:Debuts in game={{{game}}} }} | }}
|-
{{#if: {{{chapter|}}}|
{{!}} class="box" style="text-align: right;" {{!}} ''Manga''
{{!}} colspan="3" class="lightbox" {{!}} [[{{{chapter}}}]]{{#set:Debuts in manga={{{chapter}}} }} | }}
|-
{{#if: {{{episode|}}}|
{{!}} class="box" style="text-align: right;" {{!}} ''Anime''
{{!}} colspan="3" class="lightbox" {{!}} [[{{{episode}}}]]{{#set:Debuts in anime={{{episode}}} }} | }}
|-
{{#if: {{{jva|}}}|
{{!}} class="box" style="text-align: right;" {{!}} ''Japanese VA''
{{!}} colspan="3" class="lightbox" {{!}} [[{{{jva}}}]]{{#set:Has Japanese voice actor={{{jva}}} }} | }}
|-
{{#if: {{{eva|}}}|
{{!}} class="box" style="text-align: right;" {{!}} ''English VA''
{{!}} colspan="3" class="lightbox" {{!}} [[{{{eva}}}]]{{#set:Has English voice actor={{{eva}}} }} | }}
|}
|}
</div><includeonly>[[Category:Yokai data]][[Category:All Yokai data]]</includeonly></onlyinclude>
<nowiki>{{Infobox Yokai
|english name=the English name
|japanese name=the Japanese name
|romanji=The name in Romanji
|series=Series code
|image=Filename of image, not including File:
|class=Class
|rank=Rank
|favorite food=Favorite food
|role=Attacker or Defender
|time=Time
|evolution=Evolution
|type=Type
|hp=HP value and rank, separated by a space
|spirit=Spirit value and rank, separated by a space
|power=Power value and rank, separated by a space
|speed=Speed value and rank, separated by a space
|defense=Defense value and rank, separated by a space
|command=first command,second command,etc.
|buster command type=Buster command type
|buster command=Buster command
|skill=Skill
|special effect=Special effect
|characteristics=characteristics
|other lan=names in non-English, non-Japanese languages, separated by commas. Optional.
|game=debut game, autolinks, optional
|chapter=debut in manga, autolinks, optional
|episode=debut in anime, autolinks, optional
|jva=Japanese voice actor
|eva=English voice actor
}}
</nowiki>

This template also sets semantic properties in [[:Category:Yokai semantics]] as follows:
{| class="wikitable"
|-
!Parameter !!Properties !!Notes
|-
|<tt>english name</tt> ||[[Property:Has English name|Has English name]], [[Property:Has name|Has name]] ||
|-
|<tt>japanese name</tt> ||[[Property:Has Japanese name|Has Japanese name]], [[Property:Has name|Has name]] ||
|-
|<tt>romanji name</tt> ||[[Property:Has Romanji name|Has Romanji name]], [[Property:Has name|Has name]] ||
|-
|<tt>series</tt> ||[[Property:Has series code|Has series code]] ||
|-
|<tt>image</tt> ||[[Property:Has image|Has image]] ||
|-
|<tt>class</tt> ||[[Property:Is of class|Is of class]], [[Property:Is of class (Japanese)|Is of class (Japanese)]] || See {{tl|Japanese class name}} and {{tl|English class name}} for viewing and editing automatic class name translations
|-
|<tt>rank</tt> ||[[Property:Is of rank|Is of rank]], [[Property:Is of rank/index|Is of rank/index]] || See {{tl|Rank index}} for viewing or editing sorting indices
|-
|<tt>favorite food</tt> ||[[Property:Has favorite food|Has favorite food]] ||
|-
|<tt>role</tt> ||[[Property:Has role|Has role]] ||
|-
|<tt>time</tt> ||[[Property:Is of time|Is of time]] ||
|-
|<tt>evolution</tt> ||[[Property:Has evolution|Has evolution]] ||
|-
|<tt>type</tt> ||[[Property:Is of element|Is of element]], [[Property:Is of element/index|Is of element/index]] || See {{tl|Element index}} for viewing or editing sorting indices
|-
|<tt>hp</tt> ||[[Property:Has HP|Has HP]], [[Property:Has HP rank|Has HP rank]], [[Property:Has HP rank/index|Has HP rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
|-
|<tt>spirit</tt> ||[[Property:Has spirit|Has spirit]], [[Property:Has spirit rank|Has spirit rank]], [[Property:Has spirit rank/index|Has spirit rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
|-
|<tt>power</tt> ||[[Property:Has power|Has power]], [[Property:Has power rank|Has power rank]], [[Property:Has power rank/index|Has power rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
|-
|<tt>speed</tt> ||[[Property:Has speed|Has speed]], [[Property:Has speed rank|Has speed rank]], [[Property:Has speed rank/index|Has speed rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
|-
|<tt>defense</tt> ||[[Property:Has defense|Has defense]], [[Property:Has defense rank|Has defense rank]], [[Property:Has defense rank/index|Has defense rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
|-
|<tt>command</tt> ||[[Property:Has command|Has command]] ||
|-
|<tt>buster command type</tt> ||[[Property:Has buster command type|Has buster command type]], [[Property:Has buster command type/index|Has buster command type/index]] || See {{tl|Buster command type index}} for viewing or editing sorting indices
|-
|<tt>buster command</tt> ||[[Property:Has buster command|Has buster command]] ||
|-
|<tt>skill</tt> ||[[Property:Has skill|Has skill]] ||
|-
|<tt>special effect</tt> ||[[Property:Has special effect|Has special effect]] ||
|-
|<tt>characteristics</tt> ||[[Property:Has characteristic|Has characteristic]] ||
|-
|<tt>other lan</tt> ||[[Property:Has other name|Has other name]], [[Property:Has name|Has name]] ||
|-
|<tt>game</tt> ||[[Property:Debuts in game|Debuts in game]] ||
|-
|<tt>chapter</tt> ||[[Property:Debuts in manga|Debuts in manga]] ||
|-
|<tt>episode</tt> ||[[Property:Debuts in anime|Debuts in anime]] ||
|-
|<tt>jva</tt> ||[[Property:Has Japanese voice actor|Has Japanese voice actor]] ||
|-
|<tt>eva</tt> ||[[Property:Has English voice actor|Has English voice actor]] ||
|}

[[Category:Yokai semantics]][[Category:Infobox templates]]