Changes

add 1_6_Strings.xnb
Line 2: Line 2:  
This template automatically populates the description for several items.
 
This template automatically populates the description for several items.
   −
==Parameters==
+
==Parameter==
#The name of the item in English, or the [[Modding:Object_data|item ID]] from underling data files (mainly <tt>Content\Data\ObjectInformation.xnb</tt>).
+
The name of the item in English (or the [[Modding:Items|item ID]] from <samp>Content\Data\ObjectInformation.xnb</samp>).
#Add italics with "italic=true"
      
==Use==
 
==Use==
Line 17: Line 16:     
{{Description|Wild Horseradish}}
 
{{Description|Wild Horseradish}}
<pre>{{Description|Prismatic Shard|italic=true}}</pre>
+
<pre>{{Description|Prismatic Shard}}</pre>
 
...results in
 
...results in
   −
{{Description|Prismatic Shard|italic=true}}
+
{{Description|Prismatic Shard}}
 
<pre>{{Description|700}}</pre>
 
<pre>{{Description|700}}</pre>
 
...results in
 
...results in
    
{{Description|700}}
 
{{Description|700}}
 +
 +
==Recipes/Blueprints==
 +
These take a second parameter, the name of the item in the wiki's native language.
 +
<pre>{{Description|Recipe|Lucky Lunch}}
 +
{{Description|Blueprint|Stone Brazier}}</pre>
 +
 +
===Spanish Example===
 +
In Spanish, for example, this would look like:
 +
<pre>{{Description|Recipe|Almuerzo de la suerte}}
 +
{{Description|Blueprint|Brasero de piedra}}</pre>
 +
...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:
 +
<pre>{{Description|Recipe|幸运午餐}}
 +
{{Description|Blueprint|石头火炬}}</pre>
 +
...which would result in
 +
 +
一个用于制作 幸运午餐 的配方
 +
 +
用于制造 石头火炬 的设计图
 +
 
==Notes==
 
==Notes==
This template was created to assist in translating the wiki from English into other languages.
+
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:
 +
#<samp>Data\BigCraftablesInformation.xnb</samp>
 +
#<samp>Data\Blueprints.xnb</samp>
 +
#<samp>Data\Boots.xnb</samp>
 +
#<samp>Data\Hats.xnb</samp>
 +
#<samp>Data\ObjectInformation.xnb</samp>
 +
#<samp>Data\weapons.xnb</samp>
 +
#<samp>Data\Furniture.xnb</samp> (Catalogue & Furniture Catalogue names)
 +
#<samp>Strings\Objects.xnb</samp> (Catalogue & Furniture Catalogue descriptions)
 +
#<samp>Data\FarmAnimals.xnb</samp> (name of Void Chicken)
 +
#<samp>Strings\StringsFromCSFiles.xnb</samp> (tools, furniture, wallpaper, flooring, animals, recipes, blueprints)
 +
#<samp>Strings\1_6_Strings.xnb</samp> (various additions in version 1.6.x)
   −
<includeonly>[[Category:Transclusion templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
+
<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[de:Vorlage:{{PAGENAME}}]]
  −
[[es:Plantilla:{{PAGENAME}}]]
  −
[[ja:テンプレート:{{PAGENAME}}]]
  −
[[pt:Predefinição:{{PAGENAME}}]]
  −
[[ru:Шаблон:{{PAGENAME}}]]
  −
[[zh:Template:{{PAGENAME}}]]</includeonly>
 
35

edits