Template:Graphical updates

From RuneRealm Wiki
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Graphical updates/doc. [edit] [history] [purge]
Template:Graphical updates invokes function main in Module:Graphical updates using Lua.

Usage

{{Graphical updates
|img         = <!--  Name of the files used for the first row of images                 (required) -->
|size        = <!--  Size of the images used in the first row                           (optional)  -->
|rev#start   = <!--  Starting date of the historical revision                           (required)  -->
|rev#end     = <!--  Ending date of the historical revision                             (optional)  -->
|rev#img     = <!--  Name of the file used for a specific revision                      (optional)  -->
|rev#size    = <!--  Size of the image used for a specific revision                     (optional)  -->
}}

Quick copy

Loading...
One rowTwo rowsThree rows

{{Graphical updates
|img         = 
|size        = 
|rev1start   = 
|rev2start   = 
}}

{{Graphical updates
|img         = 
|size        = 
|rev1start   = 
|rev1img     =
|rev2start   =
|rev2img     =
}}

{{Graphical updates
|img         = 
|size        = 
|rev1start   = 
|rev2start   = 
|rev3start   =
}}

{{Graphical updates
|img         = 
|size        = 
|rev1start   = 
|rev1img     = 
|rev2start   = 
|rev2img     = 
|rev3start   =
|rev3img     = 
}}

{{Graphical updates
|img         = 
|size        = 
|rev1start   = 
|rev2start   = 
|rev3start   =
|rev4start   =
}}

{{Graphical updates
|img         = 
|size        = 
|rev1start   = 
|rev1img     = 
|rev2start   = 
|rev2img     = 
|rev3start   =
|rev3img     = 
|rev4start   =
|rev4img     =
}}

{{Graphical updates
|img         = 
|midimg      =
|size        =
|midsize     =
|rev1start   = 
|rev2start   = 
}}

{{Graphical updates
|img         = 
|midimg      =
|size        =
|midsize     = 
|rev1start   = 
|rev1img     =
|rev1midimg  =
|rev2start   =
|rev2img     =
|rev2midimg  =
}}

{{Graphical updates
|img         = 
|midimg      =
|size        =
|midsize     =
|rev1start   = 
|rev2start   = 
|rev3start   =
}}

{{Graphical updates
|img         = 
|midimg      =
|size        =
|midsize     = 
|rev1start   = 
|rev1img     =
|rev1midimg  =
|rev2start   =
|rev2img     =
|rev2midimg  =
|rev3start   =
|rev3img     = 
|rev3midimg  =
}}

{{Graphical updates
|img         = 
|midimg      =
|size        =
|midsize     =
|rev1start   = 
|rev2start   = 
|rev3start   =
|rev4start   =
}}

{{Graphical updates
|img         = 
|midimg      =
|size        =
|midsize     = 
|rev1start   = 
|rev1img     =
|rev1midimg  =
|rev2start   =
|rev2img     =
|rev2midimg  =
|rev3start   =
|rev3img     = 
|rev3midimg  =
|rev4start   =
|rev4img     =
|rev4midimg  =
}}

{{Graphical updates
|img         = 
|midimg      =
|lowimg      =
|size        =
|midsize     =
|lowsize     =
|rev1start   = 
|rev2start   = 
}}

{{Graphical updates
|img         = 
|midimg      =
|lowimg      =
|size        =
|midsize     =
|lowsize     =
|rev1start   = 
|rev1img     =
|rev1midimg  =
|rev1lowimg  =
|rev2start   =
|rev2img     =
|rev2midimg  =
|rev2lowimg  =
}}

{{Graphical updates
|img         = 
|midimg      =
|lowimg      =
|size        =
|midsize     =
|lowsize     =
|rev1start   = 
|rev2start   = 
|rev3start   =
}}

{{Graphical updates
|img         = 
|midimg      =
|lowimg      =
|size        =
|midsize     =
|lowsize     =
|rev1start   = 
|rev1img     =
|rev1midimg  =
|rev1lowimg  =
|rev2start   =
|rev2img     =
|rev2midimg  =
|rev2lowimg  =
|rev3start   =
|rev3img     = 
|rev3midimg  =
|rev3lowimg  =
}}

