Template:Icon list/doc

From Little-Known Galaxy Wiki
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:

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}}
Corn.png Corn × 2
Garden bot.png Before Text Garden bot

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}}

Corn.png Corn × 2 Blueberries.png Blueberries Garden bot.png Garden bot Common meteorite (Desert Dunes).png Common meteorite (Desert Dunes)

Inline and

{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=inline and}}

Corn.png Corn × 2, Blueberries.png Blueberries, Garden bot.png Garden bot, and Common meteorite (Desert Dunes).png Common meteorite (Desert Dunes)

Inline or

{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=inline or}}

Corn.png Corn × 2, Blueberries.png Blueberries, Garden bot.png Garden bot, or Common meteorite (Desert Dunes).png Common meteorite (Desert Dunes)

Remove Text

{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|display=inline|remove=text}}

Corn.png × 2 Blueberries.png Garden bot.png Common meteorite (Desert Dunes).png

Remove Link

{{Icon list|Corn*2; Blueberries/1; Garden bot; Common meteorite (Desert Dunes)|remove=link}}
Corn.pngCorn  × 2
Blueberries.pngBlueberries
Garden bot.pngGarden bot
Common meteorite (Desert Dunes).pngCommon meteorite (Desert Dunes)