Template:EditAtPBD/doc
Jump to navigation
Jump to search
This template is used on a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This is a documentation subpage for Template:EditAtPBD. It contains usage information, categories and other content that is not part of the original template page. |
Related pages |
---|
Uses Lua: |
Template to display an icon with a tooltip such as "Edit this at Porn Base Data"
- Icon will be linked to the PBD entry for the article where this is placed.
- The link can be modified to point to a specific property in the PBD entry by supplying the optional named parameter
|pid=
. - This message is only displayed if a local_parameter is not supplied; i.e. when called from within a template, it can be coded not to display the icon when a local parameter is in use, which means the value from PBD is not used.
- The qid of a PBD entry can optionally be supplied for testing outside the article (this is an expensive call).
Usage
{{EditAtPBD}}
Outside the article:
{{EditAtPBD |qid=<Qid of article at PBD>}}
Inside another template:
{{EditAtPBD |{{{local_parameter|}}} }}
To make the link point to the given propertyID at the PBD entry:
{{EditAtPBD |pid=<PropertyID> |local_parameter}}
Example
Usage:
- Template:EditAtPBD{{EditAtPBD}}
Output:
- Template:EditAtPBD
Template:EditAtPBD
See also
- Template:EditOnPBD, a similar template using text instead of an icon