Difference between revisions of "Template:UOSuit"

m
m
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#ifeq:{{{no_top|}}}|1||{{UOSuit Top
{|
+
|title = {{{title|}}}
|+style="background: #333;color: white;text-align: center;"|[[UO:{{{title}}} Suit|{{{title}}} Suit]]
+
|suit1 = {{{suit1|}}}
|-
+
|suit2 = {{{suit2|}}}
|style="padding: 2%;vertical-align:top;"|[[Image:UO-suitimage-{{{title}}}.png|215x306px]]
+
|suit3 = {{{suit3|}}}
|
+
|suit4 = {{{suit4|}}}
{|class="wikitable suittable sortable" style="max-width: 100%;"
+
|suit5 = {{{suit5|}}}
!style="display:none;"|
+
|suit6 = {{{suit6|}}}
!style="display:none;"|
+
|suit7 = {{{suit7|}}}
!style="display:none;"|
+
|suit8 = {{{suit8|}}}
!data-sort-onload=yes style="display:none;"|Sort column
+
|suit9 = {{{suit9|}}}
|-
+
|suit10 = {{{suit10|}}}
{{#forargs: suit
+
|suit11 = {{{suit11|}}}
| key
+
|suit12 = {{{suit12|}}}
| value
+
|suit13 = {{{suit13|}}}
|{{#dpl: title={{#var: value}}
+
|suit14 = {{{suit14|}}}
|includepage={RareItem}.dpl12
+
|suit15 = {{{suit15|}}}
|namespace = UO
+
|suit16 = {{{suit16|}}}
|ordermethod = title
+
|suit17 = {{{suit17|}}}
|skipthispage=no
+
|alt1 = {{{alt1|}}}
 +
|alt2 = {{{alt2|}}}
 +
|alt3 = {{{alt3|}}}
 +
|alt4 = {{{alt4|}}}
 +
|alt5 = {{{alt5|}}}
 +
|alt6 = {{{alt6|}}}
 +
|alt7 = {{{alt7|}}}
 +
|alt8 = {{{alt8|}}}
 +
|shield = {{{shield|}}}
 +
|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>{{{note|}}}<br><br><br>
 
 
{{Navbox
 
{{Navbox
 
| name    = {{PAGENAME}}
 
| name    = {{PAGENAME}}
Line 66: Line 43:
 
|ordermethod = titlewithoutnamespace
 
|ordermethod = titlewithoutnamespace
 
|order=ascending
 
|order=ascending
 +
|skipthispage=no
 
|suppresserrors = true
 
|suppresserrors = true
 +
|distinct=true
 
}}
 
}}
 
| group2  = [[:Category:UO:Rare Suits|Rare Suits]]
 
| group2  = [[:Category:UO:Rare Suits|Rare Suits]]
Line 72: Line 51:
 
{{#dpl:  
 
{{#dpl:  
 
|categorymatch = UO%Rare Suits
 
|categorymatch = UO%Rare Suits
 +
|notcategorymatch = UO%Spawning Rare Suits
 
|ordermethod = titlewithoutnamespace
 
|ordermethod = titlewithoutnamespace
 
|order=ascending
 
|order=ascending
 +
|skipthispage=no
 
|suppresserrors = true
 
|suppresserrors = true
 +
|distinct=true
 
}}
 
}}
}}
+
}}{{#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>
}}
 
{{#ifeq:{{{no_bottom|}}}|1||
 
{{#ifexpr: {{#pos: {{PAGENAME}}| Suit|{{#expr: {{#len:{{PAGENAME}}}} - 5}}}}|[[Category:UO:Suits]][[Category:UO:{{#ifeq: {{Boolean|{{{spawning}}} }}|1|Spawning }}Rare Suits]]|[[Category:UO:Suit Pieces]]}} }}
 
</includeonly>
 

Latest revision as of 12:33, 24 May 2020