Module:PornBaseDataIB: Difference between revisions
Content deleted Content added
PeaceDeadC (talk | contribs) Created page with "-- Version: 2020-11-08 -- Module to implement use of a blacklist and whitelist for infobox fields -- Can take a named parameter |qid which is the PornBaseData ID for the artic..." |
PeaceDeadC (talk | contribs) No edit summary |
||
Line 577:
-- see if item might need italics or quotes
local fmt = ""
for k, v in ipairs( mw.wikibase.getBestStatements(id, "
if v.mainsnak.datavalue and formats[v.mainsnak.datavalue.value.id] then
fmt = formats[v.mainsnak.datavalue.value.id]
Line 3,106:
-- or from the PornBaseData item associated with the current page if qid is not supplied.
-- It only checks ranks that are requested (preferred and normal by default)
-- If property is not supplied, then
-- It returns val if found or nothing if not found.
-- e.g. {{#invoke:PornBaseDataIB |checkvalue |val=Q5 |pid=
-- or {{#invoke:PornBaseDataIB |checkvalue |val=Q5 |
-- or {{#invoke:PornBaseDataIB |checkvalue |val=Q5 |qid=Q42}}
-- or {{#invoke:PornBaseDataIB |checkvalue |val=Q5 |
-------------------------------------------------------------------------------
-- Dependencies: none
| |||