Wikipedia:Wikipedia Signpost/Templates/Inline image/doc
{{Documentation subpage}}
This image is for Signpost images. Usage is documented at {{tl|Signpost draft helper}}, along with other such templates. Here is the section of that template pertaining to images:
;Sidebar images
To put an image in your article, use the following code
|image=
|size=300px
|alt=Placeholder alt text
|caption=CAPTION
|fullwidth={{{fullwidth|no}}}
}}
{{clear}}
{{#ifeq:{{{fullwidth|no}}}|no|
{{Wikipedia:Wikipedia Signpost/Templates/Filler image-v2
|image=
|size=300px
|alt=Placeholder alt text
|caption=CAPTION
|fullwidth=no
}}
|
{{Wikipedia:Wikipedia Signpost/Templates/Filler image-v2
|image=
|size=300px
|alt=Placeholder alt text
|caption=CAPTION
|fullwidth=yes
}}
}}
This will create the file on the right. Keep the 300px in most cases. If writing a 'full width' article, change {{para|fullwidth|no}} to {{para|fullwidth|yes}}.
;Inline images
Placing
|image=
|size=300px
|align=center
|alt=Placeholder alt text
|caption=CAPTION
}}
will instead create an inline image like below
{{Wikipedia:Wikipedia Signpost/Templates/Inline image
|image=
|size=300px
|align=center
|alt=Placeholder alt text
|caption=CAPTION
}}
You can add the capcenter
parameter to make the caption box centered (do this if you want it to be centered on a fullwidth page; it sets the div of the caption to margin: 0 auto
.)
|image=
|size=300px
|align=center
|alt=Placeholder alt text
|caption=CAPTION
|capcenter=yes
}}
will instead create an inline image like below
{{Wikipedia:Wikipedia Signpost/Templates/Inline image
|image=
|size=300px
|align=center
|alt=Placeholder alt text
|caption=CAPTION
|capcenter=yes
}}
= Technical =
This template uses two CSS classes, which are styled by Wikipedia:Wikipedia_Signpost/Templates/master.css and Wikipedia:Wikipedia_Signpost/Templates/external.css.
- signpost-inline-image
::Image wrapper, contains the iumage itself.
- signpost-inline-image-caption
::Caption -- warning! this contains inline styles in the template still! because it parses template params (This can be fixed in theory)
}}