Actions

Template

Difference between revisions of "Imagetag"

From Sonic Retro

m (Text replace - "Category:Image Templates" to "Category:Image templates")
Line 1: Line 1:
 
<includeonly>{| style="padding: 0 1em; margin: auto;"
 
<includeonly>{| style="padding: 0 1em; margin: auto;"
| class="toc"| <center>{{ #if: {{{image|}}} | [[Image:{{{image}}}|center|link={{{imagelink|}}}|{{{imagewidth|}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image Templates Lacking an Icon|{{PAGENAME}}]]|}} }}</center>
+
| class="toc"| <center>{{ #if: {{{image|}}} | [[Image:{{{image}}}|center|link={{{imagelink|}}}|{{{imagewidth|}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image templates Lacking an Icon|{{PAGENAME}}]]|}} }}</center>
 
| width="{{{textwidth|}}}" class="toc"| {{ #if: {{{text|}}} | {{{text}}} | This is an image. }}
 
| width="{{{textwidth|}}}" class="toc"| {{ #if: {{{text|}}} | {{{text}}} | This is an image. }}
 
|}</includeonly><noinclude>{{Imagetag|image=Sonic Retro emblem.svg|imagewidth=128|text=Ceci n'est pas un rétro.}}
 
|}</includeonly><noinclude>{{Imagetag|image=Sonic Retro emblem.svg|imagewidth=128|text=Ceci n'est pas un rétro.}}
This template is for anything that needs to be in a box styled as Sonic Retro 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 Sonic Retro 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]].
  
 
==Usage==
 
==Usage==
Line 15: Line 15:
 
</pre>
 
</pre>
  
[[Category:Image Templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Image templates|{{PAGENAME}}]]</noinclude>

Revision as of 19:34, 2 June 2012

Sonic Retro emblem.svg
Ceci n'est pas un rétro.

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