Template:ItemT

From Project: Gorgon Wiki
Jump to: navigation, search
Item Name Goes Here

Item description goes here.

Item stats goes here
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Description

Use this template to illustrate an item as it appears in-game.
The main idea with this template is to liven up pages with some visuals, as well as illustrate an item that relates to the quest, skill, cooking recipe, etc. See eg. Goblinese.
Most equipment is randomly generated, but there are also many unique items such as poetry, paintings, skill utensils, crafting ingredients, and so on. which have a unique description.
Additional benefits:
  • Avoids uploading too many images in the wiki that will be soon obsolete.
  • As for all templates, we can change the appearance later for all concerned articles just by editing this template. :Therefore when the game's user interface art changes, it won't be a problem.

Syntax

Type {{ItemT|param1|namedparam=}} somewhere.
{{ItemT|<color>|<align>|Icon=<icon>|caption=<text>
|<title>
|<description>
|<stats>
}}

Parameters

color
OPTIONAL. Default is common (white). Values: green (uncommon), cyan (rare), purple, magenta (epic), yellow (legendary).
align
OPTIONAL. Use thumb to float to the right with a frame, similar to image thumbs.
Icon
OPTIONAL. (Notice this parameter is capitalized). Defaults to the icon that would appear for <title>. If present, the icon of the specified item will be used instead of the default. Typically only needed for weapons and armor to specify the base icon name. See the demos for examples.
caption
Only if using thumb. Adds a caption similar to image thumbs.
description
This is the first paragraph in the item popups in-game it shows side by side with the item icon.
stats
This is the list of augments on the item, and other requirements. See the examples to get the proper formatting.
icon
NOT USED. (Notice this parameter is lowercase). This parameter previously specified the user uploaded icon names. Now that icons are provided via Template:Item_icon, this parameter is no longer used.

Sample output

Code = Output
Bare usage:
{{ItemT|nocat=}}
Item Name Goes Here

Item description goes here.

Item stats goes here
The above text is transcluded from Template:ItemT/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Please add categories and interwikis to Template:ItemT/doc. (View all subpages of this page.)


Examples

Here is a simple example, for more complex examples see ItemT Template Demos.

Also see the category page for all pages using Template:ItemT (using the template puts it in this category).

{{ItemT|||saltpeter
|Saltpeter
|A tiny pinch of saltpeter, a strange substance with many magical uses.
|
Value: 300
}}

Template Demos

There are demonstrations for this template, see ItemT Template Demos.

Backup

This is the #switch expression if/when ParserFunctions is installed in the wiki.

<div class="gg-hd" style=";">