Difference between revisions of "Template:Infobox:Tillverkning"

From Cantr II Wiki
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox bordered" cellpadding="4" align="right"
+
<includeonly>{{Infobox:ManufactureBase
|-
+
| title    = {{{namn|}}}
|
+
| image    = {{{bild|}}}
{| class="infobox" style="background-color:#E0E0E0; width:25em; font-size: 95%; margin-left: inherit;" valign="top" cellpadding="1" border="1" cellspacing="0" align="right"
+
| resize  = {{{fyll_ut|}}}
! style="background-color: #B0B0B0;" colspan="2" | Tillverkning
+
| comment  = {{{kommentar|}}}
|- class="hiddenStructure{{{hidden}}}"
+
| section1 = {{if|test={{{typ|}}}|then=Tillverkning|else=}}
| '''Article name''' || {{{article_name}}}
+
| item0s1  = Typ
|-
+
| info0s1  = [[:Category:{{{typ}}}|{{{typ}}}]]
| '''Typ av objekt''' || [[:Category:{{{typ}}}|{{{typ}}}]] [[Category:{{{typ}}}|{{{article_name}}}]]
+
| item1s1  = Kunskap
|- class="hiddenStructure{{{kunskap}}}"
+
| info1s1  = {{if|test={{{kunskap|}}}|then=[[Kunskaper#{{{kunskap}}}|{{{kunskap}}}]]|else={{Inc2}}}}
| '''Använd kunskap''' || [[Kunskaper#{{{kunskap}}}|{{{kunskap}}}]]
+
| item2s1  = Tid
|-
+
| info2s1  = {{if|test={{{tid|}}}|then={{{tid}}}|else=1}} dag(ar)
| '''Tid''' || {{{tid}}} dagar
+
| item3s1  = {{if|test={{{resurser|}}}|then=Material|else=}}
|- class="hiddenStructure{{{resurser}}}"
+
| info3s1  = {{{resurser}}}
| '''Material''' || {{{resurser}}}
+
| item4s1  = {{if|test={{{objekt|}}}|then=Objekt|else=}}
|- class="hiddenStructure{{{objekt}}}"
+
| info4s1  = {{{objekt}}}
| '''Objekt''' || {{{objekt}}}
+
| item5s1  = {{if|test={{{verktyg|}}}|then=Verktyg|else=}}
|-
+
| info5s1  = {{{verktyg}}}
| '''Verktyg''' || {{{verktyg}}}
+
| item6s1  = {{if|test={{{maskiner|}}}|then=Maskiner|else=}}
|- class="hiddenStructure{{{maskiner}}}"
+
| info6s1  = {{{maskiner}}}
| '''Maskiner''' || {{{maskiner}}}
+
| item7s1  = {{if|test={{{plats|}}}|then=Plats|else=}}
|- class="hiddenStructure{{{plats}}}"
+
| info7s1  = {{{plats}}}
| '''Plats''' || {{{plats}}}
+
| section2 = {{if|test={{if|test={{{slitage|}}}|then=x|else={{if|test={{{anv_slitage|}}}|then=x|else={{if|test={{{reparation|}}}|then=x|else=}}}}}}|then=Slitage och reparation|else=}}
|- class="hiddenStructure{{{slitage}}}"
+
| item0s2  = [[Slitage och reparation|Slitage]]
| '''[[Slitage och reparation|Slitage]] per dag''' || {{{slitage}}}
+
| info0s2  = {{if|test={{{slitage|}}}|then={{{slitage|0}}} poäng per dag|else=per dag: {{Inc3 (Sv)}}}}<br />{{if|test={{{anv_slitage|}}}|then={{{anv_slitage|0}}} poäng per dags användning|else=per dags användning: {{Inc3 (Sv)}}}}
|- class="hiddenStructure{{{anv_slitage}}}"
+
| item1s2  = [[Slitage och reparation|Reparation]]
| '''[[Slitage och reparation|Slitage vid användande]] per dag''' || {{{anv_slitage}}}
+
| info1s2  = {{if|test={{{reparation|}}}|then={{{reparation|0}}} poäng per timme|else={{Inc3 (Sv)}}}}
|- class="hiddenStructure{{{reparation}}}"
+
| section3 = {{if|test={{{alternativ|}}}|then=Alternativ tillverkning ({{{alternativ}}})|else=}}
| '''[[Slitage och reparation|Reparation]] per timme''' || {{{reparation}}}
+
| item0s3  = {{if|test={{{kunskap2|}}}|then=Använd kunskap|else=}}
|}
+
| info0s3  = {{if|test={{{kunskap2|}}}|then=[[Kunskaper#{{{kunskap2}}}|{{{kunskap2}}}]]|else={{Inc2 (Sv)}}}}
|}
+
| item1s3  = Tid
 +
| info1s3  = {{if|test={{{tid2|}}}|then={{{tid2}}}|else=1}} dag(ar)
 +
| item2s3  = {{if|test={{{resurser2|}}}|then=Material|else=}}
 +
| info2s3  = {{{resurser2}}}
 +
| item3s3  = {{if|test={{{objekt2|}}}|then=Objekt|else=}}
 +
| info3s3  = {{{objekt2}}}
 +
| item4s3  = {{if|test={{{verktyg2|}}}|then=Verktyg|else=}}
 +
| info4s3  = {{{verktyg2}}}
 +
| item5s3  = {{if|test={{{maskiner2|}}}|then=Maskiner|else=}}
 +
| info5s3  = {{{maskiner2}}}
 +
| item6s3  = {{if|test={{{plats2|}}}|then=Plats|else=}}
 +
| info6s3  = {{{plats2}}}
 +
}}<!-- Object Categories -->{{if|test={{{typ|}}}|then=[[Category:{{{typ}}}]]|else=}}</includeonly><!-- Template Categories --><noinclude>{{Doc (Sv)}}[[Category:Mallar|{{PAGENAME}}]]</noinclude>

Latest revision as of 12:34, 26 December 2010

Dokumentation för mallen[ ver ] [redigera]

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

The table is located in the upper right corner, and can contain: an image with its description; information about the object category; the skill used in the manufacture; the time required; the tools, objects and machines needed; the place where you can manufacture the object; the rot and repair rates of the object.

The article is automatically added to the corresponding subcategory of Manufacturing.

Användning

Copy the text below and paste it to the top of the page you are editing. Complete the fields with the information you want to display. Unused fields may be deleted or left incomplete.

{{Infobox:Tillverkning
| namn        =
| bild        =
| fyll_ut     =
| kommentar   =
| typ         = 
| kunskap     = 
| tid         = 
| resurser    = 
| objekt      = 
| verktyg     = 
| maskiner    = 
| plats       = 
| slitage     = 
| anv_slitage = 
| reparation  = 
| alternativ  = 
| kunskap2    = 
| tid2        = 
| resurser2   = 
| objekt2     = 
| verktyg2    = 
| maskiner2   = 
| plats2      = 
}}

Parametrar

  • namn
    • namn används för att sätta ett bra namn på infoboxen. T.ex.. för artikeln Silver (sv) sätter man namn till Silver, så ser man inte _(sv) i boxen.
    • Exempel: namn = Silver
  • bild
    • Lägg till en bild i infoboxen.
    • Exempel: bild = Bear.png
  • fyll_ut
    • Används för att tala om ifall en bild ska ha sin originalstorlek, eller om wiki ska försöka fylla ut den i infoboxen.
    • Endast aktuellt om bild har angetts. Möjliga värden är 0 och 1.
    • Exempel1: Låt bilden behålla sin originalstorlek: fyll_ut = 0
    • Exempel2: Låt bilden fyllas ut så gott det går i info-boxen: fyll_ut = 1
  • kommentar
  • typ
  • kunskap
  • tid
  • resurser
  • objekt
  • verktyg
  • maskiner
  • plats
  • slitage
  • anv_slitage
  • reparation
  • alternativ
  • kunskap2
  • tid2
  • resurser2
  • objekt2
  • verktyg2
  • maskiner2
  • plats2