Template:ChanInfobox: Difference between revisions

No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
<includeonly>{{#if:{{{variant|}}}|{{#subobject:{{{variant}}}
|Display Name={{{name|{{PAGENAME}}}}} ({{{variant}}})
|Chan Name={{{name|{{PAGENAME}}}}}
|Chan Variant={{{variant}}}
|Chan Full Name={{{name|{{PAGENAME}}}}} ({{{variant}}})
|Chan Parent={{{character_designer|}}}
|Chan Image={{{image|}}}
}}|{{#set:
|Display Name={{{name|{{PAGENAME}}}}}
|Chan Name={{{name|{{PAGENAME}}}}}
|Chan Full Name={{{name|{{PAGENAME}}}}}
|Chan Parent={{{character_designer|}}}
|Chan Image={{{image|}}}
}}}}<div {{#if:{{{variant|}}}|id="{{{variant}}}"}}>{{Infobox
| bodystyle = border-spacing: 2px 5px;
| bodystyle = border-spacing: 2px 5px;
| above = {{{name|{{PAGENAME}}}}}
| above = {{#if:{{{variant|}}}|{{{name|{{PAGENAME}}}}} ({{{variant}}})|{{{name|{{PAGENAME}}}}}}}
| abovestyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
| abovestyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
| headerstyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
| headerstyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted);
Line 21: Line 34:
| header6 = Attribution
| header6 = Attribution
| label7 = Character Design
| label7 = Character Design
| data7 = <includeonly>{{Attribution|{{{character_designer|}}}|categorise=true}}</includeonly>
| data7 = {{Attribution|{{{character_designer|}}}|categorise=true}}


| header8 = Related Works
| header8 = Related Works
| data9 = <includeonly>{{hlist|[[:Category:Features {{{name|{{PAGENAME}}}}}|Featured In]]|[[:Category:Based on {{{name|{{PAGENAME}}}}}|Derivatives]]}}</includeonly>
| data9 = {{hlist|[[:Category:Features {{{name|{{PAGENAME}}}}}|Featured In]]|[https://janart.bulder.fi/tags/chan/{{urlencode:{{{name|{{PAGENAME}}}}}|PATH}} Janart]}}
}}<includeonly>[[Category:Chans]]{{#switch: {{#sub:{{{name|{{PAGENAME}}}}}|-5}}|-chan=|[[Category:Implicit Chans]]}}</includeonly><noinclude>
}}</div>[[Category:Chans]]{{#switch: {{#sub:{{{name|{{PAGENAME}}}}}|-5}}|-chan=|[[Category:Implicit Chans]]}}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
Line 92: Line 105:
"Pass"
"Pass"
]
]
},
"variant": {
"label": "Variant Name",
"description": "A name describing this design of the chan, if there is a more specific name the chan goes by, use that, but otherwise you can differentiate by distinguishing feature or designer's name)",
"type": "string"
}
}
},
},
Line 97: Line 115:
"paramOrder": [
"paramOrder": [
"name",
"name",
"variant",
"image",
"image",
"caption",
"caption",