ARK: Survival Evolved Wiki
Advertisement
Template-info Documentation

Lists items (as well as creatures) with their icon.

Append each item or creature name as a single parameter. A quantity of x, x..y, or x-y can be used as the next parameter.

Parameters

Parameter Default Description
iconsize 30px size of the items
columns 1
columnWidth set a desired width for columns. default is 15em
listtype set to 'ol' for a numbered list, 'none' for list without bullets
showQuantityOne false set to true to also show '1 ×' if a quantity of 1 is given
showQuantityAsPerCent false set to true to also show e.g. '50%' if a quantity of 0.5 is given
noDlcIcon set to 1 to hide the DLC-/mod-icons
mod if set, assumes that each item in the list is a part of the specified mod, automatically adding the namespace prefix at runtime

Usage / Examples

{{ItemList|Ankylosaurus|Thatch}}
{{ItemList|iconsize=50px|Argentavis|Quetzal|Pteranodon}}
{{ItemList|iconsize=20px|columns=2|Thatch|Wood|Raw Meat|Raw Prime Meat|Dodo|Mesopithecus|Wooden Door}}
{{ItemList|iconsize=20px|columnWidth=20em|Thatch|Wood|Raw Meat|Raw Prime Meat|Dodo|Mesopithecus|Wooden Door}}
{{ItemList|listtype=ol|Berries|Rockarrot|Longrass}}
{{ItemList|listtype=none|Berries|Sulfur (Scorched Earth)|Clay (Primitive Plus)}}
{{ItemList|listtype=none|noDlcIcon=1|Berries|Sulfur (Scorched Earth)|Clay (Primitive Plus)}}
{{ItemList|Ankylosaurus|1|Thatch|10..20}}
{{ItemList|showQuantityOne=true|Ankylosaurus|1|Thatch|10-20}}
{{ItemList|showQuantityAsPerCent=true|Cooking Pot|1|Refining Forge|0.5}}

Displaying a comma-delimited array from a data-module:

{{ItemList|columnWidth=20em|{{Dv|Pteranodon|canDragCreatures}}}}

local p = {}
function p.itemlist( f )
  local args = f:getParent().args
  local itemList, iconsize, columns, indent, listindent = {}, '30px', 1, 0, 0

  if args.iconsize ~= nil then
    iconsize = args.iconsize
  end
  if args.columns ~= nil then
    columns = args.columns
  end
  if args.listindent ~= nil then
    listindent = args.listindent
  end

  for _,item in ipairs(args) do
    -- get indentation
    indent = 0
    while string.sub(item,1,1) == '*' do
      item = string.sub(item,2)
      indent = indent + 1
    end
    if string.len(item)>0 then
      table.insert(itemList, string.rep('*',indent)..'* [[File:'..item..'.png|'..iconsize..']] [['..item..']]')
    end
  end
  return '<div style="column-count:'..columns..';-moz-column-count:'..columns..';-webkit-column-count:'..columns..';margin-left:'..1.6*listindent..'em">\n'..table.concat(itemList, '\n')..'\n</div>'
end
return p
Advertisement