Anonymous

RECOUP/site/User/Bjoern/sandpit: Difference between revisions

From OER in Education
m
Line 47: Line 47:
For images this is the same, Media:...jpg links to the (full res)image, while Image:...jpg links to the Image page.  
For images this is the same, Media:...jpg links to the (full res)image, while Image:...jpg links to the Image page.  
*Link to full size image directly (useful filesize): {{#filesize:Media:Ground_rules.jpg|linkfull showparams}}
*Link to full size image directly (useful filesize): {{#filesize:Media:Ground_rules.jpg|linkfull showparams}}
*Link to thumb directly: {{#filesize:Media:Ground_rules.jpg|50x100|linkfull showparams}} - doesn't make sense, see below.
*Link to image page directly (less useful filesize): {{#filesize:Media:Ground_rules.jpg|linkfull showparams}}
*Link to page: {{#filesize:Image:Ground_rules.jpg|50x100|linkfull showparams}}.
 
Note how 'linkfull' doesnt produce relevant information in all cases - it needs fixing in the extension. For now, you can specify 'thumb', the extension provides a link to the thumbnail (as an external link). (Media and Image have same effect.) Examples:
If you specify a thumb size, we need to link out to the thumb. (Media and Image have same effect.) You can do it like this:
*{{#filesize:Media:Ground_rules.jpg|50x100|linkthumb showparams}}
*{{#filesize:Media:Ground_rules.jpg|50x100|linkthumb showparams}}
*{{#filesize:Image:Ground_rules.jpg|50x100|linkthumb showparams}}
*{{#filesize:Image:Ground_rules.jpg|50x100|linkthumb showparams}}
If you specify linkfull and and thumb size, we change the linkfull to linkthumb (giving the size of the thumb and linking to the full image makes no sense:
*Link to thumb directly: {{#filesize:Media:Ground_rules.jpg|50x100|linkfull showparams}}
*Link to page: {{#filesize:Image:Ground_rules.jpg|50x100|linkfull showparams}}


= Other experiments =
= Other experiments =