Template:Get/Icon/doc

From Palia Wiki
Jump to navigation Jump to search

Usage

Since Template:Get is working in p HTML tags it is not possible to easly generate the Template:Icon from it. To counteract this you can use this Template to forward the data to Template:Icon.

!Note: This template will only get the litteral data that was passed into the specified template. This means defaults will be read out as empty!

Syntax

{{Get|template|variable|pagename|style|size}}
Field Accepted Parameters Example Notes
template template name ItemInfobox The name of the template to get parameter data from. No template prefix needed.
parameter parameter name desc The name of a parameter from the selected template
pagename page Name Bacon This is the name of the page you want to get the data from.
style 1,2,3 Bacon Defines the (caption) style. Default is a small icon that is unlinkable with no caption.
1 = outputs the icon name as plain text next to the icon
2=outputs the icon name as a small caption below the icon
3=outputs no caption, but links the icon itself to its page of the same name. Recommended to use with size parameter
size any px size Bacon Optional. If you are using this, you must write out size= and assumes px.

Examples

Example Syntax Result
Gets the crafter from Akwinduu Chapaa as Template:Icon
{{GetIcon|ItemInfobox|crafter|Akwinduu Chapaa}}