Module:Seed lot/doc
More actions
This is the documentation page for Module:Seed lot
This is a documentation subpage for Seed lot. It contains usage information, categories, and other content that is not part of the original template.
Module:Seed lot records seed lots and shows their readings. A seed lot is one holder's physical holding of one accession's seed at one storage site. A lot is recorded in one of two ways, and both store the same properties, so a query reads every lot whichever way it was made:
- the holder's main lot, a subobject of the accession page named
lot(ZOM-…#lot),
built by Template:Accession from the accession's own fields:seed_storage_locationis the holder,seed_quantitythe lot's first, undated, inventory report, and thelot_fields the rest. Only an accession whose collection method is Seeds, or is not recorded, gets one: a herbarium specimen, a tissue sample or any other method never does;
- every other lot on its own page,
Lot:<accession ID>/<site code>, through
Template:Seed lot and Form:Seed lot: backups, portions passed on, and any holder's seed recorded apart from the accession page.
Inventory reports and germination tests are written as Template:Lot inventory and Template:Lot germination test calls inside the lot's report fields. Each call only hands its fields to this module; the module stores each report as a subobject naming its lot (Property:Is report on) and typed by Property:Has report type, so the lot and its reports are written in one place.
Readings
The reading of each lot comes from Module:Grow-out priority. The lot and its reports are taken from the page's own arguments, so a save shows the new reading at once; the lineage, the population and the population's other lots come from the store. The reading is stored on the lot (Property:Has seed lot step, Property:Has seed lot factors, Property:Has lot action, Property:Is queued for sowing, Property:Is small sowing, Property:Is flagged for preservation grow-out, Property:Has method version). On a field collection in a population the accession page also stores Property:Has collection step.
A reading depends on other pages (the population page, other lots, the lineage), and on the date: a test falls due with no edit. Each one says the date it was worked out. A page whose inputs changed elsewhere shows its old reading until it is parsed again.
Entry points
{{#invoke:Seed lot|primary|page={{FULLPAGENAME}}|collection_date_iso=…}}: in
Template:Accession. Stores the main lot and its reports, and returns the infobox rows for every lot of the accession; every other field is read from Template:Accession's own arguments.
{{#invoke:Seed lot|page}}: Template:Seed lot. Stores a lot page and shows it.{{#invoke:Seed lot|report|kind=inventory}}andkind=germination test:
Template:Lot inventory and Template:Lot germination test.
{{#invoke:Seed lot|pagename|accession=…|site=…}}: Form:Seed lot's page name,
numbered (2), (3) … when a page of that name exists.
Fields
Every field is described on Template:Seed lot (lot fields), Template:Lot inventory and
Template:Lot germination test (reports), and Template:Accession (the main lot's lot_ fields and the
lineage facts). Empty means not known, everywhere; nothing is filled in for a missing value.