Vorlage:Infobox Animal: Unterschied zwischen den Versionen

Aus Eco - Deutsches Wiki
Wechseln zu:Navigation, Suche
[unmarkierte Version][unmarkierte Version]
Die Seite wurde neu angelegt: „<includeonly> {{#invoke:Infobox_Item|ItemMain}} </includeonly> <noinclude> == Documentation == <pre> {{Infobox_Item|name = 'Item name'}} </pre> This template…“
 
Keine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>
<includeonly>
{{#invoke:Infobox_Item|ItemMain}}
{{#invoke:Infobox_Animal|AnimalMain}}
</includeonly>
</includeonly>


Zeile 6: Zeile 6:
== Documentation ==
== Documentation ==
<pre>
<pre>
{{Infobox_Item|name = 'Item name'}}
{{Infobox_Animal| name = `Animal Name`}}
</pre>
</pre>
'''Uses translated Name Not EN Name'''<br>


This template can be used to grab details relevant to an item. It formats the results into an infobox.
This template can be used to grab details relevant to an animal. It formats the results into an infobox.
 
The Infobox_Item will generate the following information, using the Module:Infobox_Animal, and Module:Animaldata.
If the template is passed, this module creates a table using details from the following Modules:
*[[Module:Infobox_Item]]
*[[Module:ItemData]]
*[[Module:CraftingRecipes]].


== Usage==
== Usage==
===Parameters===
===Parameters===
; name
; name
: The name of an item. This pulls the description for that item.
: The name of an animal. This pulls the data for that animal from [[Module:AnimalData]]


===Infobox Properies===
===Infobox Properies===
Zeile 25: Zeile 22:
<pre>
<pre>
     |name = The name of an item.
     |name = The name of an item.
    |group = Item group
More Information Coming Soon
            (Colours for groups:
            #4b9130 for Food;
            #517ab2 for Items, World Object Items, Tools, Block Items, AvatarPart, Road Items;
            #af8d33 for Skill Books, Skill Scrolls,)
    |image = ItemName_Icon.png (Game Icon)
General
    |created = Crafting station(s) crafted at, or N/A
    |calories = If group=Food then x,xxx otherwise hide
    |carbs = If group=Food then x.x otherwise hide (print 0.0 if no carbs)
    |protein = If group=Food then x.x otherwise hide (print 0.0 if no protein)
    |fat = If group=Food then x.x otherwise hide (print 0.0 if no fat)
    |vitamins = If group=Food then x.x otherwise hide (print 0.0 if no vitamins)
    |nutritiondensity = If group=Food then xcal otherwise hide   
    |carried = Backpack, Hands
    |weight =  If weight ~= nil then xkg; If nil then 0kg
    |stacklimit = If maxStack ~= nil the x (1, 10, 100)
    |fuel = If fuel ~= nil then x,xxxJ otherwise hide
    |currency = If currency ~= nil then Yes otherwise hide
IDs   
    |itemid = ExampleItem
    |itemidnumber = Item ID Number
</pre>
If .footprint (Dimension) ~= nil, or group == 'Block Item' it will generate the following:
<pre>
World Object
    |image = ItemName_Placed.png
Placement
    |Dimensions = If footprint ~= nil then x x x x x (X x Y x Z) otherwise hide
    |Material Tier = If materialTier ~= nil then Tier x otherwise hide (This is block Tiers)
    |Room Required = If ContainReq ~= nil then Yes otherwise hide
    |Room Size = if roomSizeReq ~= nil then xm³ otherwise hide
    |Room Materials = if itemTable.roomMatReq ~= nil then x otherwise hide
Housing (.roomCategory ~= nil this section will be created otherwise hide)
    |Room Category = Bedroom, Bathroom, Kitchen, General, or Industrial
    (If not Industrial, the following will appear. Industrial will say ALL ROOM VALUE LOST)
    |Furniture Type = Type of furniture (such as light, shelves, seating...)
    |Value = Items Room Value
    |Dim. Return % = Dim. return of the object
Power (If .engeryType ~= nil this section will appear otherwise hide all)
    |Energy Type:  Mechanical, Electrical...
    |Grid Radius: xm
    |Engery Produced: xJ
    |Engery Used: xJ
Fuel (If .fuelsUsed ~= nil this section will appear otherwise hide all)
    Fuels Used: List of items the objects use as fuel
</pre>
If .mobile ~= nil it will generate the following:
<pre>
Vehicle Object
    |image = ItemName_Placed.png
Fuel (If .fuelsUsed ~= nil this section will appear otherwise hide all)
    Fuels Used: List of items the objects use as fuel
</pre>
If .itemTable.group == 'Road Items' it will generate the following:
<pre>
Road Object
    |image = ItemName_Placed.png
</pre>
</pre>
''Note:'' Put the tag between <code>&lt;noinclude&gt; &lt;/noinclude&gt;</code> tags for outdated transcluded pages.


==Examples==
==Examples==


{{Infobox_Item|name = Elk Carcass}}
{{Infobox_Animal| name = Otter}}
{{Infobox_Item|name = Charcoal}}
{{Infobox_Animal| name = Wolf}}
 
{{Infobox_Animal| name = Bison}}
{{Infobox_Item|name = Huckleberries}}
{{Infobox_Animal| name = Bergziege}}
{{Infobox_Item|name = Prepared Meat}}
 
{{Infobox_Item|name = Workbench}}
{{Infobox_Item|name = Bloomery}}
{{Infobox_Item|name = Bookshelf}}
 
{{Infobox_Item|name = Wind Turbine}}
 
{{Infobox_Item|name = Iron Axe}}
 
{{Infobox_Item|name = Coal}}
{{Infobox_Item|name = Brick}}
 
{{Infobox_Item|name = Cooking Skill Scroll}}
 
{{Infobox_Item|name = Trousers}}
{{Infobox_Item|name = Stockpile}}
{{Infobox_Item|name = Wood Cart}}
{{Infobox_Item|name = Blast Furnace}}


{{Infobox_Item|name = Water}}
[[Category:Infobox Templates]]
[[Category:Infobox Templates]]


</noinclude>
</noinclude>

Aktuelle Version vom 22. September 2020, 09:55 Uhr


Documentation[Quelltext bearbeiten]

{{Infobox_Animal| name = `Animal Name`}}

Uses translated Name Not EN Name

This template can be used to grab details relevant to an animal. It formats the results into an infobox. The Infobox_Item will generate the following information, using the Module:Infobox_Animal, and Module:Animaldata.

Usage[Quelltext bearbeiten]

Parameters[Quelltext bearbeiten]

name
The name of an animal. This pulls the data for that animal from Module:AnimalData

Infobox Properies[Quelltext bearbeiten]

If .name is found it will generate the following:

    |name = The name of an item.
More Information Coming Soon

Examples[Quelltext bearbeiten]

Otter
Wassertier
General
Gesundheit: 1.0
Leerlauf: 0.5 mps
Isst: Muschel, Seeigel, Thunfisch, Lachs, Forelle
Kletterhöhe: 1.0 m
Kohlenstoff freigesetzt: 0.0200 ppm
Jagd
Ernteartikel: Otterkadaver
Flieht: Yes
Angstfaktor: 1.0
Fluchtgeschwindigkeit: 3.0 mps
Angriffschance: 60 %
Angriffsschaden: 1.0
Reichweite erkennen: 5.0 m
Angriffsreichweite: 1.0 m



Wolf
Land-Tier
General
Gesundheit: 3.2
Leerlauf: 0.5 mps
Isst: Hase, Elch, Bergziege, Reh, Truthahn, Bison
Kletterhöhe: 1.0 m
Kohlenstoff freigesetzt: 0.0200 ppm
Jagd
Ernteartikel: Wolfkadaver
Flieht: Yes
Angstfaktor: 0.0
Fluchtgeschwindigkeit: 5.0 mps
Angriffschance: 60 %
Angriffsschaden: 3.0
Reichweite erkennen: 12.5 m
Angriffsreichweite: 2.5 m



Bison
Land-Tier
Datei:NoImage.png
General
Gesundheit: 10.0
Leerlauf: 1.0 mps
Isst: Gewöhnliches Gras, Büschelgras, Weizen, Großer Blauhalm, Rutenhirse
Kletterhöhe: 1.0 m
Kohlenstoff freigesetzt: 0.2000 ppm
Jagd
Ernteartikel: Bisonkadaver
Flieht: Yes
Angstfaktor: 0.6
Fluchtgeschwindigkeit: 4.0 mps
Angriffschance: 60 %
Angriffsschaden: 1.0
Reichweite erkennen: 5.0 m
Angriffsreichweite: 1.0 m



Bergziege could not be found in Module:AnimalData.