Module:EditAtPBD/doc
Jump to navigation
Jump to search
This is the documentation page for Module:EditAtPBD
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
Related pages |
---|
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