Permanently protected template

Difference between revisions of "Template:Archseries navbox"

From Yugipedia
Jump to: navigation, search
(fix list links for archseries whose page names have an "(archetype)" or "(series)" dabtag)
({{Documentation}})
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{IfSemantics|{{Navbox|{{ #if: {{{child|}}} | child }}
+
{{IfSemantics|{{ #vardefine: $archseries-nav-name | {{ #if: {{{1|}}} | {{Unlink|{{{1}}}}} | {{Normalized pagename|{{PAGENAME}}}} }} }}<!--
| title  = {{ #if: {{{name|}}} | {{{name}}} | [[:{{ #if: {{{1|}}} | {{{1}}} | {{PAGENAME}} }}|{{ #explode: {{ #if: {{{1|}}} | {{{1}}} | {{PAGENAME}} }} | ( }}]]}}
+
-->{{ #vardefine: $archseries-list-name | {{ #explode: {{ #explode: {{ #var: $archseries-nav-name }} | (series) }} | (archetype) }} }}<!--
 +
-->{{ #vardefine: $archseries-support | {{ #ifexpr: {{ #ask: <q>[[Support::{{ #var: $archseries-nav-name }}]] OR [[Archetype support::{{ #var: $archseries-nav-name }}]]</q> | format=count }} > 0 | 1 }} }}<!--
 +
-->{{ #vardefine: $archseries-anti-support | {{ #ifexpr: {{ #ask: <q>[[Anti-support::{{ #var: $archseries-nav-name }}]] OR [[Archetype anti-support::{{ #var: $archseries-nav-name }}]]</q> | format=count }} > 0 | 1 }} }}<!--
 +
-->{{ #vardefine: $archseries-related | {{ #ifexpr: {{ #ask: [[Archseries related::{{ #var: $archseries-nav-name }}]] | format=count }} > 0 | 1 }} }}<!--
 +
-->{{ #vardefine: $archseries-type | {{ #if: {{ #var: $archseries-support }}{{ #var: $archseries-anti-support }} | archetype | series }} }}<!--
 +
-->{{ #vardefine: $archseries-ja-name | {{Card name|{{ #var: $archseries-nav-name }}|ja}} }}<!--
 +
-->{{ #vardefine: $archseries-quotes | {{ #ifeq: {{ #var: $archseries-type }} | archetype | " }} }}<!--
 +
-->{{ #vardefine: $cut_names | {{ #show: {{ #var: $archseries-nav-name }} |?Cut from card names }} }}<!--
 +
 
 +
-->{{Navbox|{{ #if: {{{child|}}} | child }}
 +
| title  = {{ #if: {{{name|}}} | {{{name}}} | {{ #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 OCG/TCG.">o</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>
 
| state  = <includeonly>{{ #if: {{{state|}}} | {{{state}}} | autocollapse }}</includeonly>
 
| state  = <includeonly>{{ #if: {{{state|}}} | {{{state}}} | autocollapse }}</includeonly>
 
| navbar  = plain
 
| navbar  = plain
 
| listclass = hlist
 
| listclass = hlist
  
| liststyle = text-align: center;
+
| group1 = [[List of "{{ #var: $archseries-list-name }}" cards|Members]]
 
+
| list1   = {{ #ask: [[Concept:CG monsters]] [[Archseries::{{ #var: $archseries-nav-name }}]] |?English name |format=ul |link=none |template=Archseries navbox/link |limit=60 }}
| list1style = background: #DDF;
+
{{ #ask: [[Concept:CG spells and traps]] [[Archseries::{{ #var: $archseries-nav-name }}]] |?English name |format=ul |link=none |template=Archseries navbox/link |limit=60 }}
| list1  = '''[[List of "{{ #if: 1 | {{ #explode: {{ #explode: {{ #if: {{{1|}}} | {{{1}}} | {{PAGENAME}} }} | (archetype) }} | (series) }} }}" cards|Members]]'''
 
 
 
| group2  = TCG/OCG
 
| list2   = {{ #ask: [[Concept:CG monsters]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none |limit=100 }}
 
 
 
{{ #ask: [[Concept:CG spells and traps]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
 
 
| group3  = Anime/Manga
 
| list3  = {{ #ask: [[Concept:Anime and manga monsters]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
 
 
{{ #ask: [[Concept:Anime and manga spells and traps]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
 
 
| group4  = Video Game
 
| list4  = {{ #ifeq: {{ #ask: [[Concept:Unofficial VG cards]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |format=count}}| 0 || {{ #ask: [[Concept:Unofficial VG cards]] [[Card category::Monster Card]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
 
 
{{ #ask: [[Concept:Unofficial VG spells and traps]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }}
 
 
 
| group5  = Bandai
 
| list5  = {{ #ifeq: {{ #ask: [[Class 1::Bandai]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |format=count}}| 0 || {{ #ask: [[Concept:Bandai monsters]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
 
 
{{ #ask: [[Concept:Bandai spells and traps]] [[Archseries::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }}
 
 
 
| list6style  = background: #DDF;
 
| list6  = {{ #if: {{ #ask: [[Archetype support::{{{1|{{PAGENAME}}}}}]] }} | '''[[List of "{{ #if: 1 | {{ #explode: {{ #explode: {{ #if: {{{1|}}} | {{{1}}} | {{PAGENAME}} }} | (archetype) }} | (series) }} }}" support cards|Support]]''' }}
 
 
 
| group7  = TCG/OCG
 
| list7  = {{ #if: {{ #ask: [[Archetype support::{{{1|{{PAGENAME}}}}}]] }} | {{ #ask: [[Concept:CG monsters]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}&nbsp;
 
 
 
{{ #ask: [[Concept:CG spells and traps]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }}
 
 
 
| group8  = Anime/Manga
 
| list8  = {{ #if: {{ #ask: [[Archetype support::{{{1|{{PAGENAME}}}}}]] }} | {{ #ask: [[Concept:Anime and manga monsters]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}&nbsp;
 
 
 
{{ #ask: [[Concept:Anime and manga spells and traps]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }}
 
 
 
| group9  = Video Game
 
| list9  = {{ #if: {{ #ask: [[Archetype support::{{{1|{{PAGENAME}}}}}]] }} | {{ #ifeq: {{ #ask: [[Concept:Unofficial VG cards]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 || {{ #ask: [[Concept:Unofficial VG monsters]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
 
 
{{ #ask: [[Concept:Unofficial VG spell and traps]] [[Archetypes Support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }} }}
 
 
 
| group10 = Bandai
 
| list10  = {{ #if: {{ #ask: [[Archetype support::{{{1|{{PAGENAME}}}}}]] }} | {{ #ifeq: {{ #ask: [[Class 1::Bandai]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 || {{ #ask: [[Concept:Bandai monsters]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
 
 
{{ #ask: [[Concept:Bandai spells & traps]] [[Archetype support::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }} }}
 
 
 
| list11style = background: #DDF;
 
| list11  = {{ #if: {{ #ask: [[Archseries related::{{{1|{{PAGENAME}}}}}]] }} | '''Related''' }}
 
 
 
| group12 = TCG/OCG
 
| list12  = {{ #if: {{ #ask: [[Archseries related::{{{1|{{PAGENAME}}}}}]] }} | {{ #ask: [[Concept:CG monsters]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}&nbsp;
 
 
 
{{ #ask: [[Concept:CG spells and traps]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }}
 
 
 
| group13 = Anime/Manga
 
| list13  = {{ #if: {{ #ask: [[Archseries related::{{{1|{{PAGENAME}}}}}]] }} | {{ #ask: [[Concept:Anime and manga monsters]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}&nbsp;
 
 
 
{{ #ask: [[Concept:Anime and manga spells and traps]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }}
 
 
 
| group14 = Video Game
 
| list14  = {{ #if: {{ #ask: [[Archseries related::{{{1|{{PAGENAME}}}}}]] }} | {{ #ifeq: {{ #ask: [[Concept:Unofficial VG cards]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 || {{ #ask: [[Concept:Unofficial VG monsters]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
 
  
{{ #ask: [[Concept:Unofficial VG spell and traps]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }} }}
+
| group2  = [[List of "{{ #var: $archseries-list-name }}" support cards|Support]]
 +
| list2  = {{ #if: {{ #var: $archseries-support }} | {{ #ask: [[Concept:CG monsters]] <q>[[Support::{{ #var: $archseries-nav-name }}]] OR [[Archetype support::{{ #var: $archseries-nav-name }}]]</q> |?English name |format=ul |link=none |template=Archseries navbox/link |limit=60 }}
 +
{{ #ask: [[Concept:CG spells and traps]] <q>[[Support::{{ #var: $archseries-nav-name }}]] OR [[Archetype support::{{ #var: $archseries-nav-name }}]]</q> |?English name |format=ul |link=none |template=Archseries navbox/link |limit=60 }} }}
  
| group15 = Bandai
+
| group3  = [[List of "{{ #var: $archseries-list-name }}" anti-support cards|Anti-support]]
| list15  = {{ #if: {{ #ask: [[Archseries related::{{{1|{{PAGENAME}}}}}]] }} | {{ #ifeq: {{ #ask: [[Class 1::Bandai]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |format=count}} | 0 || {{ #ask: [[Concept:Bandai monsters]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }}
+
| list3  = {{ #if: {{ #var: $archseries-anti-support }} | {{ #ask: [[Concept:CG monsters]] <q>[[Anti-support::{{ #var: $archseries-nav-name }}]] OR [[Archetype anti-support::{{ #var: $archseries-nav-name }}]]</q> |?English name |format=ul |link=none |template=Archseries navbox/link |limit=60 }}
 +
{{ #ask: [[Concept:CG spells and traps]] <q>[[Anti-support::{{ #var: $archseries-nav-name }}]] OR [[Archetype anti-support::{{ #var: $archseries-nav-name }}]]</q> |?English name |format=ul |link=none |template=Archseries navbox/link |limit=60 }} }}
  
{{ #ask: [[Concept:Bandai spells and traps]] [[Archseries related::{{{1|{{PAGENAME}}}}}]] |?English name |format=ul |template=NavboxList |link=none }} }} }}
+
| group4  = Related
}}
+
| list4  = {{ #if: {{ #var: $archseries-related }} | {{ #ask: [[Concept:CG monsters]] [[Archseries related::{{ #var: $archseries-nav-name }}]] |?English name |format=ul |link=none |template=NavboxList |limit=60 }}
 +
{{ #ask: [[Concept:CG spells and traps]] [[Archseries related::{{ #var: $archseries-nav-name }}]] |?English name |format=ul |link=none |template=NavboxList |limit=60 }} }}
 +
}}{{ #vardefine: $archseries-support }}{{ #vardefine: $archseries-anti-support }}{{ #vardefine: $archseries-related }}
 
|<noinclude>{{SMW notice}}</noinclude>}}<noinclude>
 
|<noinclude>{{SMW notice}}</noinclude>}}<noinclude>
[[Category:Navboxes|{{PAGENAME}}]]
+
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 18:33, 3 June 2019