Template:GU

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:GU/doc. [edit] [history] [purge]
Template:GU invokes function main in Module:Graphical update gallery using Lua.

Used to create the Graphical updates galleries on pages. Uses lines generated by {{GUL}}.
Images found in the {{GU}} will propigate over to the {{GU Page}}.

Usage

Use as the caption in a gallery of images on the item/object/npc pages.

Empty copy:

{{GU|subject=
|{{GUL|date=|update=|img=|name=}}
|{{GUL|date=|update=|img=|name=}}
}}

Filling the parameters as below:

{{GU|subject=NPCs
|{{GUL|date=[[7 February]] [[2005]]|update=Roving Elves|img=Ilfeen (2005).png|name=Ilfeen}}
|{{GUL|date=|update=Court Cases: Back in Session|img=Ilfeen (2010).png|name=Ilfeen}}
|{{GUL|date=|update=|img=Ilfeen.png|name=Ilfeen}}
}}
{{GU|subject=Chatheads
|{{GUL|date=|update=|img=Ilfeen chathead (2005).png|name=Ilfeen}}
|{{GUL|date=[[1 July]] [[2008]]|update=RuneScape HD - Members-Only Beta Launch|img=Ilfeen chathead (2008).png|name=Ilfeen}}
|{{GUL|date=[[11 August]] [[2014]]|update=Plague's End|img=Ilfeen chathead.png|name=Ilfeen}}
}}

Generates (on the elves graphical update page and Ilfeen's direct page at the bottom page):

Parameters

heights

Optional. Used to define the gallery images' heights. If not populated, a default of 200 will be used. A valid subject value will take precedence.

widths

Optional. Used to define the gallery images' widths. If not populated, a default of 200 will be used. A valid subject value will take precedence.

subject

Optional. Used to define the images used for this gallery. Defining this changes the default heights and widths used. Supported values and their sizes (and potentially custom CSS classes) are:

SubjectWidthHeightClass
chathead175100N/A
default200200N/A
dii175100N/A
equipped200200N/A
icon17550N/A
inventory item175100gallery-inv-items
npc200200N/A
scenery300200N/A

(Unnamed)

Any number of {{GUL}} templates. {{GUL|date=|year=|update=|img=}}

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Use as the caption in a gallery of images on the item/object/npc pages.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Change 11

no description

Example
{{GUL|date=[[10 January]] [[2011]]|update=God Wars Dungeon - The Ancient Prison|img=Nex old.png|name=Nex}}
Contentrequired
Change 22

no description

Example
{{GUL|date=[[10 January]] [[2011]]|update=God Wars Dungeon - The Ancient Prison|img=Nex old.png|name=Nex}}
Contentrequired
Change 33

no description

Example
{{GUL|date=[[10 January]] [[2011]]|update=God Wars Dungeon - The Ancient Prison|img=Nex old.png|name=Nex}}
Contentoptional
Change 44

no description

Example
{{GUL|date=[[10 January]] [[2011]]|update=God Wars Dungeon - The Ancient Prison|img=Nex old.png|name=Nex}}
Contentoptional
Change 55

no description

Example
{{GUL|date=[[10 January]] [[2011]]|update=God Wars Dungeon - The Ancient Prison|img=Nex old.png|name=Nex}}
Contentoptional
Change 66

no description

Example
{{GUL|date=[[10 January]] [[2011]]|update=God Wars Dungeon - The Ancient Prison|img=Nex old.png|name=Nex}}
Contentoptional
Subjectsubject

The type of images being shown

Suggested values
chathead dii equipped icon inventory item npc scenery
Example
npc
Lineoptional
Heightsheights

Sets the heights of images in the gallery

Example
200
Numberoptional
Widthswidths

Sets the widths of images in the gallery

Example
200
Numberoptional