Template:Image/doc

From Gigantic Wiki
Description
This template will add a single image file. It acts as replacement for usual wikitext image syntax, offering better formatting on both desktop and mobile screens, in latter case particularly it will center image and thus won't break the text or other elements surrounding it. It was made for cases when image is given left or right alignment (float) in the text.
Template uses Extension:CSS for styling.
Syntax
Type: {{image|<filename>|<width>|<left or right alignment>|<caption>|<link>}}
  • Filename, width and alignment are obligatory parameters
  • Normally clicking on image will redirect to its file page or open it in media viewer (if enabled), the link parameter will:
    • redirect to another page if provided
    • make image non-clickable if no value is given
  • If caption is not needed but link is, leave 4th position blank: ...<alignment>||<link>}}
Usage example
Code:
{{image|Skin Aisling Eternal Master.png|250px|left||Aisling/Skins}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
{{image|Fortune_cards.png|130px|right|Lorem ipsum dolor sit amet ...|no}}
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Results:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.


Lorem ipsum dolor sit amet ...

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.