Difference between revisions of "Template:Description"
Margotbean (talk | contribs) (testing a template for automatically populating item descriptions from data files) |
Margotbean (talk | contribs) (lower-case) |
||
Line 1: | Line 1: | ||
− | + | <includeonly>{{#ifeq:{{{italic|}}}|false||<i>}}{{#switch:{{lc:{{{1|}}}}} | |
− | + | |16|wild horseradish=A spicy root found in the spring. | |
− | + | |18|daffodil=A traditional spring flower that makes a nice gift. | |
− | + | |20|leek=A tasty relative of the onion. | |
− | + | |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. | |
− | + | |30|lumber=A versatile resource used for building and fuel. | |
− | + | |60|emerald=A precious stone with a brilliant green color. | |
− | + | |62|aquamarine=A shimmery blue-green gem . | |
− | + | |64|ruby=A precious stone that is sought after for its rich color and beautiful luster. | |
− | + | |66|amethyst=A purple variant of quartz. | |
− | + | |68|topaz=Fairly common but still prized for its beauty. | |
− | + | |70|jade=A pale green ornamental stone. | |
− | + | |72|diamond=A rare and valuable gem. | |
− | + | |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. | |
− | + | |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. | |
− | + | |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. | |
− | + | |86|earth crystal=A resinous substance found near the surface. | |
− | + | |88|coconut=A seed of the coconut palm. It has many culinary uses. | |
− | + | |90|cactus fruit=The sweet fruit of the prickly pear cactus. | |
− | + | |92|sap=A fluid obtained from trees. | |
− | + | |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. | |
− | + | |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 | |
|#default= }}{{#ifeq:{{{italic|}}}|false||</i>}}</includeonly> | |#default= }}{{#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:
- Data\BigCraftablesInformation.xnb
- Data\Blueprints.xnb
- Data\Boots.xnb
- Data\Hats.xnb
- Data\ObjectInformation.xnb
- Data\weapons.xnb
- Data\Furniture.xnb (Catalogue & Furniture Catalogue names)
- Strings\Objects.xnb (Catalogue & Furniture Catalogue descriptions)
- Data\FarmAnimals.xnb (name of Void Chicken)
- Strings\StringsFromCSFiles.xnb (tools, furniture, wallpaper, flooring, animals, recipes, blueprints)
- Strings\1_6_Strings.xnb (various additions in version 1.6.x)