יחידה:משתמש במאפיינים: הבדלים בין גרסאות בדף

אין תקציר עריכה
מ 8 גרסאות של הדף wikipedia:he:יחידה:משתמש_במאפיינים יובאו
 
(5 גרסאות ביניים של 4 משתמשים אינן מוצגות)
שורה 4: שורה 4:
local parent = frame.getParent(frame)
local parent = frame.getParent(frame)
local result = ''
local result = ''
local ii = 1
for k,v in pairs(parent.args) do
while true do
local p_num = v or ''
local p_num = parent.args[ii] or ''
if p_num ~= '' then
if p_num ~= '' then
local label = mw.wikibase.label(p_num) or "NO LABEL"
local label = mw.wikibase.label(p_num) or "NO LABEL"
result = result .. "<li><b>[[d:Property:" .. p_num .. "|" .. label .. " <small>(" .. string.upper(p_num) .. ")</small>]]</b></li>"
result = result .. "<li><b>[[d:Property:" .. p_num .. "|" .. label ..
ii = ii + 1
frame:expandTemplate{title = "כ", args = {}} .. " <small>(" .. string.upper(p_num) .. ")</small>]]</b></li>"
else break
end
end
end
end