Modul:Uses Wikidata

Aus Wikivoyage
Dokumentation für das Modul Uses Wikidata[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]

Verwendung

Hinweise
local w = {}

function w.usesProperty( frame )
	local parent = frame.getParent( frame )
	local result = ''
	local i = 1, p, label
	while true do
		p = mw.text.trim( parent.args[i] or '' )
		if p ~= '' then
			label = mw.wikibase.label( p ) or 'Keine Bezeichnung'
			result = result .. '<li><b><i>[[d:Property:' .. p .. '|' .. label .. ' <small>(' .. p:upper() .. ')</small>]]</i></b> (siehe [[d:Property talk:' .. p .. '|Diskussion]]; [[d:Special:WhatLinksHere/Property:' .. p .. '|Verlinkungen]])</li>'
			i = i + 1
		else break
		end
	end
	return result
end
 
return w