Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:Image"

From Paragon Wiki Archive
Jump to: navigation, search
m
(removing optional second param)
Line 1: Line 1:
<includeonly><section begin={{{2|Image}}} />[[Image:{{{1}}}]]<section end={{{2|Image}}} /></includeonly><noinclude>__NOTOC__
+
<includeonly><section begin=Image />[[Image:{{{1}}}]]<section end=Image /></includeonly><noinclude>__NOTOC__
 
==Overview==
 
==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 template displays an image and wraps it in DPL section label tags so that it can be easily transcluded later. The section label will be "Image".
  
 
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.
 
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.
Line 9: Line 9:
  
 
* <nowiki>{{Image|Image.png}}</nowiki> will display the image Image.png, wrapping it in a section named "Image".
 
* <nowiki>{{Image|Image.png}}</nowiki> will display the image Image.png, wrapping it in a section named "Image".
* <nowiki>{{Image|Image.png|Name}}</nowiki> will display the image Image.png, wrapping it in a section named "Name".
 
  
== Examples ==
+
== Example ==
 
{| class=wikitable
 
{| class=wikitable
 
|-
 
|-
Line 17: Line 16:
 
|-
 
|-
 
| <nowiki>{{Image|Salvage Brass.png}}</nowiki> || {{Image|Salvage Brass.png}} || Image
 
| <nowiki>{{Image|Salvage Brass.png}}</nowiki> || {{Image|Salvage Brass.png}} || Image
|-
 
| <nowiki>{{Image|Salvage Brass.png|Brass Salvage}}</nowiki> || {{Image|Salvage Brass.png|Brass Salvage}} || Brass Salvage
 
 
|}</noinclude>
 
|}</noinclude>

Revision as of 08:04, 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. The section label will be "Image".

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".

Example

Template Call Visible Result Label (not visible)
{{Image|Salvage Brass.png}} File:Salvage Brass.png Image