Module:InfoboxWB/doc

This is a helper module for retrieving data from bahaidata.org. It is intended to be referenced by a template which is used on a page that is already connected to a wikibase item. It does not support retrieving specific items or their properties from bahaidata since this module is specific to infoboxes used on pages which should always have a corresponding connected bahaidata page.

Functions[edit]

  • getBirthName
  • getBirthDate
  • getBirthPlace
  • getBirthCountry
  • getCoordinates
  • getDeclarationDate
  • getDeathDate
  • getDeathPlace
  • getDeathCountry
  • getDeceasedAge (The age of the individual at the time of their death)
  • getImage
  • getImageCaption
  • getSisterProjects
  • getPositionsWithDates

Parameters[edit]

  • lang, used to specify a language you want retrieved and displayed if other then English. If the requested language value doesn't exist then the English language value is displayed.
  • format, used to modify the display format for dates, options are mdy (default) and dmy

Examples[edit]

Basic[edit]

  • {{#invoke:InfoboxWB|getDeathPlace}}
  • {{#invoke:InfoboxWB|getImageCaption}}
  • {{#invoke:InfoboxWB|getDeathDate}}

Lang parameter[edit]

  • {{#invoke:InfoboxWB|getImageCaption|lang=es}}

Format parameter[edit]

  • {{#invoke:InfoboxWB|getDeathDate|format=dmy}}

To do[edit]

The adaptation so far is intended for use with Template:Infobox Person but more infoboxes can be supported by adding more functions. Need to identify other data which is suitable, what functions are needed and add/test/integrate them back into the respective templates.

Table Of Contents