Difference between revisions of "Imagetag"
From Sonic Retro
Line 2: | Line 2: | ||
|{{ #if: {{{image|}}} | [[Image:{{{image}}}|center|link={{{imagelink|}}}|{{{imagewidth|}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image templates lacking an icon|{{PAGENAME}}]]|}} }} | |{{ #if: {{{image|}}} | [[Image:{{{image}}}|center|link={{{imagelink|}}}|{{{imagewidth|}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image templates lacking an icon|{{PAGENAME}}]]|}} }} | ||
| width="{{{textwidth|}}}" | {{ #if: {{{text|}}} | {{{text}}} | This is an image. }} | | width="{{{textwidth|}}}" | {{ #if: {{{text|}}} | {{{text}}} | This is an image. }} | ||
− | |}<noinclude>{{Imagetag|image=Sonic Retro emblem.svg|imagewidth=128|text=Ceci n'est pas un rétro.}} | + | |}{{BadNameCheck|{{PAGENAME}}}}<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]]. | ||
Revision as of 16:18, 27 March 2018
This is an image. |
|
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= }}