• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Component

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Item

This template extracts a given component from a given item.

Usage

{{Component|Item|ParameterName}}

Note: If you need to extract multiple components of a large item, consider using {{Format item}} instead of multiple calls to {{Component}}, because each call to {{Component}} requires unpacking of the entire item, which may be costly.

Examples

Markup Renders as
{{Component | {{Item|Alice|Bob|best=Eve}} | 1}}

Alice

{{Component | {{Item|Alice|Bob|best=Eve}} | best}}

Eve

The above documentation is transcluded from Template:Component/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Component&oldid=9543"
Categories:
  • Lua-based templates
  • Wikipedia formatting and function templates
Last edited on 13 December 2015, at 21:34

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 13 December 2015, at 21:34.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop