Semantic MediaWikiDit bericht verdwijnt nadat alle relevante taken zijn afgerond.

Er is één onvoltooide of openstaande taak, die nodig is om het bijwerken van Semantic MediaWiki te voltooien. Een beheerder of gebruiker met voldoende rechten kan deze uitvoeren. Dit moet worden gedaan voordat nieuwe gegevens worden toegevoegd om tegenstrijdigheden te voorkomen.

Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 28: Regel 28:
local titelBiblio = ""
local titelBiblio = ""
local labelForSort = ""
local labelForSort = ""
local semanticTitle = ""
if titelid ~= "" then
if titelid ~= "" then
titelGew = mSlot.getValueFromTemplateData( "ws-page-props", titelid, "Title", "TitelGew" )
titelGew = mSlot.getValueFromTemplateData( "ws-page-props", titelid, "Title", "TitelGew" )
titelBiblio = mSlot.getValueFromTemplateData( "ws-page-props", titelid, "Title", "TitelBiblio" )
titelBiblio = mSlot.getValueFromTemplateData( "ws-page-props", titelid, "Title", "TitelBiblio" )
if titelGew == "" then
semanticTitle = "Geen titel"
else
semanticTitle = titelGew
end
labelForSort = mFormatForSorting.flatten( mw.text.trim( titelBiblio ) )
labelForSort = mFormatForSorting.flatten( mw.text.trim( titelBiblio ) )
end
end
local set = {
["Title"] = semanticTitle,
["Title plain"] = semanticTitle
}


end
end


return p
return p

Versie van 28 okt 2025 15:22

Module:Class/Book contribution




example




local p = {}
local mSlot = require("Module:Slot")
local mFormatForSorting = require("Module:Format for sorting")
--local mTitle = require("Module:Class/Title")
--local mPerson = require("Module:Class/Person")

--[[
-->{{#slottemplates:ws-page-props |{{{TitelID|}}} | @title-props }}<!--
-->{{#vardefine:@titel|{{#caprint:@title-props[Title][TitelGew]}} }}<!--
-->{{#vardefine:@sort title|{{Strip title for sorting|{{lc:{{#caprint:@title-props[Title][TitelBiblio]}}}} }} }}<!--
-->{{DISPLAYTITLE:{{#var:@titel|Geen titel}}}}<!--

|Has publication year={{#show:{{{BoekID|}}} |?Has publication year}}
|Has publication year (date)={{#show:{{{BoekID|}}} |?Has publication year (date)}}
|Title={{#var:@titel|Geen titel}}
|Title plain={{#var:@titel|Geen titel}}
|Has sort label={{#var:@sort title}}¶
|Has sort label by author={{#show:{{{TitelID|-}}}|?Has sort label by author=|link=none}}
|Has initial={{uc:{{#sub:{{#var:@sort title}}|0|1}}}}

]]--
	
p.set = function( frame )
	local titelid = frame.args.titelid or ""
	local boekid = frame.args.boekid or ""
	
	local titelGew = ""
	local titelBiblio = ""
	local labelForSort = ""
	local semanticTitle = ""
	if titelid ~= "" then
		titelGew = mSlot.getValueFromTemplateData( "ws-page-props", titelid, "Title", "TitelGew" )
		titelBiblio = mSlot.getValueFromTemplateData( "ws-page-props", titelid, "Title", "TitelBiblio" )
		if titelGew == "" then
			semanticTitle = "Geen titel"
		else
			semanticTitle = titelGew
		end
		labelForSort = mFormatForSorting.flatten( mw.text.trim( titelBiblio ) )
	end
	
	local set = {
		["Title"] = semanticTitle,
		["Title plain"] = semanticTitle
	}

end

return p