Module:Pagetype: Διαφορά μεταξύ των αναθεωρήσεων
Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
Αντιγραφή από αγγλικό. |
Ενημέρωση κώδικα από en:Module:Pagetype oldid=963271820 (2020-06-19) |
||
Γραμμή 195:
function p._main(args)
local redirect = detectRedirects(args)
local pagetype = ""
if redirect then
else
end
if yesno(args.plural, false) then
if cfg.irregularPlurals[pagetype] then
pagetype = cfg.irregularPlurals[pagetype]
else
pagetype = pagetype .. cfg.plural -- often 's'
end
end
if yesno(args.caps, false) then
pagetype = mw.ustring.upper(mw.ustring.sub(pagetype, 1, 1)) ..
mw.ustring.sub(pagetype, 2)
end
return pagetype
end
|