Template:Chan: Difference between revisions

No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 0.3em;">[[{{#show:  
<includeonly>{{#if:{{{variant|}}}|{{Chan/Impl|{{{1}}}#{{{variant}}}}}|{{Chan/Impl|{{{1}}}}}}}</includeonly><noinclude>
  {{{1}}}
  |?Chan Image#-=
}}|125x125px|link={{{1}}}]] [[{{{1}}}|{{#show: {{{1}}} |?Chan Full Name#-= }}]]</div></includeonly><noinclude>
== Example ==
== Example ==
E.g:  
E.g:  
Line 9: Line 6:


<pre><nowiki>{{Chan|Anne French Fry}}</nowiki></pre>
<pre><nowiki>{{Chan|Anne French Fry}}</nowiki></pre>
{{Chan|Anne French Fry}}
{{Chan|Anne_French_Fry}}


<pre><nowiki>{{Chan|Trolley-chan|variant=Top Trolley}}</nowiki></pre>
{{Chan|Trolley-chan|variant=Top Trolley}}
or


<pre><nowiki>{{Chan|Trolley-chan#Top Trolley}}</nowiki></pre>
<pre><nowiki>{{Chan|Trolley-chan#Top Trolley}}</nowiki></pre>
Line 21: Line 23:
"1": {
"1": {
"label": "Name",
"label": "Name",
"description": "The name of the chan.",
"description": "The page for the chan (capitalisation matters!).",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true
"required": true
},
"variant": {
"label": "Variant",
"description": "The variant of the chan being referenced, if there is one (capitalisation matters!).",
"type": "string"
}
}
},
},
"description": "A link to an chan with a small portrait.",
"description": "A link to a chan with a small portrait.",
"paramOrder": [
"paramOrder": [
"1"
"1",
"variant"
],
],
"format": "inline"
"format": "inline"