Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Image"

From PCGamingWiki, the wiki about fixing PC games
(Created page with "[[File:{{{1}}}|290px|thumb|{{{2|Subtitle}}}]]")
 
m (add error div and use Category:Invalid template usage (Image))
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:{{{1}}}|290px|thumb|{{{2|Subtitle}}}]]
+
<includeonly><div class="article-image">
 +
  <div class="article-image-pic">[[File:{{{image|{{{1}}}}}}|300px|alt={{{2}}}]]</div>
 +
  <div class="article-image-text">{{#if:{{{2|}}}|{{{2}}}|<div title="Error: caption required" class="svg-icon svg-25 tickcross-error"></div>[[Category:Invalid template usage (Image)]][[Category:Invalid template usage ({{#var:section}})]]}}</div>
 +
</div>{{#ifexist:File:{{{1|}}}|{{#vardefine:screenshots|true}}|[[Category:Invalid template usage (Image)]][[Category:Invalid template usage ({{#var:section}})]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 20:23, 31 August 2019

Documentation for the above template (sometimes hidden from view).

Description

Used to embed individual images on pages. Will automatically float to the right side if displayed on non-mobile devices.

Syntax

  • {{Image|File.png|Caption}} to embed the image with an appropriate caption.
  • Do not include the File: prefix in the image name as it is already included with the template.
A caption is required!