Permanently protected template

Difference between revisions of "Template:Archseries navbox (manga)"

From Yugipedia
Jump to: navigation, search
(use an em space between the English and Japanese names in the title)
m (Protected "Template:Archseries navbox (manga)": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ #vardefine: $archseries-nav-name | {{ #if: {{{1|}}} | {{{1}}} | {{Normalized pagename|{{PAGENAME}}}} }} }}<!--
+
{{ #vardefine: $archseries-nav-name | {{ #if: {{{1|}}} | {{Unlink|{{{1}}}}} | {{Normalized pagename|{{PAGENAME}}}} }} }}<!--
 
-->{{ #vardefine: $archseries-list-name | {{ #explode: {{ #explode: {{ #var: $archseries-nav-name }} | (series) }} | (archetype) }} }}<!--
 
-->{{ #vardefine: $archseries-list-name | {{ #explode: {{ #explode: {{ #var: $archseries-nav-name }} | (series) }} | (archetype) }} }}<!--
 
-->{{ #vardefine: $archseries-type | {{ #ifexpr: {{ #ask: <q>[[Support::{{ #var: $archseries-nav-name }}]] OR [[Archetype support::{{ #var: $archseries-nav-name }}]] OR [[Anti-support::{{ #var: $archseries-nav-name }}]] OR [[Archetype anti-support::{{ #var: $archseries-nav-name }}]]</q>[[Category:Manga cards]] | format=count }} > 0 | archetype | series }} }}<!--
 
-->{{ #vardefine: $archseries-type | {{ #ifexpr: {{ #ask: <q>[[Support::{{ #var: $archseries-nav-name }}]] OR [[Archetype support::{{ #var: $archseries-nav-name }}]] OR [[Anti-support::{{ #var: $archseries-nav-name }}]] OR [[Archetype anti-support::{{ #var: $archseries-nav-name }}]]</q>[[Category:Manga cards]] | format=count }} > 0 | archetype | series }} }}<!--
-->{{ #vardefine: $archseries-ja-name | {{ #show: {{ #var: $archseries-nav-name }} |?{{ #if: {{ #show: {{ #var: $archseries-nav-name }} |?Ruby text }} | Ruby text | Japanese name }} }} }}<!--
+
-->{{ #vardefine: $archseries-ja-name | {{Card name|{{ #var: $archseries-nav-name }}|ja}} }}<!--
 
-->{{ #vardefine: $archseries-quotes | {{ #ifeq: {{ #var: $archseries-type }} | archetype | " }} }}<!--
 
-->{{ #vardefine: $archseries-quotes | {{ #ifeq: {{ #var: $archseries-type }} | archetype | " }} }}<!--
 
-->{{ #vardefine: $cut_names | {{ #show: {{ #var: $archseries-nav-name }} |?Cut from card names }} }}<!--
 
-->{{ #vardefine: $cut_names | {{ #show: {{ #var: $archseries-nav-name }} |?Cut from card names }} }}<!--
Line 8: Line 8:
 
-->{{Navbox
 
-->{{Navbox
 
| name      = Archseries navbox (manga)
 
| name      = Archseries navbox (manga)
| title      = {{ #var: $archseries-quotes }}[[{{ #var: $archseries-nav-name }}|{{trim|{{ #explode: {{ #var: $archseries-nav-name }} | ( }}}}]]{{ #var: $archseries-quotes }}{{ #if: {{ #var: $archseries-ja-name }} | &emsp;{{ #if: {{ #var: $archseries-quotes }} | 「 }}{{ #var: $archseries-ja-name }}{{ #if: {{ #var: $archseries-quotes }} | 」 }} }}<span style="float: right; line-height: normal; font-variant: small-caps;"><span class="explain" style="font-variant: normal;" title="This {{ #var: $archseries-type }} is featured in the manga.">m</span> {{ #if: {{{member|}}} | <span class="explain" title="This card is a member of this {{ #var: $archseries-type }}.">m</span> }} {{ #if: {{{support|}}} | <span class="explain" title="This card supports this archetype.">+</span> }} {{ #if: {{{anti-support|}}} | <span class="explain" title="This card anti-supports this archetype.">-</span> }} {{ #if: {{{related|}}} | <span class="explain" title="This card is related to this {{ #var: $archseries-type }}.">r</span> }}</span>
+
| title      = {{ #var: $archseries-quotes }}[[:{{ #var: $archseries-nav-name }}|{{trim|{{ #explode: {{ #var: $archseries-nav-name }} | ( }}}}]]{{ #var: $archseries-quotes }}{{ #if: {{ #var: $archseries-ja-name }} | &emsp;<span lang="ja">{{ #if: {{ #var: $archseries-quotes }} | 「 }}{{ #var: $archseries-ja-name }}{{ #if: {{ #var: $archseries-quotes }} | 」 }}</span> }}<span style="float: right; line-height: normal; font-variant: small-caps;"><span class="explain" style="font-variant: normal;" title="This {{ #var: $archseries-type }} is featured in the manga.">m</span> {{ #if: {{{member|}}} | <span class="explain" title="This card is a member of this {{ #var: $archseries-type }}.">m</span> }} {{ #if: {{{support|}}} | <span class="explain" title="This card supports this archetype.">+</span> }} {{ #if: {{{anti-support|}}} | <span class="explain" title="This card anti-supports this archetype.">-</span> }} {{ #if: {{{related|}}} | <span class="explain" title="This card is related to this {{ #var: $archseries-type }}.">r</span> }}</span>
 
| bodyclass  = hlist
 
| bodyclass  = hlist
  
Line 15: Line 15:
  
 
| group2    = [[List of "{{ #var: $archseries-list-name }}" support cards|Support]]
 
| group2    = [[List of "{{ #var: $archseries-list-name }}" support cards|Support]]
| list2      = {{ #ask: <q>[[Support::{{ #var: $archseries-nav-name }}]] OR [[Archetype support::{{ #var: $archseries-nav-name }}]]</q>[[Category:Manga cards]] |?English name (linked) |format=ul |mainlabel=-|headers=hide |link=none }}
+
| list2      = {{ #ask: <q>[[Support::{{ #var: $archseries-nav-name }}]] OR [[Archetype support::{{ #var: $archseries-nav-name }}]]</q>[[Category:Manga cards]] |?English name |format=template |template=Archseries navbox/link |link=none |format=ul |limit=60 }}
  
 
| group3    = [[List of "{{ #var: $archseries-list-name }}" anti-support cards|Anti-support]]
 
| group3    = [[List of "{{ #var: $archseries-list-name }}" anti-support cards|Anti-support]]
| list3      = {{ #ask: <q>[[Anti-support::{{ #var: $archseries-nav-name }}]] OR [[Archetype anti-support::{{ #var: $archseries-nav-name }}]]</q>[[Category:Manga cards]] |?English name (linked) |format=ul |mainlabel=-|headers=hide |link=none }}
+
| list3      = {{ #ask: <q>[[Anti-support::{{ #var: $archseries-nav-name }}]] OR [[Archetype anti-support::{{ #var: $archseries-nav-name }}]]</q>[[Category:Manga cards]] |?English name |format=template |template=Archseries navbox/link |link=none |format=ul |limit=60 }}
  
 
| group4    = Related
 
| group4    = Related

Revision as of 18:35, 3 June 2019