Modul:category tree/script cat/data

A Wikiszótárból, a nyitott szótárból

A modult a Modul:category tree/script cat/data/doc lapon tudod dokumentálni

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 article about {{{scprosename}}}''
|-
| colspan="2" style="padding-left: 50px; border-bottom: 1px solid lightgray;" | '''[[w:{{{Wikipedia}}}|{{{Wikipedia}}}]]'''
|-
| style="vertical-align: middle; height: 35px;" | [[File:Crystal kfind.png|35px|none|Considerations]] || {{{sccat}}} considerations
|-
| colspan="2" style="padding-left: 50px; border-bottom: 1px solid lightgray;" | '''[[Wiktionary:About {{{sccat}}}]]'''
|-
| style="vertical-align: middle; height: 35px;" | [[File:Book notice.png|35px|none|Information]] || {{{sccat}}} information
|-
| colspan="2" style="padding-left: 50px; border-bottom: 1px solid lightgray;" | '''[[Appendix:{{{sccat}}}]]'''
|-
| style="vertical-align: Middle; height: 35px;" | [[File:Abc box.svg|35px|none|Code]] || {{{sccat}}} code
|-
| colspan="2" style="padding-left: 50px; border-bottom: 1px solid lightgray;" | '''{{{code}}}'''
|}
</div>
Information about {{{scprosename}}} may be available at [[Appendix:{{{sccat}}}]].

In various places at Wiktionary, {{{scprosename}}} is represented by the [[Wiktionary:Scripts|code{{{codesplural}}}]] {{{codes}}}.]=],
	parents = {{name = "Category:All scripts", sort = "{{{scname}}}"}},
}

labels["characters"] = {
	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["appendices"] = {
	description = "Appendices about {{{scprosename}}}.",
	parents = {"ROOT"},
}

labels["characters by language"] = {
	description = "{{{sccat}}} characters categorized by language.",
	parents = {"ROOT"},
}

labels["languages"] = {
	description = "Languages that use {{{scprosename}}}.",
	fundamental = "All languages",
	parents = {"ROOT", "Category:Languages by script"},
}

labels["templates"] = {
	description = "Templates with predefined contents for {{{scprosename}}}.",
	parents = {"ROOT"},
}

labels["modules"] = {
	description = "Modules with scripts for {{{scprosename}}}.",
	parents = {"ROOT"},
}

labels["All scripts"] = {
	description = [=[This category contains the categories for every script (writing system) on Wiktionary.

See [[Wiktionary:List of scripts]] for a full list.]=],
}

-- Types of writing systems listed in [[Module:writing systems/data]].
labels["Scripts by type"] = {
	description = "Scripts classified by how they represent words.",
	parents = {{ name = "All scripts", sort = " " }},
}

labels["Alphabetic writing systems"] = {
	description = "Scripts whose symbols represent individual speech sounds.",
	parents = {"Scripts by type"},
}

labels["Abjads"] = {
	description = "Scripts whose basic symbols represent consonants. Some of these are impure abjads, which have letters for some vowels.",
	parents = {"Scripts by type"},
}

labels["Abugidas"] = {
	description = "Scripts whose symbols represent consonant and vowel combinations. Symbols representing the same consonant combined with different vowels are for the most part similar in form.",
	parents = {"Scripts by type"},
}

labels["Logographic writing systems"] = {
	description = "Scripts whose symbols represent individual words.",
	parents = {"Scripts by type"},
}

labels["Pictographic writing systems"] = {
	description = "Scripts whose symbols represent individual words by using symbols that resemble the physical objects to which those words refer.",
	parents = {"Scripts by type"},
}

labels["Syllabaries"] = {
	description = "Scripts whose symbols represent consonant and vowel combinations. Symbols representing the same consonant combined with different vowels are for the most part different in form.",
	parents = {"Scripts by type"},
}

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("^Category:") 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("^Category:") 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