m (naimportována 1 revize: Import EN templates) |
Renzotom-gpuser (diskuse | příspěvky) (Přeložení obsahu tabulky) |
||
Řádek 1: | Řádek 1: | ||
<includeonly>{{#invoke:infobox|infobox |
<includeonly>{{#invoke:infobox|infobox |
||
| rows = |
| rows = |
||
− | {{infobox row|label= |
+ | {{infobox row|label=Typ|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }} |
− | {{infobox row|label=[[Food| |
+ | {{infobox row|label=[[Food|Obnovuje]]|field={{ #if: {{{heals|}}} | {{{heals}}} | ? }} }} |
− | {{infobox row|label= |
+ | {{infobox row|label=Vařitelné|field={{ #if: {{{cookable|}}} | {{{cookable}}} | ? }} }} |
− | {{infobox row|label=[[Renewable resource| |
+ | {{infobox row|label=[[Renewable resource|Obnovitelné]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | Yes }} }} |
− | {{infobox row|label= |
+ | {{infobox row|label=Slučovatelné|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? }} }} |
{{#if: {{{light|}}} | {{infobox row|label=[[Light|Luminance]]|field={{{light}}}}} }} |
{{#if: {{{light|}}} | {{infobox row|label=[[Light|Luminance]]|field={{{light}}}}} }} |
||
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }} |
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }} |
||
Řádek 17: | Řádek 17: | ||
{{#if: {{{multipledata|}}} |
{{#if: {{{multipledata|}}} |
||
| {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} |
| {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} |
||
− | | {{infobox row|label=[[Data values|Data |
+ | | {{infobox row|label=[[Data values|Data hodnota]]|field={{data value|{{{data|}}}}} }} |
}} |
}} |
||
{{#ifeq: {{lc: {{{nameid}}} }} | none |
{{#ifeq: {{lc: {{{nameid}}} }} | none |
||
| |
| |
||
− | | {{infobox row|label=[[Data values| |
+ | | {{infobox row|label=[[Data values|Název]]|field={{ |
#if: {{{nameid|}}} |
#if: {{{nameid|}}} |
||
| {{{nameid}}} |
| {{{nameid}}} |
Verze z 7. 4. 2018, 11:28
This template uses Module:Infobox, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.
Please see wp:Lua and mw:Extension:Scribunto to learn more.
Food
Typ |
? |
---|---|
Obnovuje |
? |
Vařitelné |
? |
Obnovitelné |
Yes |
Slučovatelné |
? |
Data hodnota |
dec: ? hex: ? bin: ? |
Název |
food |
This template provides a uniform design for food pages.
{{Food |title= |image= |invimage= |type= |heals= |cookable= |stackable= |light= |experience= |firstver= |firstdev= |data1name= |data1= |data2name= |data2= |nameid= }}
Parameter | Function | Default value |
---|---|---|
title |
Optional value to use a different title instead of the page name | {{BASEPAGENAME}}
|
image |
Image of the food (should be approx. 150×150px) | {{{title}}}.png if it exists, otherwise No image.svg (linking to the page where to upload the missing image)
|
imageN |
Other images for multistate foods (also approx. 150×150px) | None |
invimage |
Image for object in inventory. Can use None to force no invimage. Uses Template:Grid. | Grid {{{title}}}.png if it exists, otherwise None
|
invimageN |
Other images for object in inventory. Uses Template:Grid. | None |
type |
Type | ? |
heals |
Restores | ? |
cookable |
Cookable | ? |
stackable |
Stackable | ? |
light |
Emits Light? If "Yes," add the light value like this: "Yes, 9" | None |
experience |
Gives experience? If so, add the value like this: "Cooked: 0.5" | None |
firstver |
First version that it was seen in (e.g. Alpha 1.0.17, classic 0.0.23a). | None |
firstdev |
First development snapshot it was seen in, requires firstver. | None |
data1name |
Dec Value name (Only needed if there's 2 data values) | ? |
data1 |
Dec Value | 00 |
data2name |
Second Dec Value name | ? |
data2 |
Second Dec Value | ? |
nameid |
The food's named identifier. Can use None to force no name ID. | title or {{BASEPAGENAME}}
|
See also
{{3rd Party Tool}}
{{Block}}
{{BlockTileEntity}}
{{Company}}
{{Entity}}
{{Food}}
{{Gamemode}}
{{Item}}
{{ItemEntity}}
{{Mod}}
{{Person}}
{{Profile}}
{{Program}}
{{Structure}}
{{Technical Block}}
{{Version nav}}
- Module:Infobox
[view | edit | history | purge]The above documentation is transcluded from Šablona:Food/doc.