Template:Chan: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{variant|}}}|{{Chan/Impl|{{{1}}}#{{{variant}}}}}|{{Chan/Impl|{{{1}}}}}}}</includeonly><noinclude> | ||
== Example == | == Example == | ||
E.g: | E.g: | ||
Line 10: | Line 7: | ||
<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#Top_Trolley}}</nowiki></pre> | <pre><nowiki>{{Chan|Trolley-chan#Top_Trolley}}</nowiki></pre> | ||
Line 24: | Line 20: | ||
"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 a chan with a small portrait.", | "description": "A link to a chan with a small portrait.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1", | ||
"variant" | |||
], | ], | ||
"format": "inline" | "format": "inline" |