Difference between revisions of "Template:UOSuit"

m
m
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|
+
<includeonly>{{#ifeq:{{{no_top|}}}|1||{{UOSuit Top
|+style="background: #333;color: white;text-align: center;"|[[UO:{{{title}}} Suit|{{{title}}} Suit]]&nbsp;— {{#switch:{{{Atlantic|0}}}{{{Baja|0}}}{{{Catskills|0}}}{{{Chesapeake|0}}}{{{Drachenfels|0}}}{{{Europa|0}}}{{{GL|0}}}{{{LA|0}}}{{{Legends|0}}}{{{LS|0}}}{{{Napa|0}}}{{{Origin|0}}}{{{Pacific|0}}}{{{Sonoma|0}}}{{{SP|0}}}{{{Asuka|0}}}{{{Hokuto|0}}}{{{Izumo|0}}}{{{Mizuho|0}}}{{{Mugen|0}}}{{{Sakura|0}}}{{{Wakoku|0}}}{{{Yamato|0}}}{{{Arirang|0}}}{{{Balhae|0}}}{{{Formosa|0}}}{{{Oceania|0}}}
+
|title = {{{title|}}}
| 111111111111111000000000000
+
|suit1 = {{{suit1|}}}
| 111111111111111000000000001
+
|suit2 = {{{suit2|}}}
| 111111111111111000000000010
+
|suit3 = {{{suit3|}}}
| 111111111111111000000000011 = All Western Shards
+
|suit4 = {{{suit4|}}}
| 000000000000000111111110000
+
|suit5 = {{{suit5|}}}
| 000000000000000111111110001
+
|suit6 = {{{suit6|}}}
| 000000000000000111111110010
+
|suit7 = {{{suit7|}}}
| 000000000000000111111110011 = All Japanese Shards
+
|suit8 = {{{suit8|}}}
| 000000000000000000000001100
+
|suit9 = {{{suit9|}}}
| 000000000000000000000001101
+
|suit10 = {{{suit10|}}}
| 000000000000000000000001110
+
|suit11 = {{{suit11|}}}
| 000000000000000000000001111 = All Korean Shards
+
|suit12 = {{{suit12|}}}
| 111111111111111111111111111 = All Shards
+
|suit13 = {{{suit13|}}}
| #default = {{#if: {{{Atlantic|}}}|Atlantic}}{{#if: {{{Baja|}}}|Baja}}{{#if: {{{Catskills|}}}|Catskills}}{{#if: {{{Chesapeake|}}}|Chesapeake}}{{#if: {{{Drachenfels|}}}|Drachenfels}}{{#if: {{{Europa|}}}|Europa}}{{#if: {{{GL|}}}|Great Lakes}}{{#if: {{{LA|}}}|Lake Austin}}{{#if: {{{Legends|}}}|Legends}}{{#if: {{{LS|}}}|Lake Superior}}{{#if: {{{Napa|}}}|Napa Valley}}{{#if: {{{Origin|}}}|Origin}}{{#if: {{{Pacific|}}}|Pacific}}{{#if: {{{Sonoma|}}}|Sonoma}}{{#if: {{{SP|}}}|Siege Perilous}}{{#if: {{{Asuka|}}}|Asuka}}{{#if: {{{Hokuto|}}}|Hokuto}}{{#if: {{{Izumo|}}}|Izumo}}{{#if: {{{Mizuho|}}}|Mizuho}}{{#if: {{{Mugen|}}}|Mugen}}{{#if: {{{Sakura|}}}|Sakura}}{{#if: {{{Wakoku|}}}|Wakoku}}{{#if: {{{Yamato|}}}|Yamato}}{{#if: {{{Arirang|}}}|Arirang}}{{#if: {{{Balhae|}}}|Balhae}}{{#if: {{{Formosa|}}}|Formosa}}{{#if: {{{Oceania|}}}|Oceania}}
+
|suit14 = {{{suit14|}}}
}}, {{{year|{{#if:{{{season|}}}|20{{padleft:{{#expr: 2+{{{season|}}} }}|2}} }} }}}
+
|suit15 = {{{suit15|}}}
|-
+
|suit16 = {{{suit16|}}}
|style="padding: 2%;vertical-align:top;"|[[Image:UO-suitimage-{{{title}}}.png|215x306px]]
+
|suit17 = {{{suit17|}}}
|
+
|alt1 = {{{alt1|}}}
{|class=wikitable style="max-width: 100%;"
+
|alt2 = {{{alt2|}}}
{{#forargs: suit
+
|alt3 = {{{alt3|}}}
| key
+
|alt4 = {{{alt4|}}}
| value
+
|alt5 = {{{alt5|}}}
|{{#dpl: title={{#var: value}}
+
|alt6 = {{{alt6|}}}
|includepage={RareItem}.dpl12
+
|alt7 = {{{alt7|}}}
|namespace = UO
+
|alt8 = {{{alt8|}}}
|ordermethod = title
+
|shield = {{{shield|}}}
|skipthispage=no
+
|weapon = {{{weapon|}}}
 +
|note = {{{note|}}}
 +
|template = {{#ifeq: {{Boolean|{{{spawning}}} }}|1|InfoBox_UOItem|RareItem}}
 
}} }}
 
}} }}
{{#if:{{{weapon|}}}|
+
{{#ifeq:{{{no_bottom|}}}|1||
{{!}}-
+
<br><br>
{{!}}Weapon
 
{{#dpl: title={{{weapon}}}
 
|includepage={RareItem}.dpl13
 
|namespace = UO
 
|ordermethod = title
 
|skipthispage=no
 
}}
 
}}
 
{{#if:{{{shield|}}}|
 
{{!}}-
 
{{!}}Shield
 
{{#dpl: title={{{shield}}}
 
|includepage={RareItem}.dpl13
 
|namespace = UO
 
|ordermethod = title
 
|skipthispage=no
 
}}
 
}}
 
{{#if:{{{alt1|}}}|
 
{{!}}-
 
{{!}}colspan="2" style="border:none;padding-top:1em;"{{!}}'''''Alternative pieces:'''''
 
{{!}}-
 
{{#forargs: alt
 
| key
 
| value
 
|{{#dpl: title={{#var: value}}
 
|includepage={RareItem}.dpl12
 
|namespace = UO
 
|ordermethod = title
 
|skipthispage=no
 
}} }} }}
 
|}
 
|}
 
<br><br><br><br>
 
 
{{Navbox
 
{{Navbox
 
| name    = {{PAGENAME}}
 
| name    = {{PAGENAME}}
Line 71: Line 39:
 
| group1  = [[:Category:UO:Spawning Rare Suits|Spawning Suits]]
 
| group1  = [[:Category:UO:Spawning Rare Suits|Spawning Suits]]
 
| list1  =
 
| list1  =
{{#dpl: categorymatch = UO%Spawning Rare Suits
+
{{#dpl:  
{{!}}includepage={RareItem}.dpl15
+
|categorymatch = UO%Spawning Rare Suits
{{!}}allowcachedresults = true
+
|ordermethod = titlewithoutnamespace
{{!}}table = class="wikitable dpltable indent",-,Name,Graphic,Hue,Type,Year,Shard
+
|order=ascending
{{!}}ordermethod = title
+
|skipthispage=no
{{!}}namespace = UO
+
|suppresserrors = true
{{!}}suppresserrors = true
+
|distinct=true
{{!}}noresultsheader=&nbsp;
 
{{!}}debug=1
 
{{!}}skipthispage=no
 
{{!}}order=ascending
 
 
}}
 
}}
 
| group2  = [[:Category:UO:Rare Suits|Rare Suits]]
 
| group2  = [[:Category:UO:Rare Suits|Rare Suits]]
 
| list2  =
 
| list2  =
{{#dpl: categorymatch = UO%Rare Suits
+
{{#dpl:  
{{!}}includepage={RareItem}.dpl15
+
|categorymatch = UO%Rare Suits
{{!}}allowcachedresults = true
+
|notcategorymatch = UO%Spawning Rare Suits
{{!}}table = class="wikitable dpltable indent",-,Name,Graphic,Hue,Type,Year,Shard
+
|ordermethod = titlewithoutnamespace
{{!}}ordermethod = title
+
|order=ascending
{{!}}namespace = UO
+
|skipthispage=no
{{!}}suppresserrors = true
+
|suppresserrors = true
{{!}}noresultsheader=&nbsp;
+
|distinct=true
{{!}}debug=1
 
{{!}}skipthispage=no
 
{{!}}order=ascending
 
 
}}
 
}}
}}{{#ifexpr: {{#pos: {{PAGENAME}}| Suit|{{#expr: {{#len:{{PAGENAME}}}} - 5}}}}|[[Category:UO:Suits]][[Category:UO:{{#ifeq: {{Boolean|{{{spawning}}} }}|1|Spawning }}Rare Suits]]|[[Category:UO:Suit Pieces]]}}
+
}}{{#ifexpr: {{#pos: {{PAGENAME}}| Suit|{{#expr: {{#len:{{PAGENAME}}}} - 5}}}}|[[Category:UO:Suits]][[Category:UO:{{#ifeq: {{Boolean|{{{spawning}}} }}|1|Spawning}} Rare Suits]]|[[Category:UO:Suit Pieces]]}}{{#ifexpr: {{#pos: {{PAGENAME}}| Set|{{#expr: {{#len:{{PAGENAME}}}} - 3}}}}|[[Category:UO:Suits]][[Category:UO:{{#ifeq: {{Boolean|{{{spawning}}} }}|1|Spawning}} Rare Suits]]|[[Category:UO:Suit Pieces]]}} }}</includeonly>
</includeonly>
 

Latest revision as of 12:33, 24 May 2020