Difference between revisions of "Template:ShowTargets"

From Istaria Lexica

 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>==Target mobs==
+
<includeonly>{{#arraydefine:targets|{{#show:{{FULLPAGENAME}}|?Target|+order=n-asc|valuesep=$?|limit=99999}}|$?}}
{{#arraydefine:targets|{{#show: {{PAGENAME}}|?Target|format=list|valuesep=$_}}|$_|sort=asc}}
+
{{#ifexpr:{{#arraysize:targets}} > 0|<nowiki/>
<div style="display:inline-block; column-count: {{#ifeq:{{#expr:{{#arraysize:targets}}>=16}}|1|3|{{#ifeq:{{#expr:{{#arraysize:targets}}>=8}}|1|2|1}}}}>{{#ifeq:{{#expr:{{#arraysize:targets}}>0}}|1|{{#arrayprint:targets|<br />}}|No targets.}}</div></includeonly><noinclude>{{Clr}}{{Documentation}}[[Category:Templates]]</noinclude>
+
==Target mobs==
 +
<div style="display:inline-block; {{ColumnCounter|{{#arraysize:targets}}}}">{{#arrayprint:targets|<br />}}</div>}}</includeonly><noinclude>{{Documentation}}[[Category:List Templates]][[Category:Semantic Mediawiki Templates]]</noinclude>

Latest revision as of 19:24, 21 October 2022

Template documentation (for the template shown above, sometimes hidden or invisible)

Description[edit]

Used to show target creatures in quest details. To add mobs to the list, use Template:AddTarget.

Example[edit]

{{ShowTargets}}
Visit Template:ShowTargets/doc to edit this text. (How to: document correctly)