Difference between revisions of "Imagetag"
From Sega Retro
Line 1: | Line 1: | ||
<includeonly>{| align="{{#if:{{{align|}}}|{{{align}}}|center}}" style="padding: 0 1em;" | <includeonly>{| align="{{#if:{{{align|}}}|{{{align}}}|center}}" style="padding: 0 1em;" | ||
− | | style="background-color: #C0C0C0; width:{{{imagewidth|}}}px; min-width:{{{imagewidth|}}}px;"| <center>{{ #if: {{{image|}}} | [[ | + | | style="background-color: #C0C0C0; width:{{#expr:{{{imagewidth|}}} * 2}}px; min-width:{{#expr:{{{imagewidth|}}} * 2}}px;"| <center>{{ #if: {{{image|}}} | [[File:{{{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: #D0D0D0; 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.}} |
Revision as of 14:32, 19 October 2018
![]() |
Ceci n'est pas un modèle. |
This template is for anything that needs to be in a box styled as Sega 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= }}