Modul:category tree/scriptcatboiler/data

This is the main data module for Module:category tree/scriptcatboiler.


local labels = {}
 
labels["ROOT"] = {
	description = [=[<div style="clear: right; border: solid #aaa 1px; margin: 1 1 1 1; background: #f9f9f9; width: 250px; padding: 5px; text-align: left; float: right">
<div style="text-align: center; margin-bottom: 10px; margin-top: 5px">'''{{{sccat}}}'''</div>
 
{| style="font-size: 90%; background: #f9f9f9"
|-
| style="vertical-align: Middle; height: 35px" | [[File:Wikipedia-logo.png|35px|none|Wikipedia]]
|| ''Wikipedia-artikel över {{{sccat}}}''
|-
| colspan="2" style="padding-left:50px" | '''[[w:{{{sccat}}}|{{{sccat}}}]]'''
|-
| style="vertical-align: Middle; height: 35px" | [[File:Crystal kfind.png|35px|none|Ofwaegingen]]
|| Ofwaegingen över dat {{{sccat}}}
|-
| colspan="2" style="padding-left:50px" | '''[[Wiktionary:Över {{{sccat}}}]]'''
|-
| style="vertical-align: Middle; height: 35px" | [[File:Book notice.png|35px|none|Informatsie]]
|| Infomatsie ovver {{{sccat}}} 
|-
| colspan="2" style="padding-left:50px" | '''[[Anhang:{{{sccat}}}]]'''
|-
| style="vertical-align: Middle; height: 35px" | [[File:Abc box.svg|35px|none|Kode]]
|| Kode veur t {{{sccat}}} 
|-
| colspan="2" style="padding-left:50px" | '''{{{code}}}'''
|}
</div>
Alle weurde in {{{sccat}}} zolden hier motten staon. Et mag waen dat meer informatsie ovver dit schrift op [[Anhang:{{{sccat}}}]] steet.
 
Op verscheidene plaatsen op Wiktionary wörd t {{{sccat}}}  representeerd deur de [[WT:SCR|kode]] '''{{{code}}}'''.]=],
	parents = {{name = "Kategorie:All Schriften", sort = "{{{scname}}}"}},
}
 
labels["teken"] = {
	description = "All characters from {{{sccat}}}, and their possible variations, such as versions with diacritics and combinations recognized as single characters in any language.",
	parents = {"ROOT"},
}
 
labels["Schrifttekens bi Spraak"] = {
	description = "{{{sccat}}} characters categorized by language.",
	parents = {"ROOT"},
}
 
labels["spraken"] = {
	description = "Spraoken dee't dat {{{sccat}}} broekt.",
	Bild = "Edwin Smith Papyrus v2.jpg",
	fundamental = "All Spraken",
	parents = {"ROOT", "Kategorie:Spraken bi Schrift"},
}
 
labels["Vörlagen"] = {
	description = "Templates with predefined contents for {{{sccat}}}.",
	parents = {"ROOT"},
}
 
for key, data in pairs(labels) do
	if data.parents then
		for _, parent in ipairs(data.parents) do
			if type(parent) == "table" then
				if not parent.name:find("^Kategorie:") then
					if labels[parent.name].children then
						table.insert(labels[parent.name].children, {name = key, sort = parent.sort})
					else
						labels[parent.name].children = {{name = key, sort = parent.sort}}
					end
				end
			else
				if not parent:find("^Kategorie:") then
					if labels[parent].children then
						table.insert(labels[parent].children, key)
					else
						labels[parent].children = {key}
					end
				end
			end
		end
	end
end
 
return labels