Template:Icon list/doc
Jump to navigation
Jump to search
This template uses one or more modules written in the Lua programming language.
For more information, see Wikipedia:Lua or the Lua reference manual on mediawiki.org. Modules used include: Icon list.
Creates a list of {{Icon}}
.
Related templates, modules, and tables:
- Uses Module:Icon list
Syntax
{{Icon list
|List of items. Separated by semi-colons (;) Use Asterisk (*) to note quantity, use (/1) to note super quality.
|display = How the output should be displayed, default is stacked. (optional)
|remove = Removing various options. (optional)
|col = If true, puts the results in columns that will change with screen size. Not available for inline items.
Display Options -
- Default/Stacked = Each item is on its own line, stacked on top of each other.
- UL or Bullet = Puts each item in a bulleted list
- Checkbox = Puts each item on its own line with a checkbox in front of it, that the user can use to check off items.
- Inline = Each item is listed right next to the previous with a space in between.
- Inline and = Each item is listed in a comma-separated list, where the last item in the list has "and" before it.
- Inline or = Each item is listed in a comma-separated list, where the last item in the list has "or" before it.
Remove Options -
- Text = Each item will only display the icon of the item, in the designated format.
- Link = Each item will display the icon and the name of the item, but not link to that item.
Examples
Default/Stacked
{{Icon list|Corn*2; Blueberries/1; Garden bot«Before Text; Common meteorite (Desert Dunes)»After text}}
UL/Bullet
{{Icon list|Corn*2-5; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=ul}}
Checkbox
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=checkbox}}
Bullet (with columns)
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes);Grapes/1;Silver ore; Ancient coins; Sunstone;Tomato;Hardened graphite;Fruit bar;Applesauce;Fool's gold;Amber resin;Fossil imprint|display=ul|col=true}}
Checkbox (with columns)
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes);Grapes/1;Silver ore; Ancient coins; Sunstone;Tomato;Hardened graphite;Fruit bar;Applesauce;Fool's gold;Amber resin;Fossil imprint|display=checkbox|col=true}}
Inline
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=inline}}
Inline and
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=inline and}}
, , , and
Inline or
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=inline or}}
, , , or
Remove Text
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=inline|remove=text}}
Remove Link
{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|remove=link}}