Difference between revisions of "Template:Infobox:Holdable"

From Cantr II Wiki
Jump to: navigation, search
m
m
 
(26 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| class="infobox bordered" cellpadding="4" align="right"
+
<includeonly>{{Infobox:HoldableBase
|-
+
| title    = Holdable object
|
+
| section1  = General properties
{| class="infobox" style="background-color:#FFD070; width:25em; font-size: 95%; margin-left: inherit;" valign="top" cellpadding="1" border="1" cellspacing="0" align="right"
+
| item0s1  = {{if|test={{{attack|}}}|then=Attack|else=}}
! style="background-color: #FF9700;" colspan="2" | Holdable item
+
| info0s1  = {{{attack}}}
|- class="hiddenStructure{{{attack}}}"
+
| item1s1  = {{if|test={{{attack_anim|}}}|then=Attack vs. animals|else=}}
| '''Attack''' || {{{attack}}} <includeonly>[[Category:Attack items|{{{attack}}}]]</includeonly>
+
| info1s1  = {{{attack_anim}}}
|- class="hiddenStructure{{{skillweight}}}"
+
| item2s1  = {{if|test={{{attack|}}}|then=Skillweight|else=}}
| '''Skill weighting''' || {{{skillweight}}}
+
| info2s1  = {{if|test={{{skillweight|}}}|then={{{skillweight|0}}}%|else={{Inc3}}}}
|- class="hiddenStructure{{{defense}}}"
+
| item3s1  = {{if|test={{{defense|}}}|then=Defense|else=}}
| '''Block''' || {{{defense}}} <includeonly>[[Category:Defense items|{{{defense}}}]]</includeonly>
+
| info3s1  = {{{defense}}}
|-
+
| item4s1  = Weight
| '''Weight''' || {{{weight}}} grams
+
| info4s1  = {{if|test={{{weight|}}}|then={{{weight|0}}} grams|else={{Inc2}}}}
|-
+
| item5s1  = Visible
| '''Visible?''' || {{{visible}}}
+
| info5s1  = {{if|test={{{visible|}}}|then=yes|else=no}}
<!-- The following fields are deprecated and maintained for backwards compatibility only. Rot and repair data should be entered in a Manufacture infobox and removed from Holdable infoboxes. -->
+
| section2  = {{if|test={{if|test={{{vision|}}}|then=yes|else={{if|test={{{writing|}}}|then=yes|else={{if|test={{{storage|}}}|then=yes|else=}}}}}}|then=Special properties|else=}}
|- class="hiddenStructure{{{rot}}}"
+
| item0s2  = {{if|test={{{vision|}}}|then=Vision|else=}}
| '''[[Rot_and_repair|Rot]] per day''' || {{{rot|}}}
+
| info0s2  = {{{vision}}}%
|- class="hiddenStructure{{{repair}}}"
+
| item1s2  = {{if|test={{{writing|}}}|then=Writing|else=}}
| '''[[Rot_and_repair|Repair]] per hour''' || {{{repair|}}}
+
| info1s2  = {{{writing}}}
|}
+
| item2s2  = {{if|test={{{storage|}}}|then=Storage|else=}}
|}
+
| info2s2  = {{{storage}}} grams
 
+
}}<!-- Categories for the object -->{{if|test={{{attack|}}}|then=[[Category:Attack items|{{{attack}}}]]|else=}}{{if|test={{{defense|}}}|then=[[Category: Defense items|{{{defense}}}]]|else=}}{{if|test={{{vision|}}}|then=[[Category: Vision improving items|{{{vision}}}]]|else=}}{{if|test={{{writing|}}}|then=[[Category:Writing items|{{{writing}}}]]|else=}}{{if|test={{{storage|}}}|then={{if|test={{{sortingname|}}}|then=[[Category:Portable storage|{{{sortingname}}}]]|else=[[Category:Portable storage]]}}|else=}}</includeonly><!-- Categories for this template --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
<includeonly>
 
{{if|test={{{rot}}}|then=[[Category:Rewrite]]}}
 
{{if|test={{{repair}}}|then=[[Category:Rewrite]]}}
 
</includeonly>
 

Latest revision as of 18:37, 15 August 2015

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:Holdable}} allows to detail in a single table, all the characteristics of the production of any object.

The table is located in the upper and can contain: information about the points of attack or defense of an object; the skill weighting of attack objects; the weight and the visibility of the object. Also, you can detail the special characteristics of the object: vision range, writing properties, and

The article is automatically added (as appropriate) to these categories: Attack items, Defense items, Vision improving items, Writing items, and Portable storage.

Usage

Copy the text below and paste it into the article you are editing. Set parameters for the field where applicable, the ones not used can be left empty or removed.

{{Infobox:Holdable
| sortingname    = 
| attack         = 
| attack_anim    =
| skillweight    = 
| defense        = 
| weight         = 
| visible        = 
| vision         = 
| writing        = 
| storage        = 
}}

