Difference between revisions of "Template:FileCaption/doc"
Jump to navigation
Jump to search
m |
m |
||
| Line 1: | Line 1: | ||
<small>[[Template:Img Title|Template]]</small> Experimenting with an image at the top right of the page, on the same line as the Page Title. | <small>[[Template:Img Title|Template]]</small> 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) <nowiki><h1></nowiki> lineheight (1.3) and (b) <nowiki><h1></nowiki> top margin (0). An image taller than 50px is obscured by the Search box. | ||
<pre> | <pre> | ||
Path is set to http://wikipolitiks.local/Images/ | Path is set to http://wikipolitiks.local/Images/ | ||
| Line 8: | Line 10: | ||
{{Img Title | {{Img Title | ||
|image-name.png - the filename of the image | |image-name.png - the filename of the image | ||
| − | | | + | |50 - width |
| − | | | + | |50 - height |
}} | }} | ||
</pre> | </pre> | ||
=== Example === | === Example === | ||
| − | <pre>{{img|Influencers.svg| | + | <pre>{{img|Influencers.svg|50|50}}</pre> |
Gives: | Gives: | ||
| − | {{img|Influencers.svg| | + | {{img|Influencers.svg|50|50}} |
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 11:20, 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|Influencers.svg|50|50}}
Gives: