恪別𡧲版𢯢𢷮𧵑「模庉:Lang」
Keepout2010 (討論 | 㨂𢵰) 造張㵋貝內容「--[=[ Lua support for the {{lang}}, {{langx}}, {{lang-??}}, and {{transliteration}} templates and replacement of various supporting templates. ]=] require('strict'); local getArgs = require ('Module:Arguments').getArgs; local unicode = require ("Module:Unicode data"); -- for is_Latin() and is_rtl() local yesno = require ('Module:Yesno'); local lang_data = mw.loadData ('Module:Lang/data'); -- language name override and transliteration tool-tip tabl…」 |
SaigonSarang (討論 | 㨂𢵰) n 𠊝替文本-「Thể loại:」成「Category:」 |
||
| 𣳔82: | 𣳔82: | ||
end | end | ||
local category_link = ((0 == namespace or 10 == namespace) and not args_t.nocat) and substitute ('[[ | local category_link = ((0 == namespace or 10 == namespace) and not args_t.nocat) and substitute ('[[Category:$1]]', {category}) or ''; | ||
return substitute ('[$1] <span style="color:#d33">$2: {{$3}}: $4 ([[: | return substitute ('[$1] <span style="color:#d33">$2: {{$3}}: $4 ([[:Category:$5|$6]])</span>$7', | ||
{ | { | ||
text or cfg.make_error_msg_t.undefined, | text or cfg.make_error_msg_t.undefined, | ||
| 𣳔657: | 𣳔657: | ||
For individual language, <language>, returns: | For individual language, <language>, returns: | ||
[[ | [[Category:Bài viết có văn bản <language>]] | ||
For Vietnamese: | For Vietnamese: | ||
[[ | [[Category:Bài viết có văn bản tiếng Việt nêu rõ]] | ||
For ISO 639-2 collective languages (and for 639-1 bh): | For ISO 639-2 collective languages (and for 639-1 bh): | ||
[[ | [[Category:Bài viết có văn bản <language>]] | ||
]=] | ]=] | ||
| 𣳔867: | 𣳔867: | ||
if (0 < #maint_cats) and (0 == namespace) and not nocat then -- when there are maintenance categories; article namespace only | if (0 < #maint_cats) and (0 == namespace) and not nocat then -- when there are maintenance categories; article namespace only | ||
for _, cat in ipairs (maint_cats) do | for _, cat in ipairs (maint_cats) do | ||
table.insert (maint, table.concat ({'[[ | table.insert (maint, table.concat ({'[[Category:', cat, ']]'})); -- format and add the categories | ||
end | end | ||
end | end | ||
| 𣳔1.580: | 𣳔1.580: | ||
initial_style_state = 'italic'; | initial_style_state = 'italic'; | ||
return _lang_xx (args, cfg.templates_t.langxx) .. '[[ | return _lang_xx (args, cfg.templates_t.langxx) .. '[[Category:Trang sử dụng bản mẫu Lang-xx]]'; -- temporary category | ||
end | end | ||
| 𣳔1.612: | 𣳔1.612: | ||
initial_style_state = 'inherit'; | initial_style_state = 'inherit'; | ||
return _lang_xx (args, cfg.templates_t.langxx) .. '[[ | return _lang_xx (args, cfg.templates_t.langxx) .. '[[Category:Trang sử dụng bản mẫu Lang-xx]]'; -- temporary category | ||
end | end | ||