Template:ChanName: Difference between revisions

Created page with "<includeonly>[[{{{1}}}{{#if:{{{2|}}}|#{{{2|}}}}}|{{#show: {{{1}}}{{#if:{{{2|}}}|#{{{2|}}}}} |?Chan Full Name#-= }}]]</includeonly><noinclude> == Example == E.g: <pre><nowiki>{{ChanName|FAITOW-chan}}</nowiki></pre> {{ChanName|FAITOW-chan}} <pre><nowiki>{{ChanName|Anne French Fry}}</nowiki></pre> {{ChanName|Anne French Fry}} <pre><nowiki>{{ChanName|Trolley-chan#Top Trolley}}</nowiki></pre> {{ChanName|Trolley-chan|Top Trolley}} == Template Data == <templatedata> { "par..."
 
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{{1}}}{{#if:{{{2|}}}|#{{{2|}}}}}|{{#show: {{{1}}}{{#if:{{{2|}}}|#{{{2|}}}}} |?Chan Full Name#-= }}]]</includeonly><noinclude>
<includeonly>{{#if:{{{variant|}}}|{{ChanName/Impl|{{{1}}}#{{{variant}}}}}|{{ChanName/Impl|{{{1}}}}}}}</includeonly><noinclude>
== Example ==
== Example ==
E.g:  
E.g:  
Line 7: Line 7:
<pre><nowiki>{{ChanName|Anne French Fry}}</nowiki></pre>
<pre><nowiki>{{ChanName|Anne French Fry}}</nowiki></pre>
{{ChanName|Anne French Fry}}
{{ChanName|Anne French Fry}}
<pre><nowiki>{{ChanName|Trolley-chan|variant=Top Trolley}}</nowiki></pre>
{{ChanName|Trolley-chan|variant=Top Trolley}}
or


<pre><nowiki>{{ChanName|Trolley-chan#Top Trolley}}</nowiki></pre>
<pre><nowiki>{{ChanName|Trolley-chan#Top Trolley}}</nowiki></pre>
{{ChanName|Trolley-chan|Top Trolley}}
{{ChanName|Trolley-chan#Top Trolley}}


== Template Data ==
== Template Data ==
Line 17: Line 22:
"1": {
"1": {
"label": "Name",
"label": "Name",
"description": "The name of the page for the chan, capitalisation matters.",
"description": "The page for the chan (capitalisation matters!).",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true
"required": true
},
},
"2": {
"variant": {
"label": "Variant",
"label": "Variant",
"description": "The variant of the chan being referenced, if there is one.",
"description": "The variant of the chan being referenced, if there is one (capitalisation matters!).",
"type": "string"
"type": "string"
}
}
Line 30: Line 35:
"paramOrder": [
"paramOrder": [
"1",
"1",
"2"
"variant"
],
],
"format": "inline"
"format": "inline"