Smugmug extension for MediaWiki: Difference between revisions
From Robupixipedia
Jump to navigationJump to search
(added idtype) |
(→Syntax: reversed the defaults on names of sizes. basically the full names are preferred, but short names are allowed) |
||
Line 12: | Line 12: | ||
*<code>{idtype}</code> can be <code>image</code>, or <code>album</code>: <code>album</code> means <code>{id}</code> is the id of an album. | *<code>{idtype}</code> can be <code>image</code>, or <code>album</code>: <code>album</code> means <code>{id}</code> is the id of an album. | ||
*<code>{location}</code> can be <code>left</code>, <code>right</code>, <code>center</code>, <code>none</code>: Controls the alignment of the image(s) on the page. | *<code>{location}</code> can be <code>left</code>, <code>right</code>, <code>center</code>, <code>none</code>: Controls the alignment of the image(s) on the page. | ||
*<code>{size}</code> can be <code> | *<code>{size}</code> can be <code>Tiny</code>, <code>Thumbnail</code>, <code>Square</code>, <code>Medium</code>, <code>Large</code>, <code>Original</code>, or their short name counterparts: <code>Ti</code>, <code>Th</code>, <code>S</code>, <code>M</code>, <code>L</code>, <code>O</code>. | ||
*<code>{caption text}</code> is the caption text | *<code>{caption text}</code> is the caption text | ||
Revision as of 00:05, 1 November 2007
Syntax
Based on the basic syntax for images in a wiki, the full syntax for displaying an image from smugmug is:
<smugmug>{id}|{type}|{location}|{size}|{caption}</smugmug>
OR
<smugmug id="{id}" type="{type}" location="{location}" size="{size}" caption="{caption}"></smugmug>
{id}
is required.{type}
can bethumb
,thumbnail
, orframe
. This controls how the image is formatted.{idtype}
can beimage
, oralbum
:album
means{id}
is the id of an album.{location}
can beleft
,right
,center
,none
: Controls the alignment of the image(s) on the page.{size}
can beTiny
,Thumbnail
,Square
,Medium
,Large
,Original
, or their short name counterparts:Ti
,Th
,S
,M
,L
,O
.{caption text}
is the caption text
The options can be given in any order. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting, I hope.
Caption text will default to the caption on Smugmug, or the keywords on Smugmug if the caption does not exist. The options given as attributes will override options between the tags.