Template:Furniture by Category Table: Difference between revisions

NOW that ifexist works
oops don't need debug anymore
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#dpl:
|namespace  =
|category    = Furniture by Quality and ID<&>{{{1}}}
|category    = {{{2}}}
|notcategory = Removed
|uses        = Template:Furniture Infobox
|resultsheader = There are %PAGES% [[furniture]] matching the selected category:
|noresultsheader = No [[furniture]] match the selected category.
|format    = ,,,
}}{{#ifeq:{{#dpl:
|namespace  =
|category    = Furniture by Quality and ID<&>{{{1}}}
|category    = {{{2}}}
|notcategory = Removed
|uses        = Template:Furniture Infobox
|resultsheader = %PAGES%
|noresultsheader = 0
|format    = ,,,
}}|0||<!--
-->{{#tag:table-progress-tracking|
-->{{#tag:table-progress-tracking|
{{{!}} class="wikitable sortable"
{{{!}} class="wikitable sortable tdc1 tdc2 tdc3"
!Icon
!Icon
!No.
!Name
!Name
{{#if:{{{notype|}}}||<th>Type</th>}}
{{#if:{{{notype|}}}||<th>Type</th>}}
Line 10: Line 27:
!Color
!Color
!Material
!Material
!Source
{{!}}-
{{!}}-
{{#dpl:
{{#dpl:
|namespace =  
|namespace   =  
|category = Furniture by Number<&>{{{1}}}
|category   = Furniture by Quality and ID<&>{{{1}}}
|uses     = Template:Furniture Infobox
|category    = {{{2}}}
|include   = {Furniture Infobox}:%PAGE%:number:%PAGE%{{#if:{{{notype|}}}||:type}}{{#if:{{{noset|}}}||:set}}:size:color:material
|notcategory = Removed
|table     = ,-
|uses       = Template:Furniture Infobox
|tablerow = data-row-id="%PAGEID%"¦²{Card¦mini=1¦%%}²<!--
|include     = {Furniture Infobox}:%PAGE%:%PAGE%{{#if:{{{notype|}}}||:type}}{{#if:{{{noset|}}}||:set}}:size:color:material:source
-->,%%<!--
|table       = ,-
|tablerow   = data-row-id="%PAGEID%"¦²{Card¦mini=1¦%%}²<!--
-->,[[%%]]<!--
-->,[[%%]]<!--
-->{{#if:{{{notype|}}}||,%%}}<!--
-->{{#if:{{{notype|}}}||,[[%%]]}}<!--
-->{{#if:{{{noset|}}}||,²{#ifexist:%%¦[[%%]]¦%%}²<!---->}}<!--
-->{{#if:{{{noset|}}}||,²{#ifexist:%%¦[[%%]]¦%%}²<!---->}}<!--
-->,%%<!--
-->,%%<!--
-->,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²<!--
-->{{#if:{{{nocolor|}}}||,²{Array¦%%¦;¦<ul><li>[[{item}]]</li></ul>¦sort=1}²}}<!--
-->,²{Array¦%%¦;¦<ul><li>{item}</li></ul>}²
-->{{#if:{{{nomaterial|}}}||<!--
-->,²{Array<!--
-->¦1 = %%<!--
-->¦2 = ;<!--
-->¦3 = <ul><li>^2{Material Link¹{item}¹}^2</li></ul><!--
-->¦template = 1<!--
-->¦sort=1<!--
-->}²<!--
-->}}<!--
-->,<ul>²{Array¦%%¦;¦<li>{item}</li>}²</ul>
|format    = ,,,
|format    = ,,,
|ordermethod = sortkey
|ordermethod = sortkey
}}
}}
{{!}}}
{{!}}}
|table-id=8444}}</includeonly><noinclude>{{Documentation|type=DPL Table}}</noinclude>
|table-id=8444}}}}</includeonly><noinclude>{{Documentation|type=DPL Table}}</noinclude>