Smugmug extension for MediaWiki: Difference between revisions

From Robupixipedia
Jump to navigationJump to search
(New page: == 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: <code><nowiki><smugmug>{id}|{t...)
 
m (→‎Syntax: wrapped <code> around "album")
Line 9: Line 9:


*<code>{id}</code> is required
*<code>{id}</code> is required
*<code>{type}</code> can be <code>thumb</code>, <code>thumbnail</code>, <code>frame</code> or <code>album</code>: Controls how the image is formatted.  album means <code>{id}</code> is the id of an album
*<code>{type}</code> can be <code>thumb</code>, <code>thumbnail</code>, <code>frame</code> or <code>album</code>: Controls how the image is formatted.  <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>Ti</code>, <code>Th</code>, <code>S</code>, <code>M</code>, <code>L</code>, <code>O</code>
*<code>{size}</code> can be <code>Ti</code>, <code>Th</code>, <code>S</code>, <code>M</code>, <code>L</code>, <code>O</code>

Revision as of 18:31, 31 October 2007

Syntax

Based on the basic syntax for images in a wiki, the full syntax for displaying an image 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 be thumb, thumbnail, frame or album: Controls how the image is formatted. album means {id} is the id of an album
  • {location} can be left, right, center, none: Controls the alignment of the image(s) on the page
  • {size} can be Ti, Th, S, M, L, O
  • {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.

The option given as attributes will override options between the tags.