Difference between revisions of "Template:Component"
Jump to navigation
Jump to search
imported>Petr Matas (rv.) |
imported>Petr Matas (rv.) |
||
Line 1: | Line 1: | ||
− | {{#invoke:Item|component|{{{1}}}|{{{2}}}}}<noinclude> | + | {{#invoke:Item|component|{{{1}}}|2={{{2}}}}}<noinclude> |
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |
Latest revision as of 02:34, 14 December 2015
![]() | This template uses Lua: |
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. Please add categories to the /doc subpage. Subpages of this template. |