Difference between revisions of "Imagetag"
From Retro CDN
Line 1: | Line 1: | ||
<includeonly>{| style="padding: 0 1em; margin: auto;" | <includeonly>{| style="padding: 0 1em; margin: auto;" | ||
− | | style="background-color: #99CAE5;"| <center>{{ #if: {{{image|}}} | [[ | + | | style="background-color:#99CAE5; width:128px; text-align:center;"| <center>{{ #if: {{{image|}}} | [[File:{{{image|}}}|64px|{{#if:{{{imagelink|}}}|link={{{imagelink|}}}}}]] | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}|[[Category:Image templates lacking an icon|{{PAGENAME}}]]|}} }}</center> |
− | | | + | | style="background-color:#C9E0EF; text-align:left;"| {{ #if: {{{text|}}} | {{{text|}}} | This is an image. }} |
− | |}</includeonly><noinclude>{{Imagetag|image=SmokingPipe.png | + | |}</includeonly><noinclude>{{Imagetag|image=SmokingPipe.png|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 | + | 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 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 10: | ||
| image= | | image= | ||
| text= | | text= | ||
− | |||
| imagelink= | | imagelink= | ||
}} | }} | ||
</pre> | </pre> | ||
− | [[Category:Image templates | + | [[Category:Image templates]]</noinclude> |
Latest revision as of 13:41, 29 September 2020
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 a <div> tag unless necessary. It was originally created (and thus was named) for transclusion in image templates.
Usage
{{Imagetag | image= | text= | imagelink= }}