Mòdul:Wikidades/proves: diferència entre les revisions
Contingut suprimit Contingut afegit
getParentObjects with label icon in labels |
separant upto en number/string, pas previ per migrar a uptolabelid |
||
Línia 1:
-- version
local p = {}
Línia 1.506:
editicon,
labelicon,
upto_number,
upto_label,
upto_value,
last_only,
grammatical_case,
include_self)
if
local upto_link_ids = {}
for q in mw.text.gsplit(
upto_link_ids[resolveEntityId(q)] = true
end
local propertySups = mw.text.split(propertySupString, '[^P%d]')
local lastlabel = uc_first(
local maxloop = tonumber(
local labelFilter = {}
Linha 1.604 ⟶ 1.605:
end
-- Returns pairs of
function p.getParentValues(frame)
local args = frame.args or frame -- via invoke or require
Linha 1.619 ⟶ 1.620:
local property_format = getArg(args.formatting)
local label_format = getArg(args.labelformat, "label")
local
local last_only = getArg(args.last_only, false)
local labelShow = getArg(args.labelshow)
Linha 1.626 ⟶ 1.627:
local case = getArg(args.case)
local upto_label
if isSet(args.uptolabelid) then
elseif type(upto_number) == 'string' then
upto_label = upto_number
upto_number = nil
require(wiki.module_title .. '/debug').track('upto') -- replace by uptolabelid
end
Linha 1.650 ⟶ 1.656:
editicon,
labelicon,
upto_label,
args.uptovalueid or args.uptolinkid,
last_only,
|