• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Component

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Item

This template extracts a given component from a given item.

Usage

edit
{{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

edit

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://en.wikipedia.org/w/index.php?title=Template:Component&oldid=695148745"
Last edited on 14 December 2015, at 02:34

Languages

    • Bahasa Indonesia
    • Íslenska
    • ਪੰਜਾਬੀ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 14 December 2015, at 02:34 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop