Difference between revisions of "Template:TFAIMAGE"

m
m
Line 1: Line 1:
<div style="float: left; margin: 0.5em 0.9em 0.4em 0em; {{#switch:{{lc:{{{border|}}}}}|=|yes|border=border: 1px solid #DDD;|#default=border: {{{border}}};}}">[[File:{{{1}}}|{{{2}}}|{{#if:{{{size}}}|{{{size|200px}}}|100px}}]]</div><noinclude>
+
<div style="float: left; margin: 0.5em 0.9em 0.4em 0em; {{#switch:{{lc:{{{border|}}}}}|=|yes|border=border: 1px solid #DDD;|#default=border: {{{border}}};}}">[[File:{{{1}}}|{{{2}}}|{{#if:{{{size}}}|{{{size|100px}}}|100px}}]]</div><noinclude>
  
 
{{Documentation}}
 
{{Documentation}}
 
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Revision as of 14:09, 3 January 2015

[[File:{{{1}}}|{{{2}}}|100px]]
50px Template documentation[view] [edit] [history] [purge]

Usage

Used to set the standard image formatting for the TFA. {{TFAIMAGE| NAME OF FILE (without "File:" prefix | Brief caption}}

e.g. {{TFAIMAGE|Phelekezela-Mphoko.jpg|Phelekezela Mphoko}} produces

Phelekezela-Mphoko

To change the size from the default 100px e.g. for a landscape-orientated image, add |size= e.g. {{TFAIMAGE|Oliver-mtukudzi.jpg|Oliver "tuku" Mtukudzi|size=133px}} produces

Oliver "tuku" Mtukudzi

To add a border round the image, add |border= e.g. {{TFAIMAGE|Gertie.jpg|Gertie the Dinosaur|border=yes} produces

Troutbeck Inn lake