Template:ChanInfobox: Difference between revisions
No edit summary |
No edit summary |
||
(46 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | <includeonly>{{#if:{{{variant|}}}|{{#subobject:{{{variant}}} | ||
| bodystyle | |Display Name={{{name|{{PAGENAME}}}}} ({{{variant}}}) | ||
| above | |Chan Name={{{name|{{PAGENAME}}}}} | ||
| abovestyle | |Chan Variant={{{variant}}} | ||
| headerstyle = background-color: | |Chan Full Name={{{name|{{PAGENAME}}}}} ({{{variant}}}) | ||
| name | |Chan Parent={{{character_designer|}}} | ||
| image | |Chan Image={{{image|}}} | ||
| caption1 = {{{caption|}}} | }}|{{#set: | ||
| label1 | |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; | |||
| above = {{#if:{{{variant|}}}|{{{name|{{PAGENAME}}}}} ({{{variant}}})|{{{name|{{PAGENAME}}}}}}} | |||
| abovestyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted); | |||
| headerstyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted); | |||
| name = {{{name|{{PAGENAME}}}}} | |||
| image = [[{{{image|}}}|frameless|center]] | |||
| caption1 = <div style="text-align: right">{{{caption|}}} {{Attribution|{{{artist|{{{first_artist|}}}}}}}}</div> | |||
| label1 = Also Known As | |||
| data1 = {{#if: {{{aka|}}} | {{Flatlist | {{{aka}}} }} }} | |||
| label2 = Based On | |||
| data2 = {{{based_on|}}} | |||
| label3 = Debut | |||
| data3 = {{{debut|}}} | |||
| label4 = Joe: Smash or Pass? | |||
| data4 = {{{smash|}}} | |||
| | | label5 = See Also | ||
| | | data5 = {{#if: {{{see_also|}}} | {{Flatlist | {{{see_also}}} }} }} | ||
| | |||
| | | header6 = Attribution | ||
| | | label7 = Character Design | ||
}} | | data7 = {{Attribution|{{{character_designer|}}}|categorise=true}} | ||
< | |||
| header8 = Related Works | |||
| data9 = {{hlist|[[:Category:Features {{{name|{{PAGENAME}}}}}|Featured In]]|[https://janart.bulder.fi/tags/chan/{{urlencode:{{{name|{{PAGENAME}}}}}|PATH}} Janart]}} | |||
}}</div>[[Category:Chans]]{{#switch: {{#sub:{{{name|{{PAGENAME}}}}}|-5}}|-chan=|[[Category:Implicit Chans]]}}</includeonly><noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "The primary name of the chan, should end in -chan if that is the normal way they are referred to.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "An example image of the chan.", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"aka": { | |||
"label": "Also Known As", | |||
"description": "A list of any alternative names the chan is called by. (Use a bullet point list, it will be turned into a flatlist).", | |||
"type": "content" | |||
}, | |||
"based_on": { | |||
"label": "Based On", | |||
"description": "A description of what the chan is based on, this shouldn't be a long explanation, but rather (a) link(s) to relevant pages.", | |||
"example": "[[Jam Bread]] from [[Persona 5]]", | |||
"type": "unbalanced-wikitext", | |||
"suggested": true | |||
}, | |||
"character_designer": { | |||
"label": "Character Designer", | |||
"description": "Who to credit with the character design for this chan.", | |||
"type": "wiki-page-name", | |||
"suggested": true | |||
}, | |||
"artist": { | |||
"label": "Artist", | |||
"description": "The artist the image used was drawn by, for crediting purposes.", | |||
"type": "wiki-page-name", | |||
"required": true, | |||
"aliases": [ | |||
"first_artist" | |||
] | |||
}, | |||
"see_also": { | |||
"label": "See Also", | |||
"description": "Strongly related chans to this one, only use this where chans have some fundamental link and often come hand-in-hand.", | |||
"type": "string" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"description": "A caption for the image, giving a \"quote\" for the chan or a brief description of traits.", | |||
"type": "string" | |||
}, | |||
"debut": { | |||
"label": "Debut", | |||
"description": "A citation for when the chan was first mentioned on-stream, ideally with a link citation to a video.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"smash": { | |||
"label": "Joe: Smash or Pass?", | |||
"description": "If Joe would smash or pass the chan, *must* be sourced if given.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Smash", | |||
"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" | |||
} | |||
}, | |||
"description": "An info box for pages about Chans, there should be one on every chan page.", | |||
"paramOrder": [ | |||
"name", | |||
"variant", | |||
"image", | |||
"caption", | |||
"artist", | |||
"smash", | |||
"aka", | |||
"debut", | |||
"see_also", | |||
"based_on", | |||
"character_designer" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |