|
|
Line 1: |
Line 1: |
− | {{ #vardefine: $mode | {{ lc: {{{mode|}}} }}
| + | #REDIRECT [[Mikanko Promise]] {{R from card number}} |
− | }}{{ #vardefine: $pagename | {{Normalized pagename|{{PAGENAME}}}}
| |
− | }}{{ #vardefine: $SMW-name | {{ #show: {{ #var: $pagename }} | ?English name }}
| |
− | }}{{ #vardefine: $name | {{ #if: {{{demo|}}} | {{{demo}}} | {{ #if: {{{name|}}} | {{{name}}} | {{ #if: {{{1|}}} | {{ #ifeq: {{ #replace: {{{1}}} | # }} | {{ #var: $pagename }} | {{ #replace: {{{1}}} | # }} | {{ #var: $pagename }} }} | {{ #var: $pagename }} }} }} }}
| |
− | }}{{ #vardefine: $display-name | {{ #if: {{{demo|}}} | {{{demo}}} | {{ #if: {{{1|}}} | {{ #explode: {{{1}}} | ( }} | {{ #var: $SMW-name | {{ #var: $name }} }} }} }}
| |
− | }}{{ #vardefine: $ns | {{ #if: {{{demo_ns|}}} | {{{demo_ns}}} | {{ #if: {{{demo|}}} | {{NAMESPACE:{{{demo}}}}} | {{NAMESPACE}} }} }}
| |
− | }}{{ #vardefine: $show-name | {{ #show: {{ #var: $pagename }} | ?Page name }}
| |
− | }}{{ #ifeq: {{ #var: $ns }} | Card Gallery | __NOTOC__ }}<div class="mobile-show">'''[[{{ #var: $name }}|{{ #var: $display-name }}]]'''</div><table class="nomobile" style="width: auto; margin: auto;"><tr><td>{{Navbox
| |
− | | title = '''[[{{ #var: $name }}|{{ #var: $display-name }}]]'''
| |
− | | |
− | | navbar = plain
| |
− | | state = plain
| |
− | | listclass = hlist
| |
− | | bodystyle = background: #F9F9F9; font-size: 90%; margin-bottom: 1em;
| |
− | | titlestyle = font-size: 95%;
| |
− | | |
− | | list1 =
| |
− | * {{Related page link|Card Gallery|{{{demo|}}}|label=Gallery}}<!--
| |
− | -->{{ #switch: {{ #var: $mode }} <!-- only OCG/TCG cards and Tokens get rulings -->
| |
− | | nongame | tip =
| |
− | | #default =
| |
− | * {{Related page link|Card Rulings|{{{demo|}}}|label=Rulings}} }}<!--
| |
− | -->{{ #if: {{ #var: $mode }} || <!-- only OCG/TCG cards get errata -->
| |
− | * {{Related page link|Card Errata|{{{demo|}}}|label=Errata}} }}<!--
| |
− | -->{{ #switch: {{ #var: $mode }} <!-- tip/strategy cards don't get artworks -->
| |
− | | tip =
| |
− | | #default =
| |
− | * {{Related page link|Card Artworks|{{{demo|}}}|label=Artworks}} }}<!--
| |
− | -->{{ #switch: {{ #var: $mode }} <!-- only OCG/TCG/Bandai/DDM/VG cards get tips -->
| |
− | | token | nongame | tip =
| |
− | | #default =
| |
− | * {{Related page link|Card Tips|{{{demo|}}}|label=Tips}} }}
| |
− | * {{Related page link|Card Trivia|{{{demo|}}}|label=Trivia}}<!--
| |
− | -->{{ #switch: {{ #var: $mode }} <!-- tip/strategy cards don't get appearances -->
| |
− | | tip =
| |
− | | #default =
| |
− | * {{Related page link|Card Appearances|{{{demo|}}}|label=Appearances}} }}<!--
| |
− | -->{{ #switch: {{ #var: $mode }} <!-- tokens and tip/strategy cards don't get names or lores -->
| |
− | | token | tip =
| |
− | | #default = {{ #ifexist: Card Names:{{ #var: $pagename }} | <!-- names/lores pages only get linked to if the page already exists -->
| |
− | * {{Related page link|Card Names|{{{demo|}}}|label=Names}} }}{{ #ifexist: Card Lores:{{ #var: $pagename }} |
| |
− | * {{Related page link|Card Lores|{{{demo|}}}|label=Lores}} }} }}<!--
| |
− | -->{{ #if: {{{Other2|}}}{{{other2|}}} | {{{Other2|}}}{{{other2|}}}
| |
− | }}{{ #if: {{{Other|}}}{{{other|}}} | <br/>{{{Other|}}}{{{other|}}}
| |
− | }}{{IfSemantics
| |
− | | {{ #if: {{ #ask: [[Main card page::{{ #var: $pagename }}]] }} | {{-}}
| |
− | | |
− | {{ #ask: [[Main card page::{{ #var: $pagename }}]]
| |
− | |?Medium
| |
− | |?Release
| |
− | |format=ul
| |
− | |template=pipeLink
| |
− | |link=none
| |
− | |sort=Medium
| |
− | }}
| |
− | }} }}
| |
− | }}</td></tr></table><!--
| |
− | | |
− | SMW and categories
| |
− | | |
− | -->{{ #switch: {{ #var: $ns }}
| |
− | | {{ns:Card Gallery}}
| |
− | | {{ns:Card Rulings}}
| |
− | | {{ns:Card Errata}}
| |
− | | {{ns:Card Tips}}
| |
− | | {{ns:Card Trivia}}
| |
− | | {{ns:Card Appearances}}
| |
− | | {{ns:Card Lores}}
| |
− | | {{ns:Card Artworks}}
| |
− | | {{ns:Card Names}} = {{ #if: {{{nocat|}}}
| |
− | | <!-- suppress content categories -->
| |
− | | [[Category:{{ #var: $ns }}]]
| |
− | }}<!-- maintenance cats - these should not be suppressed -->{{IfSemantics|{{ #ifeq: {{ #var: $pagename }}<!-- Damage = Reptile --> | {{ #var: $show-name }}
| |
− | | <!-- card page exists at {{ #var: $pagename }} -->
| |
− | | {{ #if: {{ #var: $show-name }}
| |
− | | {{Mbox
| |
− | | type = move
| |
− | | text = '''This page should be [{{fullurl:Special:MovePage/{{FULLPAGENAMEE}}|wpNewTitle={{urlencode:{{ #var: $ns }}:{{ #var: $show-name }}}}&wpReason={{urlencode:per main page}}&wpLeaveRedirect=0}} renamed]''' to "{{ #var: $ns }}:{{ #var: $show-name }}" per its [[{{ #var: $show-name }}|main card article]].<br />After renaming, please null-edit [{{fullurl:{{ #var: $ns }}:{{ #var: $show-name }}|action=edit}} this page], ''and then'' the [{{fullurl:{{ #var: $show-name }}|action=edit}} main card article], to properly update this notice.
| |
− | }}[[Category:((Navigation)) transclusions to be renamed]]<!-- card page doesn't exist or is redirect -->
| |
− | }}
| |
− | }}}}{{ #if: {{{name|¬}}} || [[Category:((Navigation)) transclusions with empty name parameter]]<!-- {{{name}}} used but empty -->
| |
− | }}{{ #if: {{{Other|}}}{{{other|}}} | [[Category:((Navigation)) transclusions with "other" parameter]]
| |
− | }}{{ #if: {{{Other2|}}}{{{other2|}}} | [[Category:((Navigation)) transclusions with "Other2" parameter]]
| |
− | }}{{ #switch: {{ #var: $mode }}
| |
− | | = <!-- blank or undefined -->
| |
− | | nongame = [[Category:((Navigation)) transclusions with "nongame" mode value]]
| |
− | | othergame = [[Category:((Navigation)) transclusions with "othergame" mode value]]
| |
− | | tip = [[Category:((Navigation)) transclusions with "tip" mode value]]
| |
− | | token = [[Category:((Navigation)) transclusions with "token" mode value]]
| |
− | | #default = [[Category:((Navigation)) transclusions with unrecognized mode values]]<!-- anything else -->
| |
− | }}
| |
− | | #default = {{ #switch: {{FULLPAGENAME}}<!-- all other namespaces -->
| |
− | | Template:Navigation | Template:Navigation/doc | Template:Navigation/sandbox
| |
− | | Template:Navigation/testcases | Template:Navigation2 | Template:Navigation3 = <!-- no maintenance cats for Template:Navigation et al -->
| |
− | | #default = [[Category:((Navigation)) transclusions in the wrong namespace]]
| |
− | }}
| |
− | }}{{ #if: {{{demo|}}}{{{demo_ns|}}} | [[Category:Navigation demonstrations]]<!-- demo cat -->
| |
− | }}<noinclude>
| |
− | {{documentation}}
| |
− | </noinclude>
| |