Parametrar

  • sorteringsnamn
    • Alternativt namn på objektet. Det används för att sortera artikeln i kategorin Bärbar förvaring, så det är bara logiskt att använda den för lagring av dessa objekt.
    • När och hur man använder det?
      • Om det finns bokstäver med accent:För att ersätta detta tecken utan accent. Exempelvis sorteringsnamn = Amfora för objektet "Ámfora".
      • För bokstaven "ñ": Ersätt detta tecken med ett "n" och lägg till ett "!" (utropstecken) i slutet. Exempelvis sorteringsnamn=Taza de estano! för objektet "Taza de estaño".
  • attack
    • Objektets attackpoäng.
    • Om det finns värde på denna parameter, läggs artikeln till i kategorin Attackföremål. Dessutom sorteras objektet inom kategorin efter denna parameter.
    • Exempel: attack = 20
  • attack_anim
    • Attack strength against animals.
    • Example: attack_anim = 23
  • influens
    • Andelen inflytande av kunskapen Strida i den resulterande skadan för objektet.
    • Exempel: influes = 35
  • försvar
    • Försvarspoängen för objektet
    • Om det finns värde på denna parameter läggs artikeln till i kategorin Skydd. Dessutom sorteras den inom kategorin efter detta värde.
    • Exempel: försvar = 20
  • peso
    • Peso (en gramos) del objeto. Este parámetro es obligatorio.
    • Es aconsejable utilizar separador de miles en este parámetro.
    • Ejemplo bueno: peso = 2.000
    • Ejemplo malo: peso = 2000
  • visible
    • Especifica si el objeto es visible o no. Es decir, si los demás personajes pueden notar que tu personaje lleva este objeto consigo.
    • Si se da valor a este parámetro, la tabla muestra "Sí" (sin importar el valor que se le haya dado); caso contrario, muestra "No".
    • Ejemplo 1: visible = Sí (la tabla muestra "Sí")
    • Ejemplo 2: visible = No (la tabla muestra "Sí")
    • Ejemplo 3: visible = (la tabla muestra "No")
  • vision
    • Rango de visión del objeto.
    • Si se da valor a este parámetro, la tabla muestra una sección adicional para detallar las características especiales del objeto. El artículo se agrega automáticamente a la categoría Instrumentos ópticos. Además, se ordena en la categoría según el valor que tome este parámetro.
    • Ejemplo: vision = 200
  • escritura
    • Propiedades de escritura del objeto.
    • Si se da valor a este parámetro, la tabla muestra una sección adicional para detallar las características especiales del objeto. El artículo se agrega automáticamente a la categoría Instrumentos de escritura. Además, se ordena en la categoría según el valor que tome este parámetro.
    • Ejemplo: escritura = 100
  • almacena
    • Peso (en gramos) que puede almacenar el objeto.
    • Si se da valor a este parámetro, la tabla muestra una sección adicional para detallar las características especiales del objeto. El artículo se agrega automáticamente a la categoría Almacenamiento portátil.
    • Es aconsejable utilizar separador de miles en este parámetro.
    • Ejemplo bueno: almacena = 2.000
    • Ejemplo malo: almacena = 2000


Parameters (English)

  • sortingname
    • Alternate name of the object. It is used to sort the item into the category Portable Storage, so it only makes sense to use it for storing these items.
    • When and how to use it?
      • If there are accented letters: Replace the accented character. For example sort name = Amphora for the object "Ámfora".
      • For the letter "ñ": Replace this character with an "n" and add an "!" (exclamation mark) at the end. For example, sort name = Taza de estano! for the object "Taza de estaño".
  • attack
    • The object's attack points.
    • If there is a value for this parameter, the article is added to the category Attack items. In addition, the object is sorted within the category according to this parameter.
    • Example: attack = 20
  • attack_anim
    • Attack strength against animals.
    • Example: attack_anim = 23
  • skillweight
    • The skillweight value that has an influence in the result of damage to the object.
    • Example: skillweight = 35
  • defense
    • The defense score for the item
    • If there is a value for this parameter, the article is added to the category Protection. In addition, it is sorted within the category by this value.
    • Example: defense = 20
  • weight
    • Weight (in grams) of the object. This parameter is required.
    • It is advisable to use thousands separator in this parameter.
    • Good example: weight = 2,000
    • Bad example: weight = 2000
  • visible
    • Specifies whether the object is visible or not. That is, if the other characters can notice that your character is carrying this object with him.
    • If this parameter is given a value, the table shows "Yes" (regardless of the value given); otherwise, it displays "No".
    • Example 1: visible = Yes (table shows "Yes")
    • Example 2: visible = No (table shows "Yes")
    • Example 3: visible = (the table shows "No")
  • vision
    • Range of view of the object.
    • If this parameter is set, the table shows an additional section to detail the special characteristics of the object. The item is automatically added to the Vision improving items category. In addition, it is ordered in the category according to the value that this parameter takes.
    • Example: vision = 200
  • writing
    • Object write properties.
    • If this parameter is set, the table shows an additional section to detail the special characteristics of the object. The article is automatically added to the Writing items category. In addition, it is ordered in the category according to the value that this parameter takes.
    • Example: writing = 100
  • storage
    • Weight (in grams) that the object can store.
    • If this parameter is set, the table shows an additional section to detail the special characteristics of the object. The item is automatically added to the Portable Storage category.
    • It is advisable to use thousands separator in this parameter.
    • Good example: storage = 2,000
    • Bad example: storage = 2000