Template:IncarnateList/query: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
m (delete extra whitespace)
(I think templates can be combined)
Line 1: Line 1:
{{#dplvar:set|category|{{{category}}}}}
{{#dplvar:set|category|{{{category}}}}}{{#dpl:
{{#switch:{{{type|}}}
|IComponent={{#dpl:
|mode=userformat
|mode=userformat
|includepage={Image}:1,{IComponent}.dpl
|includepage={Image}:1,{IAbility}.dpl,{IComponent}.dpl
|uses=Template:IComponent
|uses=Template:IAbility|Template:IComponent
|category={{{category|}}}
|category={{#dplvar:category}}
|linksto={{PAGENAME}}
|linksto={{PAGENAME}}
|distinct=strict
|distinct=strict
Line 13: Line 11:
|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: 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>]],
|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=%
|titlematch=%
}}
|IAbility={{#dpl:
|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>{{#dplvar: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=%
}}
}}
}}

Revision as of 18:53, 12 May 2022