Difference between revisions of "Template:Infobox Special Ability"

m
m
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine: graphic |{{#replace:{{PAGENAME}}|UO:Items using graphic |}} }}{{#vardefine:image|{{#ifeq: {{UOUnusedGraphicTest | {{#var: graphic}} }} | 1 | There currently is no graphic at this position in the client files. | [[File:UO-Item-{{#var:graphic}}-0.png]] }} }}
+
{{#vardefine: bottom|border-bottom:1px #ddd solid;}}{{#vardefine: right|border-right:1px #ddd dotted;}}{{#vardefine: pad|padding:2px;}}<includeonly>{{#vardefine: graphic |{{#replace:{{PAGENAME}}|UO:Items using graphic |}} }}{{#vardefine:image|{{#ifeq: {{UOUnusedGraphicTest | {{#var: graphic}} }} | 1 | There currently is no graphic at this position in the client files. | [[File:UO-Item-{{#var:graphic}}-0.png]] }} }}
 
{| class=infobox
 
{| class=infobox
 
|class=titlecell colspan="3"| Special {{#if: {{#varexists: damage type}} | Ability | Move }}
 
|class=titlecell colspan="3"| Special {{#if: {{#varexists: damage type}} | Ability | Move }}
 
|-
 
|-
 
|colspan="3" style="text-align:center;"| {{#ifexist:File:UO Icon {{{1|}}}.png| [[File:UO Icon {{{1|}}}.png]] }}
 
|colspan="3" style="text-align:center;"| {{#ifexist:File:UO Icon {{{1|}}}.png| [[File:UO Icon {{{1|}}}.png]] }}
 +
|-
 +
|colspan="3"|<hr>
 
{{#if: {{#varexists: damage type}} |  
 
{{#if: {{#varexists: damage type}} |  
 
{{!}}-
 
{{!}}-
Line 12: Line 14:
 
| colspan="2" | {{#var: mana cost}}
 
| colspan="2" | {{#var: mana cost}}
 
{{#if: {{#varexists: damage type}} || {{#if: {{#varexists: magical ability}} ||
 
{{#if: {{#varexists: damage type}} || {{#if: {{#varexists: magical ability}} ||
 +
{{!}}-
 +
{{!}} colspan="3" {{!}} &nbsp;
 
{{!}}-  
 
{{!}}-  
{{!}} class=titlecell {{!}} Weapons
+
{{!}} class=titlecell style="background-color:#23415a;" {{!}} Weapons
{{!}} class=titlecell {{!}} Primary
+
{{!}} class=titlecell style="background-color:#23415a;font-weight:900;" {{!}} Primary
{{!}} class=titlecell {{!}} Secondary
+
{{!}} class=titlecell style="background-color:#23415a;font-weight:900;" {{!}} Secondary
 +
{{!}}-
 
{{!}}-
 
{{!}}-
{{!}} Archery
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} Archery
{{!}} {{#var: archery primary}}
+
{{!}} style="{{#var:bottom}}{{#var:right}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: archery primary}} }}
{{!}} {{#var: archery secondary}}
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: archery secondary}} }}
 
{{!}}-
 
{{!}}-
{{!}} Fencing
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} Fencing
{{!}} {{#var: fencing primary}}
+
{{!}} style="{{#var:bottom}}{{#var:right}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: fencing primary}} }}
{{!}} {{#var: fencing secondary}}
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: fencing secondary}} }}
 
{{!}}-
 
{{!}}-
{{!}} Macing
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} Macing
{{!}} {{#var: macing primary}}
+
{{!}} style="{{#var:bottom}}{{#var:right}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: macing primary}} }}
{{!}} {{#var: macing secondary}}
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: macing secondary}} }}
 
{{!}}-
 
{{!}}-
{{!}} Swords
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} Swords
{{!}} {{#var: swords primary}}
+
{{!}} style="{{#var:bottom}}{{#var:right}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: swords primary}} }}
{{!}} {{#var: swords secondary}}
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: swords secondary}} }}
 
{{!}}-
 
{{!}}-
{{!}} Throwing
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} Throwing
{{!}} {{#var: throwing primary}}
+
{{!}} style="{{#var:bottom}}{{#var:right}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: throwing primary}} }}
{{!}} {{#var: throwing secondary}}
+
{{!}} style="{{#var:bottom}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: throwing secondary}} }}
 
{{!}}-
 
{{!}}-
{{!}} Other
+
{{!}} style="{{#var:pad}} {{!}} Other
{{!}} {{#var: other primary}}
+
{{!}} style="{{#var:right}}{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: other primary}} }}
{{!}} {{#var: other secondary}}
+
{{!}} style="{{#var:pad}} {{!}} {{CSV to LinkList|{{#var: other secondary}} }}
 
}} }}
 
}} }}
 +
|-
 +
| colspan="3" | &nbsp;
 
|}
 
|}

Latest revision as of 19:14, 29 June 2017