Difference between revisions of "Template:Description"

From Stardew Valley Wiki
Jump to navigation Jump to search
(testing a template for automatically populating item descriptions from data files)
 
(lower-case)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{italic|}}}|false||<i>}}{{#switch:{{{1|}}}
+
<includeonly>{{#ifeq:{{{italic|}}}|false||<i>}}{{#switch:{{lc:{{{1|}}}}}
|16|Wild Horseradish=A spicy root found in the spring.
+
|16|wild horseradish=A spicy root found in the spring.
|18|Daffodil=A traditional spring flower that makes a nice gift.
+
|18|daffodil=A traditional spring flower that makes a nice gift.
|20|Leek=A tasty relative of the onion.
+
|20|leek=A tasty relative of the onion.
|22|Dandelion=Not the prettiest flower, but the leaves make a good salad.
+
|22|dandelion=Not the prettiest flower, but the leaves make a good salad.
|24|Parsnip=A spring tuber closely related to the carrot. It has an earthy taste and is full of nutrients.
+
|24|parsnip=A spring tuber closely related to the carrot. It has an earthy taste and is full of nutrients.
|30|Lumber=A versatile resource used for building and fuel.
+
|30|lumber=A versatile resource used for building and fuel.
|60|Emerald=A precious stone with a brilliant green color.
+
|60|emerald=A precious stone with a brilliant green color.
|62|Aquamarine=A shimmery blue-green gem .
+
|62|aquamarine=A shimmery blue-green gem .
|64|Ruby=A precious stone that is sought after for its rich color and beautiful luster.
+
|64|ruby=A precious stone that is sought after for its rich color and beautiful luster.
|66|Amethyst=A purple variant of quartz.
+
|66|amethyst=A purple variant of quartz.
|68|Topaz=Fairly common but still prized for its beauty.
+
|68|topaz=Fairly common but still prized for its beauty.
|70|Jade=A pale green ornamental stone.
+
|70|jade=A pale green ornamental stone.
|72|Diamond=A rare and valuable gem.
+
|72|diamond=A rare and valuable gem.
|74|Prismatic Shard=A very rare and powerful substance with unknown origins.
+
|74|prismatic shard=A very rare and powerful substance with unknown origins.
|78|Cave Carrot=A starchy snack found in caves. It helps miners work longer.
+
|78|cave carrot=A starchy snack found in caves. It helps miners work longer.
|79|Secret Note=It's old and crumpled, but if you look closely you can make out the details...
+
|79|secret note=It's old and crumpled, but if you look closely you can make out the details...
|80|Quartz=A clear crystal commonly found in caves and mines.
+
|80|quartz=A clear crystal commonly found in caves and mines.
|82|Fire Quartz=A glowing red crystal commonly found near hot lava.
+
|82|fire quartz=A glowing red crystal commonly found near hot lava.
|84|Frozen Tear=A crystal fabled to be the frozen tears of a yeti.
+
|84|frozen tear=A crystal fabled to be the frozen tears of a yeti.
|86|Earth Crystal=A resinous substance found near the surface.
+
|86|earth crystal=A resinous substance found near the surface.
|88|Coconut=A seed of the coconut palm. It has many culinary uses.
+
|88|coconut=A seed of the coconut palm. It has many culinary uses.
|90|Cactus Fruit=The sweet fruit of the prickly pear cactus.
+
|90|cactus fruit=The sweet fruit of the prickly pear cactus.
|92|Sap=A fluid obtained from trees.
+
|92|sap=A fluid obtained from trees.
|93|Torch=Provides a modest amount of light.
+
|93|torch=Provides a modest amount of light.
|96|Dwarf Scroll I=A yellowed scroll of parchment filled with dwarven script. This one's tied with a red bow.
+
|96|dwarf scroll i=A yellowed scroll of parchment filled with dwarven script. This one's tied with a red bow.
|97|Dwarf Scroll II=A yellowed scroll of parchment filled with dwarven script. This one's tied with a green ribbon.
+
|97|dwarf scroll ii=A yellowed scroll of parchment filled with dwarven script. This one's tied with a green ribbon.
|98|Dwarf Scroll III=A yellowed scroll of parchment filled with dwarven script. This one's tied
+
|98|dwarf scroll iii=A yellowed scroll of parchment filled with dwarven script
 
|#default=&nbsp;}}{{#ifeq:{{{italic|}}}|false||</i>}}</includeonly>
 
|#default=&nbsp;}}{{#ifeq:{{{italic|}}}|false||</i>}}</includeonly>
 
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 
<noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 21:13, 29 September 2018

Description

This template automatically populates the description for several items.

Parameter

The name of the item in English (or the item ID from Content\Data\ObjectInformation.xnb).

Use

Enter the following:

{{Description|''item name''}}
{{Description|''item number''}}

Examples

{{Description|Wild Horseradish}}

...results in

A spicy root found in the spring.

{{Description|Prismatic Shard}}

...results in

A very rare and powerful substance with unknown origins.

{{Description|700}}

...results in

A relative of the catfish that eats a variety of foods off the lake bottom.


Recipes/Blueprints

These take a second parameter, the name of the item in the wiki's native language.

{{Description|Recipe|Lucky Lunch}}
{{Description|Blueprint|Stone Brazier}}

Spanish Example

In Spanish, for example, this would look like:

{{Description|Recipe|Almuerzo de la suerte}}
{{Description|Blueprint|Brasero de piedra}}

...which would result in

Receta para cocinar «Almuerzo de la suerte»

Planos para fabricar «Brasero de piedra»

Chinese Example

In Chinese, this would look like:

{{Description|Recipe|幸运午餐}}
{{Description|Blueprint|石头火炬}}

...which would result in

一个用于制作 幸运午餐 的配方

用于制造 石头火炬 的设计图

Notes

This template was created to assist in translating the wiki from English into other languages. In other languages, this template allows the item name to be in English or in the other language.

Items from the following data files are included:

  1. Data\BigCraftablesInformation.xnb
  2. Data\Blueprints.xnb
  3. Data\Boots.xnb
  4. Data\Hats.xnb
  5. Data\ObjectInformation.xnb
  6. Data\weapons.xnb
  7. Data\Furniture.xnb (Catalogue & Furniture Catalogue names)
  8. Strings\Objects.xnb (Catalogue & Furniture Catalogue descriptions)
  9. Data\FarmAnimals.xnb (name of Void Chicken)
  10. Strings\StringsFromCSFiles.xnb (tools, furniture, wallpaper, flooring, animals, recipes, blueprints)
  11. Strings\1_6_Strings.xnb (various additions in version 1.6.x)