Module:Lang: Difference between revisions

remove deprecated APIs
m 1 revision imported from wikipedia:Module:Lang
 
(2 intermediate revisions by 2 users not shown)
Line 83: Line 83:
local category_link = ((0 == namespace or 10 == namespace) and not args_t.nocat) and substitute ('[[Category:$1]]', {category}) or '';
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 ([[:Category:$5|$6]])</span>$7',
return substitute ('[$1] <span style="color:#d33">$2: &#x7B;{$3}}: $4 ([[:Category:$5|$6]])</span>$7', -- &#x7B; prevents template name from being treated as a template call in certain situations
{
{
text or cfg.make_error_msg_t.undefined,
text or cfg.make_error_msg_t.undefined,