Difference between revisions of "Template:Infobox weapon/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
m
 
(10 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
This template is used to provide a template that displays an infobox for clothing.
 
This template is used to provide a template that displays an infobox for clothing.
  
==Usage==
+
==Use==
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. '''Do not use this on your user page. It is reserved for content pages.'''
 
 
<pre>{{Infobox weapon
 
|name        =
 
|image      =
 
|description =
 
|level      =
 
|source      =
 
|damage      =
 
|ingredients =
 
|gprice      =
 
|value      =
 
}}</pre>
 
  
 
===Parameters===
 
===Parameters===
 
<pre>{{Infobox weapon
 
<pre>{{Infobox weapon
|name        =  
+
|name        = Optional, populated by pagename if omitted
|image      =  
+
|image      = Weapon image (usually .png format)
|description = Description
+
|description = Description (optional -- populated by Template:Description if omitted)
 +
|type        = Optional, valid types are Sword, Club, Dagger, or Slingshot
 
|level      = Level of weapon
 
|level      = Level of weapon
 
|source      = Where it comes from
 
|source      = Where it comes from
 
|damage      = Range of weapon damage
 
|damage      = Range of weapon damage
|ingredients = What makes it
+
|csc        = Critical Strike Chance
|gprice      = How much the adventurer's guild sell it for
+
|gprice      = How much it costs to purchase at the Adventurer's Guild
|value      = How much it sells for
+
|value      = How much you can sell it for at the Adventurer's Guild
 +
|stats      = Defense, Speed, Weight, etc. (optional)
 
}}</pre>
 
}}</pre>
  
Line 34: Line 24:
 
<pre>
 
<pre>
 
{{Infobox weapon
 
{{Infobox weapon
|name        = Pirate's Sword
+
|name        = Fake Example Sword
 
|image      = Pirate's Sword.png
 
|image      = Pirate's Sword.png
|description = It looks like a pirate owned this once.
+
|description = {{Description|Pirate's Sword}}
|level      = 4
+
|type        = Sword
 +
|level      = 99
 
|source      = [[Adventurer's Guild]], [[The Mines]]
 
|source      = [[Adventurer's Guild]], [[The Mines]]
 
|damage      = 08-14
 
|damage      = 08-14
|ingredients = N/A
+
|csc        = .02
|gprice      = {{price|850}}
+
|gprice      = 850
|value      = {{price|200}}
+
|value       = 200
 +
|stats       = {{name|Defense|+3}}{{name|Crit. Power|-7}}
 
}}
 
}}
 
</pre>
 
</pre>
  
 
{{Infobox weapon
 
{{Infobox weapon
|name        = Pirate's Sword
+
|name        = Fake Example Sword
 
|image      = Pirate's Sword.png
 
|image      = Pirate's Sword.png
|description = It looks like a pirate owned this once.
+
|description = {{Description|Pirate's Sword}}
|level      = 4
+
|type        = sword
 +
|level      = 99
 
|source      = [[Adventurer's Guild]], [[The Mines]]
 
|source      = [[Adventurer's Guild]], [[The Mines]]
 
|damage      = 08-14
 
|damage      = 08-14
|ingredients = N/A
+
|csc        = .02
|gprice      = {{price|850}}
+
|gprice      = 850
|value      = {{price|200}}
+
|value       = 200
 +
|stats       = {{name|Defense|+3}}{{name|Crit. Power|-7}}
 +
|debug mode  = yes
 
}}
 
}}
  
 
<includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 
<includeonly>[[Category:Infobox templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
 +
<includeonly>{{Addlanglinks}}</includeonly>

Latest revision as of 00:25, 4 June 2022

Description

This template is used to provide a template that displays an infobox for clothing.

Use

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

Parameters

{{Infobox weapon
|name        = Optional, populated by pagename if omitted
|image       = Weapon image (usually .png format)
|description = Description (optional -- populated by Template:Description if omitted)
|type        = Optional, valid types are Sword, Club, Dagger, or Slingshot
|level       = Level of weapon
|source      = Where it comes from
|damage      = Range of weapon damage
|csc         = Critical Strike Chance
|gprice      = How much it costs to purchase at the Adventurer's Guild
|value       = How much you can sell it for at the Adventurer's Guild
|stats       = Defense, Speed, Weight, etc. (optional)
}}

Example

{{Infobox weapon
|name        = Fake Example Sword
|image       = Pirate's Sword.png
|description = {{Description|Pirate's Sword}}
|type        = Sword
|level       = 99
|source      = [[Adventurer's Guild]], [[The Mines]]
|damage      = 08-14
|csc         = .02
|gprice      = 850
|value       = 200
|stats       = {{name|Defense|+3}}{{name|Crit. Power|-7}}
}}
Fake Example Sword
Pirate's Sword.png
It looks like a pirate owned this once.
Information
Type: Sword
Level: 99
Source: Adventurer's Guild, The Mines
Damage: 08-14
Critical Strike Chance: .02
Stats: Defense.png Defense (+3)Crit. Power.png Crit. Power (-7)
Adventurer's Guild
Purchase Price: data-sort-value="850 ">Gold.png850g
Sell Price: data-sort-value="200 ">Gold.png200g