HopperWiki:Developer dashboard

From HopperWiki
Jump to navigation Jump to search

Sandboxes

Quality control links

Built into MediaWiki

Custom HopperWiki

Content creation from 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.

Species

Main Module

Module:Species

Cargo and infobox

Page content management

Person

Main Module

Module:Person

Cargo and infobox

Page content management

  • Template:Person biography: Calls the biography function to fetch the biography text for a focal page
  • Template:User_bio: For historic reasons, 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.

Connecting User and Person pages

Geography

Main Module

Module:Geography

Cargo and infobox

Page content management

  • Template:Geography content: Pulls in lists of child geography for a given focal page, as well as lists of organizations and resources.

Other

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

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

Page content management

  • Template:Resource content Invokes functions that provide resource description, list subresources (if they exist), and provide other information in the body of a given resource page
  • Template:Resource by category This template is a wrapper around a Cargo query where resources can be queried using a single resource category.
    • It can be used like this: {{Resource by category|category=information hub|row_cutoff=30|character_cutoff=500}}
  • Template:Resource by keyword This template is a wrapper around a Cargo query where resources can be queried by using a single resource keyword.
    • It can be used like this: {{Resource by keyword|keyword=management|row_cutoff=30|character_cutoff=500}}

Mira's note

Template references

{{Species media}} {{Species identification resources}}

Override default

{{Resource by category|category=information hub|row_cutoff=30|character_cutoff=500}}

Modules that store custom Lua helper functions

Other helper modules