Difference between revisions of "Template:Thumb"

From Chumby Wiki
Jump to: navigation, search
(wrap actual template in includeonly, add TODO notes)
 
Line 1: Line 1:
http://files.chumby.com/wikiimages/deviceimages/{{{1}}}_small.jpg<noinclude> Call via thumb|THUMBNAME where THUMBNAME can be one of:
+
<includeonly>http://files.chumby.com/wikiimages/deviceimages/{{{1}}}_small.jpg</includeonly><noinclude>
{| table
+
== Overview ==
! string
+
Thumbnail embedding template for chumby images.
! result
+
 
 +
Invoked via:
 +
  <nowiki>{{thumb|THUMBNAME}}</nowiki>
 +
 
 +
{| table border=1 cellpadding=0 cellspacing=0
 +
! What you type
 +
! What you get
 
|-
 
|-
| falconwing
+
| <nowiki>{{thumb|falconwing}}</nowiki>
 
| {{thumb|falconwing}}
 
| {{thumb|falconwing}}
 
|-
 
|-
| ironforge
+
| <nowiki>{{thumb|ironforge}}</nowiki>
 
| {{thumb|ironforge}}
 
| {{thumb|ironforge}}
 
|-
 
|-
| infocast3.5
+
| <nowiki>{{thumb|infocast3.5}}</nowiki>
 
| {{thumb|infocast3.5}}
 
| {{thumb|infocast3.5}}
 +
|-
 +
| <nowiki>{{thumb|chumby8_black}}</nowiki>
 +
| {{thumb|chumby8_black}}
 
|-
 
|-
 
| etc.
 
| etc.
 
| ...relevant thumbnail...
 
| ...relevant thumbnail...
|}</noinclude>
+
|}
 +
 
 +
TODO: should support "classic" "eight" "one" and "foo" (probably better known codenames?) and offer a thumb of 8 </noinclude>

Latest revision as of 09:38, 16 March 2014

Overview

Thumbnail embedding template for chumby images.

Invoked via:

 {{thumb|THUMBNAME}}
What you type What you get
{{thumb|falconwing}} falconwing_small.jpg
{{thumb|ironforge}} ironforge_small.jpg
{{thumb|infocast3.5}} infocast3.5_small.jpg
{{thumb|chumby8_black}} chumby8_black_small.jpg
etc. ...relevant thumbnail...

TODO: should support "classic" "eight" "one" and "foo" (probably better known codenames?) and offer a thumb of 8