|
|
| Line 1: |
Line 1: |
| {{Documentation subpage}} | | {{Infobox |
| <!-- Please place categories where indicated at the bottom of this page -->
| | | bodyclass = plant |
| {{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.
| | | aboveclass = plant-name |
| | | abovestyle = background:palegreen;color:inherit; |
| | | above = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}} |
|
| |
|
| == Usage == | | | image = {{{image|}}} |
| Most parameters are optional. Rows only appear if you fill them in.
| | | caption = {{{image_caption|}}} |
|
| |
|
| <syntaxhighlight lang="wikitext" style="overflow:auto;">
| | | labelstyle = padding-top:0.245em;line-height:1.15em;padding-right:0.5em; |
| {{Plant Infobox
| | | datastyle = min-width:50%;line-height:1.3em; |
| | name = | |
| | common_names =
| |
| | image =
| |
| | image_caption =
| |
| | species =
| |
| | type =
| |
| | location =
| |
| | date_planted =
| |
| | sunlight =
| |
| | water_needs =
| |
| | hardiness_zone =
| |
| | notes =
| |
| }}
| |
| </syntaxhighlight>
| |
|
| |
|
| == Parameter Reference == | | | label1 = Scientific Name |
| | | class1 = species |
| | | data1 = {{{species|}}} |
|
| |
|
| {| class="wikitable"
| | | label2 = Common Names |
| |-
| | | data2 = {{{common_names|}}} |
| ! 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 == | | | label3 = Plant Type |
| | | data3 = {{{type|}}} |
|
| |
|
| {| class="wikitable"
| | | label4 = Location |
| | '''Simple vegetable'''
| | | data4 = {{{location|}}} |
| |<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 == | | | label5 = Planted |
| | | data5 = {{{date_planted|Unknown}}} |
|
| |
|
| * [[Template:Plant Update]] – For logging plant progress over time
| | | label6 = Sunlight |
| * [[Template:Infobox]] – Base infobox template (inherited styling)
| | | data6 = {{{sunlight|}}} |
|
| |
|
| == Categories == | | | label7 = Water Needs |
| | | data7 = {{{water_needs|}}} |
|
| |
|
| * {{clc|Pages using Plant Infobox}}
| | | label8 = Hardiness Zone |
| | | data8 = {{{hardiness_zone|}}} |
|
| |
|
| <includeonly>
| | | data9 = {{{notes|}}} |
| <!-- Categories below this line; please -->
| |
| [[Category:Plant infobox templates]]
| |
| </includeonly>
| |
|
| |
|
| == Template Data ==
| | }}<noinclude> |
| | {{Documentation}} |
|
| |
|
| {{TemplateData header}}
| |
| <templatedata> | | <templatedata> |
| { | | { |
| "description": "Infobox for documenting plants in a garden. All parameters are optional.", | | "description": "Infobox for plant cultivars and garden documentation", |
| "params": { | | "params": { |
| "name": { | | "name": { |
| Line 163: |
Line 51: |
| "type": "string", | | "type": "string", |
| "required": true | | "required": true |
| },
| |
| "common_names": {
| |
| "label": "Common Names",
| |
| "description": "Alternative common names",
| |
| "type": "string"
| |
| }, | | }, |
| "image": { | | "image": { |
| "label": "Image", | | "label": "Image", |
| "description": "Image filename or full file syntax (e.g. [[File:name.jpg|250px]])", | | "description": "Image filename (without File: prefix)", |
| "type": "wiki-file-name" | | "type": "wiki-file-name", |
| | "suggested": true |
| }, | | }, |
| "image_caption": { | | "image_caption": { |
| "label": "Image Caption", | | "label": "Image Caption", |
| "description": "Caption describing the image", | | "description": "Caption for the image", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| Line 182: |
Line 66: |
| "label": "Scientific Name", | | "label": "Scientific Name", |
| "description": "Botanical/scientific name", | | "description": "Botanical/scientific name", |
| | "type": "string" |
| | }, |
| | "common_names": { |
| | "label": "Common Names", |
| | "description": "Other common names", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "type": { | | "type": { |
| "label": "Type", | | "label": "Plant Type", |
| "description": "Plant type (e.g. Annual vegetable, Perennial shrub, Herb)", | | "description": "perennial, annual, herb, shrub, etc.", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "location": { | | "location": { |
| "label": "Location", | | "label": "Location", |
| "description": "Garden location (e.g. Main Bed - South side, Front Patio)", | | "description": "Garden location (e.g. Main Bed - North side)", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| Line 197: |
Line 86: |
| "label": "Planted Date", | | "label": "Planted Date", |
| "description": "Date planted or 'Unknown'", | | "description": "Date planted or 'Unknown'", |
| "type": "date", | | "type": "date" |
| "default": "Unknown"
| |
| }, | | }, |
| "sunlight": { | | "sunlight": { |
| "label": "Sunlight", | | "label": "Sunlight", |
| "description": "Light requirements (e.g. Full sun, Partial shade)", | | "description": "Full sun, partial shade, etc.", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "water_needs": { | | "water_needs": { |
| "label": "Water Needs", | | "label": "Water Needs", |
| "description": "Watering requirements (e.g. Regular, Drought-tolerant)", | | "description": "Regular, drought-tolerant, etc.", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "hardiness_zone": { | | "hardiness_zone": { |
| "label": "Hardiness Zone", | | "label": "Hardiness Zone", |
| "description": "Cold hardiness or climate zone (e.g. Zone 5-9, Annual)", | | "description": "USDA zone or climate info", |
| "type": "string" | | "type": "string" |
| }, | | }, |
| "notes": { | | "notes": { |
| "label": "Care Notes", | | "label": "Care Notes", |
| "description": "Additional care information, variety details, or observations", | | "description": "Additional care information", |
| "type": "string" | | "type": "string" |
| } | | } |
| Line 224: |
Line 112: |
| } | | } |
| </templatedata> | | </templatedata> |
| | </noinclude> |