Modul:Uses Wikidata: Unterschied zwischen den Versionen
deutsch
K (20 Versionen von w:en:Module:Uses_Wikidata importiert: Attribution) |
(deutsch) |
||
| Zeile 1: | Zeile 1: | ||
local | local w = {} | ||
function | function w.usesProperty( frame ) | ||
local parent = frame.getParent(frame) | local parent = frame.getParent( frame ) | ||
local result = '' | local result = '' | ||
local | local i = 1, p, label | ||
while true do | while true do | ||
p = mw.text.trim( parent.args[i] or '' ) | |||
if | if p ~= '' then | ||
label = mw.wikibase.label( p ) or 'Keine Bezeichnung' | |||
result = result .. | result = result .. '<div><b><i>[[d:Property:' .. p .. '|' .. label .. ' <small>(' .. string.upper( p ) .. ')</small>]]</i></b> (siehe [[d:Property talk:' .. p .. '|Diskussion]]; [[d:Special:WhatLinksHere/Property:' .. p .. '|Verlinkungen]])</div>' | ||
i = i + 1 | |||
else break | else break | ||
end | end | ||
| Zeile 17: | Zeile 17: | ||
end | end | ||
return | return w | ||