wiki:Templated Extensions  

Documentation

The following are links to pages in the Template namespace that extend the Wikibase functionality or provide workarounds for limitations.

Contents [hide]

Tables

  • ! - useful for hiding a pipe (|) for one level of compilation.
  • !- - useful for hiding a pipe-dash (|-) for one level of compilation.
  • equal - useful for hiding a equals sign (=) for one level of compilation.

String Manipulation

  • ltrim - removes leading spaces from a string
  • rtrim - removes trailing spaces from a string
  • alltrim - removes leading and trailing spaces from a string
  • Proper Name - makes each word of a string conform to {{ucfirst:}}
    • This would turn "JACK and the beanstalk" into "Jack And The Beanstalk"
  • IsAlpha - If the string contains any Alpha characters this function returns 1 (TRUE), else it returns blank (false).
  • IsNum - If the string contains any Alpha characters this function returns blank (FALSE), else it returns 1 (TRUE).

PAGENAME Manipulation

A PAGENAME has the format NameSpace:PageName (Suffix). The following templates allow the retrieval of specific portions of the full PAGENAME:

  • PAGENAMENS - returns the PageName with any (Suffix) stripped
  • PAGENAMESX - returns the Suffix portion of a PAGENAME (without the parentheses)
  • FULLPAGENAME - returns the full nameSpace:PageName (Suffix)
  • FULLPAGENAMEE - returns the url-encoded full nameSpace:PageName_(Suffix)

User Signing

  • User - inserts a link to the named user's User: page, with links to contributions and journal, if it exists, or the ZAM user profile if it does not.

Auto-Disambiguation

For every DB Namespace, such as Rift Mob:, there is (potentially) a matching template used when generating Disambiguation pages, such as Template:Rift Mob Disambiguation.

Anything that can normally be used in a template can be used here, but it is intended to be a single line using one or more {{#db:}} functions to pull specific fields from the database.

This page last modified 2012-06-02 13:48:49.