Template:ChanName: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{ | <includeonly>{{#if:{{{variant|}}}|{{ChanName/Impl|{{{1}}}#{{{variant}}}}}|{{ChanName/Impl|{{{1}}}}}}}</includeonly><noinclude> | ||
== Example == | == Example == | ||
E.g: | E.g: | ||
Line 8: | Line 8: | ||
{{ChanName|Anne French Fry}} | {{ChanName|Anne French Fry}} | ||
<pre><nowiki>{{ChanName|Trolley-chan|Top Trolley}}</nowiki></pre> | <pre><nowiki>{{ChanName|Trolley-chan|variant=Top Trolley}}</nowiki></pre> | ||
{{ChanName|Trolley-chan|Top Trolley}} | {{ChanName|Trolley-chan|variant=Top Trolley}} | ||
== Template Data == | == Template Data == | ||
Line 21: | Line 21: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "variant": { | ||
"label": "Variant", | "label": "Variant", | ||
"description": "The variant of the chan being referenced, if there is one (capitalisation matters!).", | "description": "The variant of the chan being referenced, if there is one (capitalisation matters!).", | ||
Line 30: | Line 30: | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
" | "variant" | ||
], | ], | ||
"format": "inline" | "format": "inline" |
Revision as of 15:22, 3 March 2025
Example
E.g:
{{ChanName|FAITOW-chan}}
{{ChanName|Anne French Fry}}
{{ChanName|Trolley-chan|variant=Top Trolley}}
Template Data
A link to a chan using their full name.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | 1 | The page for the chan (capitalisation matters!). | Page name | required |
Variant | variant | The variant of the chan being referenced, if there is one (capitalisation matters!). | String | optional |