• 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
(Template spacing issues fixed. Fixed description links and text. Added extra example.)
(Note_Current functionality. Removed debugging notes. Removed non-templated tables.)
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:character}} |<br>
 
{{#if: {{#var:card}} |!style="width:260px;"{{!}}Card | }}{{#if: {{#var:character}} |<br>
Line 26: Line 26:
 
{{!}} {{Asset|type=Equipment|asset=Item|{{{Equipment}}}|size=x260px}} | }}{{#if: {{#var:full}} |<br>
 
{{!}} {{Asset|type=Equipment|asset=Item|{{{Equipment}}}|size=x260px}} | }}{{#if: {{#var:full}} |<br>
 
{{!}} {{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>{{{Note_Current}}}
 
{{!}}}</includeonly><noinclude>
 
{{!}}}</includeonly><noinclude>
  
Line 40: Line 40:
 
|Card_2= Y ||Character_2=  ||Item_2= Y ||Full_2= Y
 
|Card_2= Y ||Character_2=  ||Item_2= Y ||Full_2= Y
 
|Note_2=  
 
|Note_2=  
 +
|Note_Current=
 
}}
 
}}
 
{{OldEquipmentCG
 
{{OldEquipmentCG
Line 45: Line 46:
 
|Card_1= Y ||Character_1=  ||Item_1= Y ||Full_1= Y
 
|Card_1= Y ||Character_1=  ||Item_1= Y ||Full_1= Y
 
|Note_1=  
 
|Note_1=  
 +
|Note_Current=
 
}}
 
}}
 
{{OldEquipmentCG
 
{{OldEquipmentCG
Line 50: Line 52:
 
|Card_1= Y ||Character_1=  ||Item_1=  ||Full_1=  
 
|Card_1= Y ||Character_1=  ||Item_1=  ||Full_1=  
 
|Note_1=  
 
|Note_1=  
 +
|Note_Current=
 
}}
 
}}
 
{{OldEquipmentCG
 
{{OldEquipmentCG
Line 57: Line 60:
 
|Card_2= Y ||Character_2=  ||Item_2= Y ||Full_2= Y
 
|Card_2= Y ||Character_2=  ||Item_2= Y ||Full_2= Y
 
|Note_2=  
 
|Note_2=  
 +
|Note_Current=
 
}}
 
}}
 
 
<div class="mw-collapsible mw-collapsed">
 
==Non-Templated==
 
 
{| class="wikitable" style="text-align: center; border-width:0.2px;"
 
|-
 
!style="width:260px;"|Card
 
!style="width:300px;"|Note
 
|-
 
|{{Asset|type=Old Equipment|asset=Card|Type 42 Air Radar|suffix1= - 1|size=x260px}}
 
|'''Original CG'''<br><br>Renamed from Type 14 Air Radar
 
|-
 
! colspan=5 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}}
 
|{{Equipment/Card|Type 42 Air Radar|size=x260px}}
 
|'''Hides''' unneeded asset columns
 
|}
 
 
{| class="wikitable" style="text-align: center; border-width:0.2px;"
 
|-
 
!style="width:260px;"|Card
 
!style="width:260px;"|Fairy
 
!style="width:260px;"|Equipment
 
!style="width:260px;"|Combination
 
!style="width:300px;"|Note
 
|-
 
|{{Asset|type=Old Equipment|asset=Card|Type 42 Air Radar|suffix1= - 1|size=x260px}}
 
| -
 
| -
 
| -
 
|'''Original CG'''<br><br>Renamed from Type 14 Air Radar
 
|-
 
! colspan=5 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}}
 
|{{Equipment/Card|Type 42 Air Radar|size=x260px}}
 
| -
 
| -
 
| -
 
|'''Blanks''' unneeded asset columns
 
|}
 
 
 
{| class="wikitable" style="text-align: center; border-width:0.2px;"
 
|-
 
!style="width:260px;"|Card
 
!style="width:260px;"|Fairy
 
!style="width:260px;"|Equipment
 
!style="width:260px;"|Combination
 
!style="width:300px;"|Note
 
|-
 
|{{Asset|type=Old Equipment|asset=Card|Type 42 Air Radar|suffix1= - 1|size=x260px}}
 
| -
 
| -
 
| -
 
|'''Original CG'''<br><br>Renamed from Type 14 Air Radar
 
|-
 
! colspan=5 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}}
 
|{{Equipment/Card|Type 42 Air Radar|size=x260px}}
 
|{{Asset|type=Equipment|asset=Character|Type 42 Air Radar|size=x260px}}
 
|{{Asset|type=Equipment|asset=Item|Type 42 Air Radar|size=x260px}}
 
|{{Asset|type=Equipment|asset=Full|Type 42 Air Radar|size=x260px}}
 
|'''Keeps''' unneeded asset columns
 
|}
 
</div>
 
  
  
 
</noinclude>
 
</noinclude>

Revision as of 16:38, 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

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

Card Note
Type 42 Air Radar Original CG

☑ Showing Current CG ☒ Show Current CG (hidden)

Type 42 Air Radar Current CG

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