Module:EditAtPBD/doc

From Porn Base Central, the free encyclopedia of gay porn
Jump to navigation Jump to search

This is the documentation page for Module:EditAtPBD

Module to display an icon with a tooltip such as "Edit this at Porn Base Data"

  • Icon will be linked to the Porn Base Data entry for the article where this is placed.
  • This message is only displayed if a local_parameter is not supplied, i.e. when called from a template, it can be coded not to display the message when a local parameter is in use, preventing the value form Porn Base Data being fetched.
  • The qid of a Porn Base Data entry can optionally be supplied for testing outside the article.

Usage

To always display the icon:

  • {{#invoke:EditAtPBD|showMessage}}

To display the icon depending on a local parameter not existing:

  • {{#invoke:EditAtPBD|showMessage|local_parameter}}

To test the functionality outside of an article:

  • {{#invoke:EditAtPBD|showMessage|qid=<ArticleID>|local_parameter}}

To make the link point to the given property at the Porn Base Data entry:

  • {{#invoke:EditAtPBD|showMessage|pid=<PropertyID>|local_parameter}}

See also