Difference between revisions of "Template:Crop"
Jump to navigation
Jump to search
m (Changed to look more like Template:Infobox) |
|||
Line 1: | Line 1: | ||
<includeonly>{{infobox common | <includeonly><!--{{infobox common | ||
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No block image.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|150px|center]]{{ | | imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No block image.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|150px|center]]{{ | ||
#if: {{{image2|}}} | {{{image2}}} | {{#ifexist: File:{{BASEPAGENAME}}_growth.png | [[File:{{BASEPAGENAME}}_growth.png|150px|center]]}} }} | #if: {{{image2|}}} | {{{image2}}} | {{#ifexist: File:{{BASEPAGENAME}}_growth.png | [[File:{{BASEPAGENAME}}_growth.png|150px|center]]}} }} | ||
Line 10: | Line 10: | ||
{{infobox row|label = Special Conditions |field = {{ #if: {{{conditions|}}} | {{{conditions}}} | ? }} }} | {{infobox row|label = Special Conditions |field = {{ #if: {{{conditions|}}} | {{{conditions}}} | ? }} }} | ||
}} | }} | ||
-->{| class="infobox {{{class|}}}" | |||
! colspan="2" class="infoboxFirstHeader" | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | |||
|- class="infoboxBlockImage" | |||
| colspan="2" | [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | Picture na.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|148px|center]] | |||
|- | |||
| Tier || {{#if: {{{tier|}}}|{{{tier}}}| ? }} | |||
|- | |||
| Source || {{#if: {{{source|}}}|{{{source}}}| ? }} | |||
|- | |||
| Drops || {{#if: {{{drops|}}}|{{{drops}}}| ? }} | |||
|- | |||
| Discovered By || {{#if: {{{discoverer|}}}|{{{discoverer}}}| ? }} | |||
|- | |||
| Keywords || {{#if: {{{keywords|}}}|{{{keywords}}}| ? }} | |||
|- | |||
| Special Conditions || {{#if: {{{conditions|}}}|{{{conditions}}}| ? }} | |||
|}</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 18:49, 6 April 2015
Like Template:Infobox but for Crops!
Parameters[edit]
Crop | |
---|---|
Tier | ? |
Source | ? |
Drops | ? |
Discovered By | ? |
Keywords | ? |
Special Conditions | ? |
Full, blank parameters to be copied into pages:
{{Crop |title= |image= |tier= |source= |drops= |discoverer= |keywords= |conditions= }}
Parameter | Function | Default value |
---|---|---|
title |
Only needed to change the title from the page name | {{BASEPAGENAME}}
|
image |
Image of the crop (it's scaled to 148px) | File:{{BASEPAGENAME}}.png if it exists, otherwise Picture na.png (linking to the page where to upload the missing image)
|
tier |
The crop tier | ?
|
source |
Source on how to plant | ?
|
drops |
The item cropped by the crop | ?
|
discoverer |
Crop discoverer | ?
|
keywords |
Keywords from Cropnalyzer | ?
|
conditions |
Special conditions needed for growing | ?
|
Example[edit]
Code | Result | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Crop |title=Pumpkin |image=Macerator_ig.png |tier=1 |source=Pumpkin Seeds |drops=Pumpkins |discoverer=Notch |keywords=Orange, Decoration, Stem |conditions=None }} |
|
The above documentation is transcluded from Template:Crop/doc. (edit | history)