Template:Plant Infobox: Difference between revisions
Use the wikipedia template instead |
Fix the templatedata hopefully |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Documentation subpage}} | ||
| | <!-- Please place categories where indicated at the bottom of this page --> | ||
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} | |||
{{Generic template demo |name |common_names |image |image_caption |species |type |location |date_planted |sunlight |water_needs |hardiness_zone |notes}} | |||
This template creates an [[Help:Infoboxes|infobox]] for documenting plants in your garden. | |||
== Usage == | |||
Most parameters are optional. Rows only appear if you fill them in. | |||
<syntaxhighlight lang="wikitext" style="overflow:auto;"> | |||
| | {{Plant Infobox | ||
| name = | |||
| common_names = | |||
| image = | |||
| image_caption = | |||
| species = | |||
| type = | |||
| location = | |||
| date_planted = | |||
| sunlight = | |||
| water_needs = | |||
| hardiness_zone = | |||
| notes = | |||
}} | |||
</syntaxhighlight> | |||
== Parameter Reference == | |||
| | {| class="wikitable" | ||
| | |- | ||
| | ! Parameter !! Description !! Example | ||
|- | |||
| '''name''' || Common name of the plant (required) || Tomato, Rose Bush, Basil | |||
|- | |||
| '''common_names''' || Alternative common names || Tomate, Solanum, Garden Rose | |||
|- | |||
| '''image''' || Image filename or full file syntax || <nowiki>[[File:Tomato.jpg|250px]]</nowiki> | |||
|- | |||
| '''image_caption''' || Caption for the image || Mature plant in July | |||
|- | |||
| '''species''' || Scientific/botanical name || ''Solanum lycopersicum'' | |||
|- | |||
| '''type''' || Plant type || Annual vegetable, Perennial herb, Shrub | |||
|- | |||
| '''location''' || Where in your garden || Main Bed - South side, Front Patio | |||
|- | |||
| '''date_planted''' || When planted (or "Unknown") || 2025-04-15 | |||
|- | |||
| '''sunlight''' || Light requirements || Full sun (6+ hours), Partial shade | |||
|- | |||
| '''water_needs''' || Watering needs || Regular, Drought-tolerant | |||
|- | |||
| '''hardiness_zone''' || Cold hardiness || Zone 5-9, Annual (all zones) | |||
|- | |||
| '''notes''' || Care tips and observations || Heritage variety. Prune suckers regularly. | |||
|} | |||
== Examples == | |||
| | {| class="wikitable" | ||
| | | '''Simple vegetable''' | ||
|<syntaxhighlight lang="wikitext">{{Plant Infobox | |||
| name = Tomato | |||
| common_names = Tomate, Love apple | |||
| image = [[File:Tomato.jpg|250px]] | |||
| image_caption = Mature plant bearing fruit | |||
| species = ''Solanum lycopersicum'' | |||
| type = Annual vegetable | |||
| location = Main Bed - South side | |||
| date_planted = 2025-04-15 | |||
| sunlight = Full sun (6+ hours) | |||
| water_needs = Regular, 1-2 inches per week | |||
| hardiness_zone = Annual (all zones) | |||
| notes = Heritage 'Brandywine' variety. Excellent flavor. Prune lower leaves for airflow. | |||
}}</syntaxhighlight> | |||
|{{Plant Infobox | |||
| name = Tomato | |||
| common_names = Tomate, Love apple | |||
| image = [[File:Example.jpg|250px]] | |||
| image_caption = Mature plant bearing fruit | |||
| species = ''Solanum lycopersicum'' | |||
| type = Annual vegetable | |||
| location = Main Bed - South side | |||
| date_planted = 2025-04-15 | |||
| sunlight = Full sun (6+ hours) | |||
| water_needs = Regular, 1-2 inches per week | |||
| hardiness_zone = Annual (all zones) | |||
| notes = Heritage 'Brandywine' variety. Excellent flavor. Prune lower leaves for airflow. | |||
}} | |||
|- | |||
| '''Perennial flower (unknown planting date)''' | |||
|<syntaxhighlight lang="wikitext">{{Plant Infobox | |||
| name = Rose Bush | |||
| common_names = Peace Rose, Garden Rose | |||
| image = [[File:Rose.jpg|250px]] | |||
| image_caption = Pink blooms in summer | |||
| species = ''Rosa × damascena'' | |||
| type = Perennial shrub | |||
| location = Front Patio - South-facing wall | |||
| date_planted = Unknown | |||
| sunlight = Full sun (6+ hours) | |||
| water_needs = Regular, 1 inch per week | |||
| hardiness_zone = Zones 5-9 | |||
| notes = Established plant, at least 3 years old. Fragrance excellent in mornings. | |||
}}</syntaxhighlight> | |||
|{{Plant Infobox | |||
| name = Rose Bush | |||
| common_names = Peace Rose, Garden Rose | |||
| image = [[File:Example.jpg|250px]] | |||
| image_caption = Pink blooms in summer | |||
| species = ''Rosa × damascena'' | |||
| type = Perennial shrub | |||
| location = Front Patio - South-facing wall | |||
| date_planted = Unknown | |||
| sunlight = Full sun (6+ hours) | |||
| water_needs = Regular, 1 inch per week | |||
| hardiness_zone = Zones 5-9 | |||
| notes = Established plant, at least 3 years old. Fragrance excellent in mornings. | |||
}} | |||
|- | |||
| '''Herb (minimal information)''' | |||
|<syntaxhighlight lang="wikitext">{{Plant Infobox | |||
| name = Basil | |||
| species = ''Ocimum basilicum'' | |||
| type = Annual herb | |||
| location = Kitchen herb bed | |||
| notes = Italian variety for cooking | |||
}}</syntaxhighlight> | |||
|{{Plant Infobox | |||
| name = Basil | |||
| species = ''Ocimum basilicum'' | |||
| type = Annual herb | |||
| location = Kitchen herb bed | |||
| notes = Italian variety for cooking | |||
}} | |||
|} | |||
== See Also == | |||
* [[Template:Plant Update]] – For logging plant progress over time | |||
* [[Template:Infobox]] – Base infobox template (inherited styling) | |||
== Categories == | |||
* {{clc|Pages using Plant Infobox}} | |||
<includeonly> | |||
<!-- Categories below this line; please --> | |||
[[Category:Plant infobox templates]] | |||
</includeonly> | |||
== Template Data == | |||
}}< | {{TemplateData header}} | ||
<templatedata> | |||
{ | { | ||
"name": { | "description": "Infobox for documenting plants in a garden. All parameters are optional.", | ||
"params": { | |||
"name": { | |||
"label": "Plant Name", | |||
"description": "Common name of the plant", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"common_names": { | |||
"label": "Common Names", | |||
"description": "Alternative common names", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Image filename or full file syntax (e.g. [[File:name.jpg|250px]])", | |||
"type": "wiki-file-name" | |||
}, | |||
"image_caption": { | |||
"label": "Image Caption", | |||
"description": "Caption describing the image", | |||
"type": "string" | |||
}, | |||
"species": { | |||
"label": "Scientific Name", | |||
"description": "Botanical/scientific name", | |||
"type": "string" | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "Plant type (e.g. Annual vegetable, Perennial shrub, Herb)", | |||
"type": "string" | |||
}, | |||
"location": { | |||
"label": "Location", | |||
"description": "Garden location (e.g. Main Bed - South side, Front Patio)", | |||
"type": "string" | |||
}, | |||
"date_planted": { | |||
"label": "Planted Date", | |||
"description": "Date planted or 'Unknown'", | |||
"type": "date", | |||
"default": "Unknown" | |||
}, | |||
"sunlight": { | |||
"label": "Sunlight", | |||
"description": "Light requirements (e.g. Full sun, Partial shade)", | |||
"type": "string" | |||
}, | |||
"water_needs": { | |||
"label": "Water Needs", | |||
"description": "Watering requirements (e.g. Regular, Drought-tolerant)", | |||
"type": "string" | |||
}, | |||
"type": "string" | "hardiness_zone": { | ||
"label": "Hardiness Zone", | |||
"description": "Cold hardiness or climate zone (e.g. Zone 5-9, Annual)", | |||
"type": "string" | |||
}, | |||
"notes": { | |||
"label": "Care Notes", | |||
"description": "Additional care information, variety details, or observations", | |||
"type": "string" | |||
} | |||
}, | }, | ||
" | "format": "block" | ||
} | } | ||
</templatedata> | |||
</ | |||
Revision as of 18:56, 21 April 2026
| This template uses Lua: |
Template:Generic template demo
This template creates an infobox for documenting plants in your garden.
Usage
Most parameters are optional. Rows only appear if you fill them in.
{{Plant Infobox
| name =
| common_names =
| image =
| image_caption =
| species =
| type =
| location =
| date_planted =
| sunlight =
| water_needs =
| hardiness_zone =
| notes =
}}Parameter Reference
| Parameter | Description | Example |
|---|---|---|
| name | Common name of the plant (required) | Tomato, Rose Bush, Basil |
| common_names | Alternative common names | Tomate, Solanum, Garden Rose |
| image | Image filename or full file syntax | [[File:Tomato.jpg|250px]] |
| image_caption | Caption for the image | Mature plant in July |
| species | Scientific/botanical name | Solanum lycopersicum |
| type | Plant type | Annual vegetable, Perennial herb, Shrub |
| location | Where in your garden | Main Bed - South side, Front Patio |
| date_planted | When planted (or "Unknown") | 2025-04-15 |
| sunlight | Light requirements | Full sun (6+ hours), Partial shade |
| water_needs | Watering needs | Regular, Drought-tolerant |
| hardiness_zone | Cold hardiness | Zone 5-9, Annual (all zones) |
| notes | Care tips and observations | Heritage variety. Prune suckers regularly. |
Examples
| Simple vegetable | {{Plant Infobox
| name = Tomato
| common_names = Tomate, Love apple
| image = [[File:Tomato.jpg|250px]]
| image_caption = Mature plant bearing fruit
| species = ''Solanum lycopersicum''
| type = Annual vegetable
| location = Main Bed - South side
| date_planted = 2025-04-15
| sunlight = Full sun (6+ hours)
| water_needs = Regular, 1-2 inches per week
| hardiness_zone = Annual (all zones)
| notes = Heritage 'Brandywine' variety. Excellent flavor. Prune lower leaves for airflow.
}} |
Template:Generic template demo This template creates an infobox for documenting plants in your garden. UsageMost parameters are optional. Rows only appear if you fill them in. {{Plant Infobox
| name =
| common_names =
| image =
| image_caption =
| species =
| type =
| location =
| date_planted =
| sunlight =
| water_needs =
| hardiness_zone =
| notes =
}}Parameter Reference
Examples
See Also
Categories
Template DataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Plant Infobox in articles based on its TemplateData.
TemplateData for Plant Infobox Infobox for documenting plants in a garden. All parameters are optional.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Perennial flower (unknown planting date) | {{Plant Infobox
| name = Rose Bush
| common_names = Peace Rose, Garden Rose
| image = [[File:Rose.jpg|250px]]
| image_caption = Pink blooms in summer
| species = ''Rosa × damascena''
| type = Perennial shrub
| location = Front Patio - South-facing wall
| date_planted = Unknown
| sunlight = Full sun (6+ hours)
| water_needs = Regular, 1 inch per week
| hardiness_zone = Zones 5-9
| notes = Established plant, at least 3 years old. Fragrance excellent in mornings.
}} |
Template:Generic template demo This template creates an infobox for documenting plants in your garden. UsageMost parameters are optional. Rows only appear if you fill them in. {{Plant Infobox
| name =
| common_names =
| image =
| image_caption =
| species =
| type =
| location =
| date_planted =
| sunlight =
| water_needs =
| hardiness_zone =
| notes =
}}Parameter Reference
Examples
See Also
Categories
Template DataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Plant Infobox in articles based on its TemplateData.
TemplateData for Plant Infobox Infobox for documenting plants in a garden. All parameters are optional.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Herb (minimal information) | {{Plant Infobox
| name = Basil
| species = ''Ocimum basilicum''
| type = Annual herb
| location = Kitchen herb bed
| notes = Italian variety for cooking
}} |
Template:Generic template demo This template creates an infobox for documenting plants in your garden. UsageMost parameters are optional. Rows only appear if you fill them in. {{Plant Infobox
| name =
| common_names =
| image =
| image_caption =
| species =
| type =
| location =
| date_planted =
| sunlight =
| water_needs =
| hardiness_zone =
| notes =
}}Parameter Reference
Examples
See Also
Categories
Template DataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Plant Infobox in articles based on its TemplateData.
TemplateData for Plant Infobox Infobox for documenting plants in a garden. All parameters are optional.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Also
- Template:Plant Update – For logging plant progress over time
- Template:Infobox – Base infobox template (inherited styling)
Categories
Template Data
TemplateData for Plant Infobox
Infobox for documenting plants in a garden. All parameters are optional.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Plant Name | name | Common name of the plant | String | required |
| Common Names | common_names | Alternative common names | String | optional |
| Image | image | Image filename or full file syntax (e.g. [[File:name.jpg|250px]]) | File | optional |
| Image Caption | image_caption | Caption describing the image | String | optional |
| Scientific Name | species | Botanical/scientific name | String | optional |
| Type | type | Plant type (e.g. Annual vegetable, Perennial shrub, Herb) | String | optional |
| Location | location | Garden location (e.g. Main Bed - South side, Front Patio) | String | optional |
| Planted Date | date_planted | Date planted or 'Unknown'
| Date | optional |
| Sunlight | sunlight | Light requirements (e.g. Full sun, Partial shade) | String | optional |
| Water Needs | water_needs | Watering requirements (e.g. Regular, Drought-tolerant) | String | optional |
| Hardiness Zone | hardiness_zone | Cold hardiness or climate zone (e.g. Zone 5-9, Annual) | String | optional |
| Care Notes | notes | Additional care information, variety details, or observations | String | optional |