User:Relyk/sandbox/weapon table example

From Guild Wars 2 Wiki
Jump to navigationJump to search

Format[edit]

Hand Weapon
Terrestrial
Main hand
Off hand
Two-handed
Aquatic
Two-handed

Single #arraymap[edit]

{{#arraymap: Axe, Dagger, Mace, Pistol, Scepter, Sword |,|@@@|
	{{#ask:[[Category:{{{1|{{PAGENAME}}}}}]][[Has skin type::@@@]]
	|link=none
	|format=template
	|template=large icon
	|outro=<br style="margin-bottom:1em">
	}}
|}}

Seraph Axe.png Seraph Axe
Seraph Dagger.png Seraph Dagger
Seraph Mace.png Seraph Mace
Seraph Pistol.png Seraph Pistol
Seraph Scepter.png Seraph Scepter
Seraph Sword.png Seraph Sword

Table[edit]

{| {{STDT|equip}}
! Hand !! Weapon
|-
! colspan=2 | Terrestrial
|-
! rowspan="1" | Main hand
| {{#arraymap: Axe, Dagger, Mace, Pistol, Scepter, Sword |,|@@@|
	{{#ask:[[Category:{{{1|{{PAGENAME}}}}}]][[Has skin type::@@@]]
	|link=none
	|format=template
	|template=large icon
	|outro=<br style="margin-bottom:1em">
	}}
|}}
|-
! rowspan="1" | Off hand
| {{#arraymap: Focus, Shield, Torch, Warhorn |,|@@@|
	{{#ask:[[Category:{{{1|{{PAGENAME}}}}}]][[Has skin type::@@@]]
	|link=none
	|format=template
	|template=large icon
	|outro=<br style="margin-bottom:1em">
	}}
|}}
|-
! rowspan="1" | Two-handed
| {{#arraymap: Greatsword, Hammer, Longbow, Rifle, Short bow, Staff |,|@@@|
	{{#ask:[[Category:{{{1|{{PAGENAME}}}}}]][[Has skin type::@@@]]
	|link=none
	|format=template
	|template=large icon
	|outro=<br style="margin-bottom:1em">
	}}
|}}
{{#ifeq:{{{showAquatic|true}}}|true|
{{!}}-
! colspan=2 {{!}} Aquatic
{{!}}-
! rowspan="1" {{!}} Two-handed
{{!}} {{#arraymap: Harpoon gun, Spear, Trident  |,|@@@|
	{{#ask:[[Category:{{{1|{{PAGENAME}}}}}]][[Has skin type::@@@]]
	|link=none
	|format=template
	|template=large icon
	|outro=<br style="margin-bottom:1em">
	}}
|}} }}
|}
Hand Weapon
Terrestrial
Main hand
Off hand
Two-handed
Aquatic
Two-handed

Example[edit]

{{User:Relyk/sandbox/weapon table example|Seraph weapons}}
Hand Weapon
Terrestrial
Main hand Seraph Axe.png Seraph Axe
Seraph Dagger.png Seraph Dagger
Seraph Mace.png Seraph Mace
Seraph Pistol.png Seraph Pistol
Seraph Scepter.png Seraph Scepter
Seraph Sword.png Seraph Sword
Off hand Seraph Focus.png Seraph Focus
Seraph Shield.png Seraph Shield
Seraph Torch.png Seraph Torch
Seraph Warhorn.png Seraph Warhorn
Two-handed Seraph Greatsword.png Seraph Greatsword
Seraph Hammer.png Seraph Hammer
Seraph Longbow.png Seraph Longbow
Seraph Rifle.png Seraph Rifle
Seraph Short Bow.png Seraph Short Bow
Seraph Staff.png Seraph Staff
Aquatic
Two-handed File:Seraph Speargun.png Seraph Speargun
Seraph Spear.png Seraph Spear
File:Seraph Trident.png Seraph Trident

With formatting template[edit]

{| {{STDT|equip}}{{#vardefine:weapon set|{{{1|Seraph weapons}}}}}
! Hand !! Weapon
|-
! colspan=2 | Terrestrial
|-
! rowspan="1" | Main hand
| {{User:Relyk/sandbox/weapon table example format|{{#var:weapon set}}|Axe,Dagger,Mace,Pistol,Scepter,Sword}}
|-
! rowspan="1" | Off hand
| {{User:Relyk/sandbox/weapon table example format|{{#var:weapon set}}|Focus,Shield,Torch,Warhorn}}
|-
! rowspan="1" | Two-handed
| {{User:Relyk/sandbox/weapon table example format|{{#var:weapon set}}|Greatsword,Hammer,Longbow,Rifle,Short bow,Staff}}
{{#ifeq:{{{showAquatic|true}}}|true|
{{!}}-
! colspan=2 {{!}} Aquatic
{{!}}-
! rowspan="1" {{!}} Two-handed
{{!}} {{User:Relyk/sandbox/weapon table example format|{{#var:weapon set}}|Harpoon gun, Spear, Trident}}
}}
|}
Hand Weapon
Terrestrial
Main hand Seraph Axe.png Seraph Axe
Seraph Dagger.png Seraph Dagger
Seraph Mace.png Seraph Mace
Seraph Pistol.png Seraph Pistol
Seraph Scepter.png Seraph Scepter
Seraph Sword.png Seraph Sword
Off hand Seraph Focus.png Seraph Focus
Seraph Shield.png Seraph Shield
Seraph Torch.png Seraph Torch
Seraph Warhorn.png Seraph Warhorn
Two-handed Seraph Greatsword.png Seraph Greatsword
Seraph Hammer.png Seraph Hammer
Seraph Longbow.png Seraph Longbow
Seraph Rifle.png Seraph Rifle
Seraph Short Bow.png Seraph Short Bow
Seraph Staff.png Seraph Staff
Aquatic
Two-handed File:Seraph Speargun.png Seraph Speargun
Seraph Spear.png Seraph Spear
File:Seraph Trident.png Seraph Trident