{{Graphical updates
|img         = 
|midimg      =
|lowimg      =
|size        =
|midsize     =
|lowsize     =
|rev1start   = 
|rev2start   = 
|rev3start   =
|rev4start   =
}}

{{Graphical updates
|img         = 
|midimg      =
|lowimg      =
|size        =
|midsize     =
|lowsize     =
|rev1start   = 
|rev1img     =
|rev1midimg  =
|rev1lowimg  =
|rev2start   =
|rev2img     =
|rev2midimg  =
|rev2lowimg  =
|rev3start   =
|rev3img     = 
|rev3midimg  =
|rev3lowimg  =
|rev4start   =
|rev4img     =
|rev4midimg  =
|rev4lowimg  =
}}

Main parameters

img

The name of the file used as a base for all images, without File: prefix or .png extension. The filename will be automatically adjusted to correspond to the various revisions.

In case there are two revisions in the graphical update gallery, the first filename will have (historical) appended as a specifier, while the second image will use the base filename. If there are three or more revisions, the first image will be specified as (historical, v1), followed by (historical, v2) and so on until the last revision, which will use the base image name.

This parameter is required, unless all numbered revisions are assigned individual filenames through the rev#img parameter.

size

The size used for all images in the first main row, unless individually specified using the rev#size parameter.

This parameter is optional, and defaults to 300x150px if omitted. In case the original size of the images is desired, this parameter can be set to original.

rev#start

Assigns the starting date for the numbered historical revision. Up to ten revisions can be included in the graphical updates gallery by assigning them a starting date.

This parameter is required; a new column will be created for each numbered starting date.

rev#end

Assigns the ending date for the numbered historical revision.

This parameter is optional. If it is omitted, the ending date will be set using the starting date of the next historical revision. For the last revision, the ending date will be set to "Present" instead.

rev#img

Assigns which filename to use for a specific historical revision. The file assigned through rev#img takes precedence over the one set by img should both be present.

rev#size

Assigns the size of the image used in a specific historical revision. The size assigned through rev#size takes precedence over the one set by size should both be present.

Multiple image rows

Middle row

midimg

The filename used as the base for the second, middle row of images. Uses the same automatic naming scheme as the img parameter.

This parameter is optional, but must be included if a second row of images is desired.

midsize

The size used for all images in the second row, unless individually specified using the rev#midsize parameter.

This parameter is optional. If omitted, the full size of the images will be used.

mid#img

Determines which filename to use for the second image of a specific historical revision. The file assigned through rev#midimg takes precedence over the one set by midimg should both be present.

mid#size

Determines the size for the second image of a specific historical revision. The size assigned through rev#midsize takes precedence over the one set by midsize should both be present.

Lower row

lowimg

The filename used as the base for the third, lower row of images. Uses the same automatic naming scheme as the img parameter.

This parameter is optional, but must be included if a third row of images is desired.

lowsize

The size used for all images in the third row, unless individually specified using the rev#lowsize parameter.

This parameter is optional. If omitted, the full size of the images will be used.

low#img

Determines which filename to use for the third image of a specific historical revision. The file assigned through rev#lowimg takes precedence over the one set by lowimg should both be present.

low#size

Determines the size for the third image of a specific historical revision. The size assigned through rev#lowsize takes precedence over the one set by lowsize should both be present.

Multiple date rows

Upper row

rev#upstart

The starting date for an additional row of time periods inserted between the upper row and middle row of images.

This parameter is optional, but has to be defined for an upper row of dates to be included.

rev#upend

Defines the ending date of a particular historical revision in the upper row of time periods.

Middle row

rev#midstart

The starting date for an additional row of time periods inserted between the middle row and lower row of images.

This parameter is optional, but has to be defined for a middle row of dates to be included.

rev#midend

Defines the ending date of a particular historical revision in the middle row of time periods.

Examples

{{Graphical updates
|img = Man (red)
|midimg = Man (red) chathead
|rev1start = 29 March 2004
|rev2start = 6 December 2004
|rev3start = 29 May 2007
}}
{{Graphical updates
|img = Cow (Zanaris)
|midimg = Cow (Zanaris) chathead
|midsize = x80px
|rev1start = 27 February 2006
|rev2start = 20 March 2007
|rev2midimg = Cow chathead
}}