وحدة:category tree/scriptcatboiler/data
المظهر
local labels = {}
labels["ROOT"] = {
description = [=[<div style="clear: left; border: solid #aaa 1px; margin: 1 1 1 1; background: #f9f9f9; width: 250px; padding: 5px; text-align: left; float: left">
<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" | [[ملف:Wikipedia-logo.png|35px|none|Wikipedia]]
|| ''ويكيبيديا تحتوي مقالة عن {{{sccat}}}''
|-
| colspan="2" style="padding-left:50px" | '''[[w:{{{sccat}}}|{{{sccat}}}]]'''
|-
| style="vertical-align: Middle; height: 35px" | [[ملف:Crystal kfind.png|35px|none|Considerations]]
|| إعتبارات {{{sccat}}}
|-
| colspan="2" style="padding-left:50px" | '''[[ويكاموس:عن {{{sccat}}}]]'''
|-
| style="vertical-align: Middle; height: 35px" | [[ملف:Book notice.png|35px|none|Information]]
|| معلومات {{{sccat}}}
|-
| colspan="2" style="padding-left:50px" | '''[[ملحق:{{{sccat}}}]]'''
|-
| style="vertical-align: Middle; height: 35px" | [[ملف:Abc box.svg|35px|none|Code]]
|| الترميز {{{sccat}}}
|-
| colspan="2" style="padding-left:50px" | '''{{{code}}}'''
|}
</div>
All terms in {{{sccat}}} should be here. Information about this script may be available at [[Appendix:{{{sccat}}}]].
In various places at Wiktionary, the {{{sccat}}} is represented by the [[WT:SCR|code]] '''{{{code}}}'''.]=],
parents = {{name = "Category:كل أبجديات", 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["characters by language"] = {
description = "{{{sccat}}} characters categorized by language.",
parents = {"ROOT"},
}
labels["languages"] = {
description = "Languages that use the {{{sccat}}}.",
fundamental = "All languages",
parents = {"ROOT", "Category:Languages by script"},
}
labels["templates"] = {
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("^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