Jump to content

Template:Price/doc: Difference between revisions

From Stardew Valley Wiki
imported>Alexanderpas
No edit summary
imported>Zornor
No edit summary
Line 8: Line 8:


<pre>{{Price|''amount''}}</pre>
<pre>{{Price|''amount''}}</pre>
This template uses [[:File:Gold.png]] To use a different icon, add the icon parameter linking to a file with a different icon.
<pre>{{Price|''amount''|icon=[[File:example.png]]}}</pre>


===Sample===
===Sample===
Line 14: Line 18:


{{Price|30}}
{{Price|30}}
<pre> {{Price|20|icon=[[File:JOPKCoin1.png|link=]]}}</pre>
results in...
{{Price|20|icon=[[File:JOPKCoin1.png|link=]]}}


==Amount==
==Amount==

Revision as of 01:37, 19 March 2016

Description

This template is used to insert File:Gold.png in-line with text and the letter g after the amount.

If you want to set the price for items with different qualities in a table, use Template:Qualityprice instead

Usage

This template can be used by entering the following onto a relevant page.

{{Price|''amount''}}

This template uses File:Gold.png To use a different icon, add the icon parameter linking to a file with a different icon.

{{Price|''amount''|icon=[[File:example.png]]}}

Sample

 {{Price|30}}

results in...

data-sort-value="30">30g

 {{Price|20|icon=[[File:JOPKCoin1.png|link=]]}}

results in...

data-sort-value="20">20g

Amount

This parameter accepts the amount of money.