Template:Image: Difference between revisions
Jump to navigation
Jump to search
imported>Sekoia m (adding missed /noinclude tag) |
imported>Sekoia mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><section begin={{{2|Image}}} />[[Image:{{{1}}}]]<section end={{{2|Image}}} /></includeonly><noinclude> | <includeonly><section begin={{{2|Image}}} />[[Image:{{{1}}}]]<section end={{{2|Image}}} /></includeonly><noinclude>__NOTOC__ | ||
__NOTOC__ | |||
==Overview== | ==Overview== | ||
Revision as of 07:44, 11 May 2007
Overview
This template displays an image and wraps it in DPL section label tags so that it can be easily transcluded later. By default, the section label will be "Image", but this can be overridden.
This is particularly useful because articles on items (such as badges or salvage) often contain an image that represents the article, but the image often isn't isolated in a section of its own. This template allows these images to be easily extracted for use in other templates or pages.
Usage
- {{Image|Image.png}} will display the image Image.png, wrapping it in a section named "Image".
- {{Image|Image.png|Name}} will display the image Image.png, wrapping it in a section named "Name".
Examples
Template Call | Visible Result | Label (not visible) |
---|---|---|
{{Image|Salvage Brass.png}} | Image | |
{{Image|Salvage Brass.png|Brass Salvage}} | Brass Salvage |