|
|
(24 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <noinclude>{{RECOUP_header|User:Bjoern/sandpit}}</noinclude>= Basic file size= | | <noinclude>{{RECOUP_header|User:Bjoern/sandpit}}</noinclude> |
| | | See http://www.ict4e.net/wiki/Mediawiki_file_size for up to date information. --[[RECOUP/site/User/Bjoern|Bjoern]] 17:52, 14 September 2008 (UTC) |
| For an image: {{#filesize:Image:Ground_rules.jpg}}
| |
| | |
| <nowiki>{{#filesize:Image:Ground_rules.jpg}}</nowiki>
| |
| | |
| For a word document: {{#filesize:Media:Sample Household Consensus Form.doc}}
| |
| | |
| <nowiki>{{#filesize:Media:Sample Household Consensus Form.doc}}</nowiki>
| |
| | |
| = Get file size for a paricular image size =
| |
| | |
| <nowiki>{{#filesize:Image:Ground_rules.jpg|50}}</nowiki>
| |
| | |
| {{#filesize:Image:Ground_rules.jpg|50}} for this image: {{#filesize:Image:Ground_rules.jpg|50|linkthumb}}
| |
| | |
| <nowiki>{{#filesize:Image:Ground_rules.jpg|50x30}}</nowiki>
| |
| | |
| {{#filesize:Image:Ground_rules.jpg|50x30}} for this image: {{#filesize:Image:Ground_rules.jpg|50x30|linkthumb}}
| |
| | |
| <nowiki>{{#filesize:Image:Ground_rules.jpg|500x30}}</nowiki>
| |
| | |
| {{#filesize:Image:Ground_rules.jpg|500x30}} for this image: {{#filesize:Image:Ground_rules.jpg|500x30|linkthumb}}
| |
| | |
| = Specify a size, and help =
| |
| | |
| <nowiki>{{#filesize:Image:Ground_rules.jpg|50x30|help}}</nowiki>
| |
| | |
| {{#filesize:Image:Ground_rules.jpg|50x30|help}}
| |
| | |
| = Specify a size, and provide a preview =
| |
| | |
| {{#filesize:Image:Ground_rules.jpg|50x100|preview showparams}}
| |
| | |
| = Linking and showing the filesize =
| |
| | |
| For pdf files, Media:...pdf and Image:...pdf link to the media, and to the media page:
| |
| *{{#filesize:Media:Sample Household Consensus Form.pdf|linkfull showparams}}
| |
| *{{#filesize:Image:Sample Household Consensus Form.pdf|linkfull showparams}}
| |
| | |
| For images, Media:...jpg links to the (full res)image, while Image:...jpg links to the Image page:
| |
| *{{#filesize:Media:Ground_rules.jpg|50x100|linkfull showparams}}
| |
| *{{#filesize:Image:Ground_rules.jpg|50x100|linkfull showparams}}
| |
| | |
| If you specify 'thumb', the extension provides a link to the thumbnail (as an external link):
| |
| *{{#filesize:Media:Ground_rules.jpg|50x100|linkthumb showparams}}
| |
| *{{#filesize:Image:Ground_rules.jpg|50x100|linkthumb showparams}}
| |
| | |
| = Other experiments =
| |
| | |
| *{{#filesize:Media:Ground_rules.jpg|50x100|showthumb showparams}}
| |
| *{{#filesize:Image:Ground_rules.jpg|50x100|showthumb showparams}}
| |
| | |
| Output useful for api calls in mirroring script (needs further work to give proper serialised output):
| |
| *{{#filesize:Media:Ground_rules.jpg|50x100|serialised showparams}}
| |
| *{{#filesize:Image:Ground_rules.jpg|50x100|serialised showparams}}
| |
| | |
| {{fullurl:Media:Sample Household Consensus Form.pdf}}
| |
| | |
| {{localurl:Media:Sample Household Consensus Form.pdf}}
| |
| <noinclude>{{RECOUP_footer|User:Bjoern/sandpit}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude> | | <noinclude>{{RECOUP_footer|User:Bjoern/sandpit}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude> |