User:Faltout/SandBox/Named item set definition

CODE
{{#if: {{{name|}}} | {{#vardefine: defined set name | {{{name|}}} }}{{#vardefine: display | {{#if: {{{display|}}} | {{{display}}} | tablerow}} }}{{#switch: {{#var:display|}} | tablerow = {{!}} style="height:100%;" {{!}}  {{#var:defined set name|}} {{!}} {{#if: {{{extra items|}}} | Extra: {{{extra items|}}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Waist items|mode=userformat|include=-|noresultsfooter=No results}} | | Belts: {{#dpl: |category={{#var: defined set name|}} set items&Waist items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}},}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Feet items|mode=userformat|include=-|noresultsfooter=No results}} | | Boots: {{#dpl: |category={{#var: defined set name|}} set items&Feet items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}},}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Wrist items|mode=userformat|include=-|noresultsfooter=No results}} | | Bracers: {{#dpl: |category={{#var: defined set name|}} set items&Wrist items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Back items|mode=userformat|include=-|noresultsfooter=No results}} | | Cloaks: {{#dpl: |category={{#var: defined set name|}} set items&Back items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Hand items|mode=userformat|include=-|noresultsfooter=No results}} | | Gloves: {{#dpl: |category={{#var: defined set name|}} set items&Hand items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Eye items|mode=userformat|include=-|noresultsfooter=No results}} | | Goggles: {{#dpl: |category={{#var: defined set name|}} set items&Eye items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Head items|mode=userformat|include=-|noresultsfooter=No results}} | | Helms: {{#dpl: |category={{#var: defined set name|}} set items&Head items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Neck items|mode=userformat|include=-|noresultsfooter=No results}} | | Necklaces: {{#dpl: |category={{#var: defined set name|}} set items&Neck items |uses=Template:Named item |include={Named item}:picdesc |listseparators=,{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Finger items|mode=userformat|include=-|noresultsfooter=No results}} | | Rings: {{#dpl: |category={{#var: defined set name|}} set items&Finger items |uses=Template:Named item |include={Named item}:picdesc |listseparators=<ul>,<li>{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Trinket items|mode=userformat|include=-|noresultsfooter=No results}} | | <li>Trinkets: {{#dpl: |category={{#var: defined set name|}} set items&Trinket items |uses=Template:Named item |include={Named item}:picdesc |listseparators=<ul>,<li>{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&*Armor|mode=userformat|include=-|noresultsfooter=No results}} | | <li>Armors: {{#dpl: |category={{#var: defined set name|}} set items&*Armor |uses=Template:Named item |include={Named item}:picdesc |listseparators=<ul>,<li>{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items |category=*Shields¦Rune Arms |mode=userformat|include=-|noresultsfooter=No results}} | | <li>Offhand: {{#dpl: |category={{#var: defined set name|}} set items |category=*Shields¦Rune Arms |uses=Template:Named item |include={Named item}:picdesc |listseparators=<ul>,<li>{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&**Weapons |notcategory=Rune Arms |mode=userformat|include=-|noresultsfooter=No results}} | | <li>Weapons: {{#dpl: |category={{#var: defined set name|}} set items&**Weapons |notcategory=Rune Arms |uses=Template:Named item |include={Named item}:picdesc |listseparators=<ul>,<li>{{Item{{!}}%TITLE%}}{{sup|({{Image popup{{!}}pic{{!}},}})}}</li>,</ul>}} }}</ul> {{!}} {{{long|No description}}} | page = {{Anchor|{{#var:defined set name}} }} {{TOCRight}}{{#var:defined set name|}} is an item set.

Items
{{#if: {{{extra items|}}} |

Extra
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Waist items|mode=userformat|include=-|noresultsfooter=No results}} | |

Belts
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Feet items|mode=userformat|include=-|noresultsfooter=No results}} | |

Boots
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Wrist items|mode=userformat|include=-|noresultsfooter=No results}} | |

Bracers
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Back items|mode=userformat|include=-|noresultsfooter=No results}} | |

Cloaks
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Hand items|mode=userformat|include=-|noresultsfooter=No results}} | |

Gloves
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Eye items|mode=userformat|include=-|noresultsfooter=No results}} | |

Goggles
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Head items|mode=userformat|include=-|noresultsfooter=No results}} | |

Helms
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Neck items|mode=userformat|include=-|noresultsfooter=No results}} | |

Necklaces
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Finger items|mode=userformat|include=-|noresultsfooter=No results}} | |

Rings
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&Trinket items|mode=userformat|include=-|noresultsfooter=No results}} | |

Trinkets
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&*Armor|mode=userformat|include=-|noresultsfooter=No results}} | |

Armor
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items|category=*Shields¦Rune Arms|mode=userformat|include=-|noresultsfooter=No results}} | |

Offhand
}}{{#if: {{#dpl:|category={{#var:defined set name|}} set items&**Weapons |notcategory=Rune Arms |mode=userformat|include=-|noresultsfooter=No results}} | |

Weapons
}} }} | }}