HopperWiki:Structured data
Main content management template summary here
Across each 'theme' on the wiki there is usually a Lua Module which contains all the functions pertaining to that theme. Then, depending on need, various templates can access and display the results of any combination of the functions stored in the module.
Cargo querying
Base modules and templates
- Module:Cargo query—The single entry point for all Cargo queries.
2026 conversion
These templates have been converted to the new system.
JSON field maps
Every data type, whether it is stored in JSON or Cargo, has a JSON field map that the wiki architecture uses to know the type of each field (e.g. a string, a page, a list of strings, list of pages, url, file, etc.). Here is a list of these field maps.
- JSON:Organization field map
- JSON:Species field map
- JSON:Resource field map
- JSON:Subresource field map
Geography
Main Module
Cargo and infobox
- Template:Geography: Stores Cargo data only
- Template:Geography infobox: Calls the infobox function
Page content management
HopperWiki:Geography content management
Other
- Template:Country location image: "Band-aid" for country location map image file names that need to be patched because they do not fit the wiki standard
GeoJson namespace
The GeoJson namespace is a namespace on the wiki that stores GeoJson files for use with maps.
Organization
Per our current schema there are two types of organizations: child organizations ("normal" organization of the wiki), and parent organizations.
Main module
Data pages
- Data:Department: This is where all Cargo information for data is stored as departments do not have independent pages.
Cargo and Infobox
Page content management
HopperWiki:Organization content management
Person
Main Module
Cargo and infobox
- Template:Person: Stores Cargo data and invokes infobox
- Template:Person infobox Calls the infobox function
Page content management
HopperWiki:Person content management
Resource
Per our current schema there are two types hierarchical levels in this theme resources and subresources. Only some resources are composed of subresources and this is when a resources is composed of multiple files or video links, etc. The
Main module
Data pages
- Data:Subresource This simple page holds the Cargo template calls for all the subresources (basically declaring the parent resource they belong to).
Cargo and Infobox
- Template:Resource Stores Cargo data and creates infobox
- Template:Subresource Stores Cargo data only (no infobox needed as this is on the parent resource page)
- Special:CargoTables/Resource Cargo table containing resources
- Special:CargoTables/Subresource Cargo table containing subresources
Page content management
HopperWiki:Resource content management
Species
Main Module
Cargo and infobox
- Template:Species: Stores Cargo data and invokes infobox
- Template:Taxon infobox: Calls the infobox function