Actions

Template

Difference between revisions of "Imagetag"

From Retro CDN

(Created page with "<includeonly>{| style="padding: 0 1em; margin: auto;" | style="background-color: #C0C0C0;"| <center>{{ #if: {{{image|}}} | Image:{{{image}}}|center|link={{{imagelink|}}}|{{{...")
 
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|link={{{imagelink|}}}|{{{imagewidth|}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image templates lacking an icon|{{PAGENAME}}]]|}} }}</center>
+
| style="background-color: #99CAE5;"| <center>{{ #if: {{{image|}}} | [[Image:{{{image}}}|center|link={{{imagelink|}}}|{{{imagewidth|}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image templates lacking an icon|{{PAGENAME}}]]|}} }}</center>
| width="{{{textwidth|}}}" style="background-color: #D0D0D0; text-align: left;"| {{ #if: {{{text|}}} | {{{text}}} | This is an image. }}
+
| width="{{{textwidth|}}}" style="background-color: #C9E0EF; 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.}}
 
This template is for anything that needs to be in a box styled as Retro CDN itself is styled; it should be used instead of [[:Template:Box|Box]] or a <tt><nowiki><div></nowiki></tt> tag unless necessary. It was originally created (and thus was named) for transclusion in [[:Category:Image templates|image templates]].
 
This template is for anything that needs to be in a box styled as Retro CDN itself is styled; it should be used instead of [[:Template:Box|Box]] or a <tt><nowiki><div></nowiki></tt> tag unless necessary. It was originally created (and thus was named) for transclusion in [[:Category:Image templates|image templates]].

Revision as of 14:13, 25 July 2015

128
Ceci n'est pas un modèle.

This template is for anything that needs to be in a box styled as Retro CDN 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=
| imagelink=
}}