Jump to content

Template:Plant Update: Difference between revisions

From MTRNord's Wiki
Prepare Plant Update Template
 
Ensure there is a proper template definition
Line 1: Line 1:
<includeonly></includeonly><noinclude>
{| class="wikitable plant-update"
{{TemplateData
|description=Plant update log entry with metadata for visual editor
|params=
{
  "date": {
    "label": "Date",
    "description": "Date of this update (YYYY-MM-DD)",
    "type": "date",
    "required": true
  },
  "status": {
    "label": "Status",
    "description": "Plant status (e.g. Seedling, Growth, Flowering, Fruiting)",
    "type": "string"
  },
  "observation": {
    "label": "Observation",
    "description": "What you observed about the plant",
    "type": "string",
    "required": true
  },
  "image": {
    "label": "Image",
    "description": "Photo - use [[File:name.jpg|150px]]",
    "type": "wiki-file-name"
  },
  "notes": {
    "label": "Notes",
    "description": "Additional care or management notes",
    "type": "string"
  }
}
}}
Template for logging plant updates/observations over time with visual editor support.
Usage:
{{Plant Update
|date=2025-05-15
|status=Flowering
|observation=First blooms appeared this week
|image=[[File:Example.jpg|150px]]
|notes=Watered twice this week
}}
</noinclude>{| class="wikitable plant-update"
|-
|-
| class="plant-update-date" | {{{date|Date}}}
| class="plant-update-date" | {{{date|Date}}}
Line 52: Line 9:
{{{image|}}}
{{{image|}}}


{{{notes|<div class="plant-update-notes">'''Notes:''' {{{notes|}}}</div>}}}
{{#if:{{{notes|}}}|<div class="plant-update-notes">'''Notes:''' {{{notes}}}</div>}}
|}
|}
<noinclude>
{{Documentation}}
<templatedata>
{
  "description": "Log entry for plant observations and updates over time",
  "params": {
    "date": {
      "label": "Date",
      "description": "Date of this update (YYYY-MM-DD)",
      "type": "date",
      "required": true
    },
    "status": {
      "label": "Status",
      "description": "Plant status (e.g. Seedling, Growth, Flowering, Fruiting, Dormant)",
      "type": "string"
    },
    "observation": {
      "label": "Observation",
      "description": "What you observed about the plant",
      "type": "string",
      "required": true
    },
    "image": {
      "label": "Image",
      "description": "Photo - use [[File:name.jpg|150px]]",
      "type": "wiki-file-name"
    },
    "notes": {
      "label": "Notes",
      "description": "Additional care or management notes",
      "type": "string"
    }
  },
  "format": "block"
}
</templatedata>
</noinclude>

Revision as of 21:12, 21 April 2026

Date Status: —

Observation:




Log entry for plant observations and updates over time

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Datedate

Date of this update (YYYY-MM-DD)

Daterequired
Statusstatus

Plant status (e.g. Seedling, Growth, Flowering, Fruiting, Dormant)

Stringoptional
Observationobservation

What you observed about the plant

Stringrequired
Imageimage

Photo - use [[File:name.jpg|150px]]

Fileoptional
Notesnotes

Additional care or management notes

Stringoptional