HopperWiki:Resource content management

From HopperWiki
Jump to navigation Jump to search
This symbol represents the Resource theme on HopperWiki.

This page summarizes the available content mangement templates in the Resource theme on HopperWiki. The section below contains a quick reference for easily copying and pasting these special templates whose role is to efficiently insert dynamically-updated content among human-entered prose on Resource pages. In a nutshell, these templates use parameters to query HopperWiki's Resource database and then display any relevant records that are available at the spot in the page where you place the template. Use the pasteable, formatted text below on the page of your choice, or you can click the links below for more details on using these templates (including parameters that can be used to modify their behavior). If you're unfamiliar with using what MediaWiki refers to as templates it might be useful to read this introduction.

Quick reference for available templates

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.
  • {{Resources for administrative unit}}: Display resources for a focal administrative unit (i.e. state/province) 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.