မေႃႇၵျူး:IsLatin
Appearance
ၽိုၼ်ၵႅမ်မိုဝ်းဢၼ်ၼႆႉ ပဵၼ်ဢၼ်ၶဝ်ႈပႃးမႃးတီႈ မေႃႇၵျူး:IsLatin/doc။ (မႄးထတ်း | ပိုၼ်း)
ၶေႃႈၽၢင်ႉ တႃႈ ၽူႈမႄးထတ်းၶဝ် - Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
ၶေႃႈၽၢင်ႉ တႃႈ ၽူႈမႄးထတ်းၶဝ် - Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
တူဝ်ယၢင်ႇ လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်း]လိၵ်ႈ | ၶူတ်ႉ | ၽွၼ်း |
---|---|---|
Sports | {{#invoke:IsLatin|IsLatin|Sports}} | yes |
Ştefăneşti | {{#invoke:IsLatin|IsLatin|Ştefăneşti}} | yes |
大谷川ユースホステル | {{#invoke:IsLatin|IsLatin|大谷川ユースホステル}} | no |
€55 | {{#invoke:IsLatin|IsLatin|€55}} | yes |
£55 | {{#invoke:IsLatin|IsLatin|£55}} | yes |
$55 | {{#invoke:IsLatin|IsLatin|$55}} | yes |
local i = {}
function i.IsLatin(frame)
local txt = frame.args[1];
if txt == '' then
return '';
end
local len = mw.ustring.len(txt);
local pos = 1;
while ( pos <= len ) do
charval = mw.ustring.codepoint(mw.ustring.sub(txt, pos))
-- note 8364 is the € symbol
if charval>687 and charval~=8364 then
return "no";
end
pos = pos + 1;
end
return "yes";
end
return i;