HopperWiki:Content management
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. These templates are generally used to access structured data content, format it, and display it across the various 'themes' of the wiki (e.g. Species, Organization, Resource, Person, Project, etc.).
Geography
Click here for full details...
General content creation
{{Geography infobox}}
: Creates the infobox for a geography page Learn more here.
{{Geography content}}
: Lists child geography for a given focal page, as well as lists of organizations and resources. Learn more here.
Organization
Click here for full details...
General content creation
{{Organization infobox}}
: Returns the infobox for a focal organization Learn more here.
{{Related organization list}}
: Returns the list of the related organizations for a focal orgainzation Learn more here.
Querying/filtering
{{Organizations for species}}
: Returns organizations based on the `Species` field Learn more here.
{{Organizations for type}}
: Returns organizations based on the `Type` field Learn more here.
{{Organizations for focus}}
: Returns organizations based on the `Focus` field Learn more here.
{{Organizations for focus keyword}}
: Returns organizations based on the `Focus keywords` field Learn more here.
Person
Click here for full details...
General content creation
{{Person biography}}
: Calls the biography function to fetch the biography text for a focal page with no header Learn more here.
{{Person biography header}}
: Calls the biography function to fetch the biography text for a focal page and includes a wiki header Learn more here.
{{Person gallery}}
: Generates a simple gallery of people based on a comma-delimited list of full names Learn more here.
{{Person bio box}}
: Generates a box with a person's photo and biography if they are available Learn more here.
{{User bio}}
: This function is deprecated and should no longer be used. For historic reasons it is kept in place. This template also calls the biography function and is redundant with the above template. This version is used on pages that were not individual person pages (like the GLI network expert identifiers) to fetch the biography text for a focal page. We could remove this function later and make all pages use Template:Person biography. Learn more here.
Filtering structured data from Cargo
Miscellaneous
{{User to person}}
: Invokes a function that connects a user's MediaWiki base user account page to their nicer looking Person page. Learn more here.
Project
General content creation
{{Project content}}
: Adds generic content for a project page Learn more here.
Filtering structured data from Cargo
{{Projects for descriptive keyword}}
: Query projects for one or more focal keywords Learn more here.
Click here for full details...
Publication
Click here for full details...
General content creation
Filtering structured data from Cargo
{{Publications for project}}
: Calls a function that queries publications based on their connection to a project Learn more here.
Resource
Click here for full details...
Per our current schema there are two 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.
General content creation
{{Resource content}}
: Invokes functions that provide resource description and lists subresources (if they exist) in the body of a given resource page Learn more here.
Filtering structured data from Cargo
One-column filtering templates
{{Resources for species}}
: Display a table of resources for focal species. Learn more here.
{{Resources for organization}}
: Display a table of the resources for focal organizations. Learn more here.
{{Resources for project}}
: Display a table of the resources for focal projects. Learn more here.
{{Resources for descriptive keyword}}
: Display a table of the resources for focal descriptive keywords. Learn more here.
{{Resources for category}}
: Display resources for focal categories Learn more here.
Two-column filtering templates
{{Media resources for species}}
: Display only the media resources for focal species Learn more here.
{{Identification resources for species}}
: Display only the identification resources for focal species Learn more here.
{{Other resources for species}}
: Display all resources except for 1) Identification and 2) Media resources for a focal species Learn more here.
Species
Click here for full details...
General content creation
{{Higher taxon content}}
: Calls the get_taxon_list function to produce list of daughter taxa for focal rank Learn more here.
Filtering structured data from Cargo
{{Species for administrative unit}}
: Returns a table of species for a given administrative unit Learn more here.
{{Species identification resources}}
: Returns identification resources for a focal species Learn more here.
{{Species management resources}}
: Returns management resources for a focal species Learn more here.
{{Species media}}
: Returns media resources for a focal species Learn more here.
{{OSF}}
: Returns identification resources for a focal species Learn more here.
Filtering structured images from Cargo
{{Species gallery}}
: Returns a gallery of the profile photos of specified species. Learn more here.
More complex Cargo queries
If you need a Cargo query that is more complex (needs to display data based on logic across more than one table or field), then use this function:Template:Cargo