Difference between revisions of "Template:Price/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (Reverted edits by Daedric (talk) to last revision by Margotbean)
Tag: Rollback
Line 7: Line 7:
 
This template can be used by entering the following onto a relevant page.
 
This template can be used by entering the following onto a relevant page.
  
<pre>{{Price|''miktar''}}</pre>
+
<pre>{{Price|''amount''}}</pre>
  
 
This template uses [[File:Gold.png|24px]] by default. To use different in-game currencies, add the appropriate name.
 
This template uses [[File:Gold.png|24px]] by default. To use different in-game currencies, add the appropriate name.
  
<pre>{{Price|''miktar''|''birim''}}</pre>
+
<pre>{{Price|''amount''|''currency''}}</pre>
  
 
===Sample===
 
===Sample===
<pre>{{fiyat|30}}</pre>
+
<pre>{{Price|30}}</pre>
 
results in...
 
results in...
  
{{Fiyat|30}}
+
{{Price|30}}
  
<pre>{{Fiyat|20|JOPK}}
+
<pre>{{Price|20|JOPK}}
  
 
{{Price|2000|Qi}} </pre>
 
{{Price|2000|Qi}} </pre>
 
results in...
 
results in...
  
{{Fiyat|20|JOPK}}
+
{{Price|20|JOPK}}
  
{{Fiyat|2000|Qi}}
+
{{Price|2000|Qi}}
  
 
==Amount==
 
==Amount==
Line 32: Line 32:
  
 
==Currency==
 
==Currency==
Bu parametre farklı birimleri kabul eder, ancak girdi olmazsa standart birim olarak altın çıktı alınacaktır.
+
This parameter accepts different currency types, but without input will simply output the standard gold coin.
  
 
{| class="wikitable"
 
{| class="wikitable"
!Girdi
+
!Input
!Çıktı
+
!Output
 
|-
 
|-
|Altın
+
|
 
|[[File:Gold.png|24px|link=]]
 
|[[File:Gold.png|24px|link=]]
 
|-
 
|-

Revision as of 16:23, 19 January 2022

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 Gold.png by default. To use different in-game currencies, add the appropriate name.

{{Price|''amount''|''currency''}}

Sample

{{Price|30}}

results in...

data-sort-value="30">Gold.png30g

{{Price|20|JOPK}}

{{Price|2000|Qi}} 

results in...

data-sort-value="20">JOPKCoin1.png20

data-sort-value="2000">QiCoin.png2,000

Amount

This parameter accepts the amount of money.

Currency

This parameter accepts different currency types, but without input will simply output the standard gold coin.

Input Output
Gold.png
JOPK JOPKCoin1.png
Qi QiCoin.png
Token Token.png
Walnut Golden Walnut.png
Gem Qi Gem.png