Template:Chan: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{variant|}}}|{{Chan/Impl|{{{1}}}#{{{variant}}}}}|{{Chan/Impl|{{{1}}}}}}}</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| | {{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> | |||
{{Chan|Trolley-chan#Top Trolley}} | |||
== Template Data == | == Template Data == | ||
Line 17: | Line 23: | ||
"1": { | "1": { | ||
"label": "Name", | "label": "Name", | ||
"description": "The | "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 | "description": "A link to a chan with a small portrait.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1", | ||
"variant" | |||
], | ], | ||
"format": "inline" | "format": "inline" |
Latest revision as of 15:25, 3 March 2025
Example
E.g:
{{Chan|FAITOW-chan}}
{{Chan|Anne French Fry}}
{{Chan|Trolley-chan|variant=Top Trolley}}
or
{{Chan|Trolley-chan#Top Trolley}}
Template Data
A link to a chan with a small portrait.
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 |