Smugmug extension for MediaWiki: Difference between revisions
From Robupixipedia
Jump to navigationJump to search
(punctuation size options, caption text default) |
(→Syntax) |
||
Line 1: | Line 1: | ||
== Syntax == | == Syntax == | ||
Based on the [http://www.mediawiki.org/wiki/Help:Images#Syntax basic syntax for images in a wiki], the full syntax for displaying an image is: | Based on the [http://www.mediawiki.org/wiki/Help:Images#Syntax basic syntax for images in a wiki], the full syntax for displaying an image from smugmug is: | ||
<code><nowiki><smugmug>{id}|{type}|{location}|{size}|{caption}</smugmug></nowiki></code> | <code><nowiki><smugmug>{id}|{type}|{location}|{size}|{caption}</smugmug></nowiki></code> |
Revision as of 18:36, 31 October 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
,frame
oralbum
: Controls how the image is formatted.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 beTi
,Th
,S
,M
,L
,O
, or their full name counterparts:Tiny
,Thumbnail
,Square
,Medium
,Large
,Original
.{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.