• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Template:OldEquipmentCG"

From Kancolle Wiki
Jump to navigation Jump to search
(Rows now hide if unused.)
(Template spacing issues fixed. Fixed description links and text. Added extra example.)
Line 1: Line 1:
 
<includeonly>{{#vardefine:card|{{#if:{{{Card_1|}}}{{{Card_2|}}}{{{Card_3|}}}{{{Card_4|}}}|1|}}}}{{#vardefine:character|{{#if:{{{Character_1|}}}{{{Character_2|}}}{{{Character_3|}}}{{{Character_4|}}}|1|}}}}{{#vardefine:item|{{#if:{{{Item_1|}}}{{{Item_2|}}}{{{Item_3|}}}{{{Item_4|}}}|1|}}}}{{#vardefine:full|{{#if:{{{Full_1|}}}{{{Full_2|}}}{{{Full_3|}}}{{{Full_4|}}}|1|}}}}{{#vardefine:total_colspan|{{#expr: 1+{{#var:card|0}}+{{#var:character|0}}+{{#var:item|0}}+{{#var:full|0}} }}}}
 
<includeonly>{{#vardefine:card|{{#if:{{{Card_1|}}}{{{Card_2|}}}{{{Card_3|}}}{{{Card_4|}}}|1|}}}}{{#vardefine:character|{{#if:{{{Character_1|}}}{{{Character_2|}}}{{{Character_3|}}}{{{Character_4|}}}|1|}}}}{{#vardefine:item|{{#if:{{{Item_1|}}}{{{Item_2|}}}{{{Item_3|}}}{{{Item_4|}}}|1|}}}}{{#vardefine:full|{{#if:{{{Full_1|}}}{{{Full_2|}}}{{{Full_3|}}}{{{Full_4|}}}|1|}}}}{{#vardefine:total_colspan|{{#expr: 1+{{#var:card|0}}+{{#var:character|0}}+{{#var:item|0}}+{{#var:full|0}} }}}}
{{{!}} class="wikitable" style="text-align: center; border-width:0.2px;"
+
{| class="wikitable" style="text-align: center; border-width:0.2px;"
 
{{!}}-
 
{{!}}-
{{#if: {{#var:card}} |!style="width:260px;"{{!}}Card | }}
+
{{#if: {{#var:card}} |!style="width:260px;"{{!}}Card | }}{{#if: {{#var:character}} |<br>
{{#if: {{#var:character}} |!style="width:260px;"{{!}}Fairy | }}
+
!style="width:260px;"{{!}}Fairy | }}{{#if: {{#var:item}} |<br>
{{#if: {{#var:item}} |!style="width:260px;"{{!}}Equipment | }}
+
!style="width:260px;"{{!}}Equipment | }}{{#if: {{#var:full}} |<br>
{{#if: {{#var:full}} |!style="width:260px;"{{!}}Combination | }}
+
!style="width:260px;"{{!}}Combination | }}
 
!style="width:300px;"{{!}}Note
 
!style="width:300px;"{{!}}Note
 
{{!}}-
 
{{!}}-
{{#if: {{#var:card}} |{{!}} {{#if: {{{Card_1|}}} | {{Asset|type=Old Equipment|asset=Card|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}
+
{{#if: {{#var:card}} |{{!}} {{#if: {{{Card_1|}}} | {{Asset|type=Old Equipment|asset=Card|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}{{#if: {{#var:character}} |<br>
{{#if: {{#var:character}} |{{!}} {{#if: {{{Character_1|}}} | {{Asset|type=Old Equipment|asset=Character|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}
+
{{!}} {{#if: {{{Character_1|}}} | {{Asset|type=Old Equipment|asset=Character|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}{{#if: {{#var:item}} |<br>
{{#if: {{#var:item}} |{{!}} {{#if: {{{Item_1|}}} | {{Asset|type=Old Equipment|asset=Item|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}
+
{{!}} {{#if: {{{Item_1|}}} | {{Asset|type=Old Equipment|asset=Item|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}{{#if: {{#var:full}} |<br>
{{#if: {{#var:full}} |{{!}} {{#if: {{{Full_1|}}} | {{Asset|type=Old Equipment|asset=Full|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}
+
{{!}} {{#if: {{{Full_1|}}} | {{Asset|type=Old Equipment|asset=Full|{{{Equipment}}}|suffix1= - 1|size=x260px}} | - }} | }}
 
{{!}} '''Original CG'''<br><br>{{{Note_1}}}
 
{{!}} '''Original CG'''<br><br>{{{Note_1}}}
 
{{#if:{{{Card_2|}}}{{{Character_2|}}}{{{Item_2|}}}{{{Full_2|}}}|{{!}}-
 
{{#if:{{{Card_2|}}}{{{Character_2|}}}{{{Item_2|}}}{{{Full_2|}}}|{{!}}-
{{#if: {{#var:card}} |{{!}} {{#if: {{{Card_2|}}} | {{Asset|type=Old Equipment|asset=Card|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}
+
{{#if: {{#var:card}} |{{!}} {{#if: {{{Card_2|}}} | {{Asset|type=Old Equipment|asset=Card|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}{{#if: {{#var:character}} |<br>
{{#if: {{#var:character}} |{{!}} {{#if: {{{Character_2|}}} | {{Asset|type=Old Equipment|asset=Character|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}
+
{{!}} {{#if: {{{Character_2|}}} | {{Asset|type=Old Equipment|asset=Character|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}{{#if: {{#var:item}} |<br>
{{#if: {{#var:item}} |{{!}} {{#if: {{{Item_2|}}} | {{Asset|type=Old Equipment|asset=Item|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}
+
{{!}} {{#if: {{{Item_2|}}} | {{Asset|type=Old Equipment|asset=Item|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}{{#if: {{#var:full}} |<br>
{{#if: {{#var:full}} |{{!}} {{#if: {{{Full_2|}}} | {{Asset|type=Old Equipment|asset=Full|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}
+
{{!}} {{#if: {{{Full_2|}}} | {{Asset|type=Old Equipment|asset=Full|{{{Equipment}}}|suffix1= - 2|size=x260px}} | - }} | }}
 
{{!}} '''Old CG #2'''<br><br>{{{Note_2}}}|}}
 
{{!}} '''Old CG #2'''<br><br>{{{Note_2}}}|}}
 
{{!}}-
 
{{!}}-
 
! colspan="{{#var:total_colspan}}" style="background-color:#AFCDFF;" | {{Detail|button=true|target=CurrentCG|show_text=Showing Current CG|hide_text=Show Current CG (hidden)}}
 
! colspan="{{#var:total_colspan}}" style="background-color:#AFCDFF;" | {{Detail|button=true|target=CurrentCG|show_text=Showing Current CG|hide_text=Show Current CG (hidden)}}
 
{{!}}- style="background-color:#AFCDFF;" {{Detail|target=CurrentCG}}
 
{{!}}- style="background-color:#AFCDFF;" {{Detail|target=CurrentCG}}
{{#if: {{#var:card}} |{{!}} {{Asset|type=Equipment|asset=Card|{{{Equipment}}}|size=x260px}} | }}
+
{{#if: {{#var:card}} |{{!}} {{Asset|type=Equipment|asset=Card|{{{Equipment}}}|size=x260px}} | }}{{#if: {{#var:character}} |<br>
{{#if: {{#var:character}} |{{!}} {{Asset|type=Equipment|asset=Character|{{{Equipment}}}|size=x260px}}}}
+
{{!}} {{Asset|type=Equipment|asset=Character|{{{Equipment}}}|size=x260px}}}}{{#if: {{#var:item}} |<br>
{{#if: {{#var:item}} |{{!}} {{Asset|type=Equipment|asset=Item|{{{Equipment}}}|size=x260px}} | }}
+
{{!}} {{Asset|type=Equipment|asset=Item|{{{Equipment}}}|size=x260px}} | }}{{#if: {{#var:full}} |<br>
{{#if: {{#var:full}} |{{!}} {{Asset|type=Equipment|asset=Full|{{{Equipment}}}|size=x260px}} | }}
+
{{!}} {{Asset|type=Equipment|asset=Full|{{{Equipment}}}|size=x260px}} | }}
 
{{!}}'''Current CG'''<br><br>VALUES: {{#var:card}}+{{#var:character}}+{{#var:item}}+{{#var:full}}<br>character:{{#if:{{{Character_1|}}}{{{Character_2|}}}{{{Character_3|}}}{{{Character_4|}}}|yes|no}}
 
{{!}}'''Current CG'''<br><br>VALUES: {{#var:card}}+{{#var:character}}+{{#var:item}}+{{#var:full}}<br>character:{{#if:{{{Character_1|}}}{{{Character_2|}}}{{{Character_3|}}}{{{Character_4|}}}|yes|no}}
 
{{!}}}</includeonly><noinclude>
 
{{!}}}</includeonly><noinclude>
  
==[[User:Chocolatecravinghobo/Sandbox/7|Equipment CG update timeline]]==
+
==[[User:Chocolatecravinghobo/Sandbox/7/2|Equipment Page Old CG gallery]]==
Template for table on [[User:Chocolatecravinghobo/Sandbox/7]]
+
Template for table on [[User:Chocolatecravinghobo/Sandbox/7/2]]
 
+
<br>To be eventually be used on all equipment pages with old CG.
 +
<br>The data (& maybe template) could also be moved to a module.
  
 
{{OldEquipmentCG
 
{{OldEquipmentCG
Line 47: Line 48:
 
{{OldEquipmentCG
 
{{OldEquipmentCG
 
|Equipment= Type 42 Air Radar
 
|Equipment= Type 42 Air Radar
|Card_1= Y  
+
|Card_1= Y ||Character_1=  ||Item_1=  ||Full_1=
 +
|Note_1=
 +
}}
 +
{{OldEquipmentCG
 +
|Equipment= Type 0 Reconnaissance Seaplane
 +
|Card_1= Y ||Character_1= Y ||Item_1= Y ||Full_1= Y
 
|Note_1=  
 
|Note_1=  
 +
|Card_2= Y ||Character_2=  ||Item_2= Y ||Full_2= Y
 +
|Note_2=
 
}}
 
}}
 +
  
 
<div class="mw-collapsible mw-collapsed">
 
<div class="mw-collapsible mw-collapsed">

Revision as of 13:00, 3 May 2021


Equipment Page Old CG gallery

Template for table on User:Chocolatecravinghobo/Sandbox/7/2
To be eventually be used on all equipment pages with old CG.
The data (& maybe template) could also be moved to a module.


Card
Fairy
Equipment
Combination Note
Type 0 Fighter Model 21
Type 0 Fighter Model 21
Type 0 Fighter Model 21
Type 0 Fighter Model 21 Original CG

Notable example text
Type 0 Fighter Model 21
-
Type 0 Fighter Model 21
Type 0 Fighter Model 21 Old CG #2

☑ Showing Current CG ☒ Show Current CG (hidden)

Type 0 Fighter Model 21
Type 0 Fighter Model 21
Type 0 Fighter Model 21
Type 0 Fighter Model 21 Current CG

VALUES: 1+1+1+1
character:yes
Card
Equipment
Combination Note
Daihatsu Landing Craft
Daihatsu Landing Craft
Daihatsu Landing Craft Original CG

☑ Showing Current CG ☒ Show Current CG (hidden)

Daihatsu Landing Craft
Daihatsu Landing Craft
Daihatsu Landing Craft Current CG

VALUES: 1++1+1
character:no
Card Note
Type 42 Air Radar Original CG

☑ Showing Current CG ☒ Show Current CG (hidden)

Type 42 Air Radar Current CG

VALUES: 1+++
character:no
Card
Fairy
Equipment
Combination Note
Type 0 Reconnaissance Seaplane
Type 0 Reconnaissance Seaplane
Type 0 Reconnaissance Seaplane
Type 0 Reconnaissance Seaplane Original CG

Type 0 Reconnaissance Seaplane
-
Type 0 Reconnaissance Seaplane
Type 0 Reconnaissance Seaplane Old CG #2

☑ Showing Current CG ☒ Show Current CG (hidden)

Type 0 Reconnaissance Seaplane
Type 0 Reconnaissance Seaplane
Type 0 Reconnaissance Seaplane
Type 0 Reconnaissance Seaplane Current CG

VALUES: 1+1+1+1
character:yes


Non-Templated

Card Note
Type 42 Air Radar Original CG

Renamed from Type 14 Air Radar

☑ Showing Current CG ☒ Show Current CG (hidden)

Equipment Card Type 42 Air Radar.png Hides unneeded asset columns
Card Fairy Equipment Combination Note
Type 42 Air Radar - - - Original CG

Renamed from Type 14 Air Radar

☑ Showing Current CG ☒ Show Current CG (hidden)

Equipment Card Type 42 Air Radar.png - - - Blanks unneeded asset columns


Card Fairy Equipment Combination Note
Type 42 Air Radar - - - Original CG

Renamed from Type 14 Air Radar

☑ Showing Current CG ☒ Show Current CG (hidden)

Equipment Card Type 42 Air Radar.png Type 42 Air Radar Type 42 Air Radar Type 42 Air Radar Keeps unneeded asset columns