Difference between revisions of "Template:FileCaption/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 16: Line 16:
  
 
=== Example ===
 
=== Example ===
−
<pre>{{img|Influencers.svg|50|50}}</pre>
+
<pre>{{Img Title|Influencers.svg|50|50}}</pre>
 
Gives:
 
Gives:
−
{{img|Influencers.svg|50|50}}
+
{{Img Title|Influencers.svg|50|50}}
  
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>

Revision as of 11:46, 18 May 2018

Template Experimenting with an image at the top right of the page, on the same line as the Page Title.

How big the image can be is determined by (a) <h1> lineheight (1.3) and (b) <h1> top margin (0). An image taller than 50px is obscured by the Search box.

Path is set to http://wikipolitiks.local/Images/

Usage

{{Img Title
|image-name.png  - the filename of the image
|50              - width
|50              - height
}}

Example

{{Img Title|Influencers.svg|50|50}}

Gives: Template:Img Title