Difference between revisions of "Imagetag"

From Sega Retro

(trying)
Line 1: Line 1:
 
<includeonly>{| style="padding: 0 1em; margin: auto;"
 
<includeonly>{| style="padding: 0 1em; margin: auto;"
| style="background-color: #C0C0C0;"| <center>{{ #if: {{{image|}}} | [[Image:{{{image}}}|center|{{{imagewidth|}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image Templates Lacking an Icon|{{PAGENAME}}]]|}} }}</center>
+
| style="background-color: #C0C0C0;"| <center>{{ #if: {{{image|}}} | [[Image:{{{image}}}|center|{{{imagewidth|}}}|link={{{imagelink}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image Templates Lacking an Icon|{{PAGENAME}}]]|}} }}</center>
 
| style="background-color: #D0D0D0; text-align: left;"| {{ #if: {{{text|}}} | {{{text}}} | This is an image. }}
 
| style="background-color: #D0D0D0; text-align: left;"| {{ #if: {{{text|}}} | {{{text}}} | This is an image. }}
 
|}</includeonly><noinclude>{{Imagetag|image=SmokingPipe.png|imagewidth=128|text=Ceci n'est pas un modèle.}}
 
|}</includeonly><noinclude>{{Imagetag|image=SmokingPipe.png|imagewidth=128|text=Ceci n'est pas un modèle.}}

Revision as of 17:45, 4 October 2011

link={{{imagelink}}}
Ceci n'est pas un modèle.

This template is for anything that needs to be in a box styled as Sega Retro itself is styled; it should be used instead of Box or a <div> tag unless necessary. It was originally created (and thus was named) for transclusion in image templates.

Usage

{{Imagetag
| image=
| text=
| imagewidth=
}}