Difference between revisions of "Imagetag"
From Sonic Retro
m |
Scarred Sun (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {| style=" | + | <includeonly>{| style="padding: 0 1em; margin: auto;" |
− | | {{ #if: {{{image|}}} | [[Image:{{{image}}}|{{ | + | | 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> |
− | |}<noinclude> | + | | width="{{{textwidth|}}}" style="background-color: #D0D0D0; text-align: left;"| {{ #if: {{{text|}}} | {{{text}}} | This is an image. }} |
− | This template is for transclusion in [[:Category:Image Templates|image templates]]. | + | |}</includeonly><noinclude>{{Imagetag|image=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]]. | ||
==Usage== | ==Usage== | ||
Line 10: | Line 11: | ||
| text= | | text= | ||
| imagewidth= | | imagewidth= | ||
+ | | imagelink= | ||
}} | }} | ||
</pre> | </pre> | ||
− | [[Category:Image Templates| | + | [[Category:Image Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 23:06, 18 March 2012
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= }}