Difference between revisions of "Template:ValuableTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
m (Fix File search -> {{{1}}}. Instead of "ItemID".png)
Line 15: Line 15:
     --- Check if item name has a translation. If yes, load translation of item name. If not, return empty string. Used for other languages. -->
     --- Check if item name has a translation. If yes, load translation of item name. If not, return empty string. Used for other languages. -->
     {{#if:{{#var:TranslateName}}|{{#var:TranslateName}}}}]]'''<!--
     {{#if:{{#var:TranslateName}}|{{#var:TranslateName}}}}]]'''<!--
     -->[[File:{{#var:ItemID}}.png|center|<!--
     -->[[File:{{{1}}}.png|center|<!--
     --- Check if there is a custom name. If yes, load custom name translation, otherwise load item name translation. -->
     --- Check if there is a custom name. If yes, load custom name translation, otherwise load item name translation. -->
     alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]
     alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]

Revision as of 21:42, 14 January 2025

Template-info.png Documentation

This article is a stub. You can help Stoneshard wiki by expanding it.

This Template replicates the logic used for the Template:WeaponTable/row.

Syntax

{{ValuableTable/row|Agate}}

Usage

It should be used with a 'header', right before it.
{{ValuableTable/head}}
{{ValuableTable/row|Agate}}.

Any Valuables added in Valuable Data, can be used with the '/row' template.

Example

Item Inv. Slots Price Gold Icon Description


Agate
Agate
1x1 50 Gold.png Common folk believe agate to bring good luck. It's often used to make cheap jewelry.