Template:IncarnateList/query: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
(add type switch to de-duplicate dpl queries, format change)
m (decreased icon size a little more, prevent strange wrapping in some browsers)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch:{{{type|}}}
{{#dplreplace:
|IComponent={{#dpl:
{{#dplvar:set|category|{{{category}}}}}{{#dpl:
|mode=userformat
|mode=userformat
|includepage={Image}:1,{IComponent}.dpl
|includepage={Image}:1,{IAbility}:1,{IComponent}.dpl
|uses=Template:IComponent
|includematchparsed=,{{#if:{{#pos:{{PAGENAME}}|Component}}||/{{PAGENAME}}/s}},
|category={{{category|}}}
|uses=Template:IAbility{{!}}Template:IComponent
|category={{#dplvar:category}}
|linksto={{PAGENAME}}
|linksto={{PAGENAME}}
|distinct=strict
|distinct=strict
|namespace=
|namespace=
|allowcachedresults=true
|allowcachedresults=true
|resultsheader=\n<h3>{{{category}}}</h3>
|resultsheader=\n<h3>{{#dplvar:category}}</h3>
|suppresserrors=true
|suppresserrors=true
|format=<ul style="margin: 0; columns: 26em; list-style: none;">,<li style="position: relative; padding-left: 26px;">,</li>,</ul>
|format=<ul style="margin: 0; columns: 26em; list-style: none;">,<li style="position: relative; padding-left: 24px;">,</li>,</ul>
|secseparators=<span style="position: absolute; left: 0; pointer-events: none;">[[File:,|22px|link=|alt=]]</span>,[[%PAGE%|<span style="margin-left: -26px; padding-left: 26px;">%PAGE%</span>]] ,
|secseparators=<span style="position: absolute; left: 0; pointer-events: none;">[[File:,|20px|link=|alt=]]</span>,[[%PAGE%|<span style="margin-left: -24px; padding-left: 24px;">%PAGE%</span>]]XX,XX,,
|titlematch=%
|titlematch=%
}}
}}
|IAbility={{#dpl:
|XX.*?XX}}
|mode=userformat
|includepage={Image}:1,{IAbility}.dpl
|uses=Template:IAbility
|category={{{category|Alpha Incarnate Abilities}}}
|linksto={{PAGENAME}}
|distinct=strict
|namespace=
|allowcachedresults=true
|resultsheader=\n<h3>{{{category}}}</h3>
|suppresserrors=true
|format=<ul style="margin: 0; columns: 26em; list-style: none;">,<li style="position: relative; padding-left: 26px;">,</li>,</ul>
|secseparators=<span style="position: absolute; left: 0; pointer-events: none;">[[File:,|22px|link=|alt=]]</span>,[[%PAGE%|<span style="margin-left: -26px; padding-left: 26px;">%PAGE%</span>]] ,
|titlematch=%
}}
}}

Latest revision as of 09:45, 17 October 2022