Modul:Navseasoncats: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
RaFaDa20631 (bicara | kontrib)
Tidak ada ringkasan suntingan
RaFaDa20631 (bicara | kontrib)
Tidak ada ringkasan suntingan
Baris 1.597:
 
local function nav_wordinal( frame, firstpart, word, lastpart, minimumword, maximumword, ordinal, frame )
--Module:ConvertNumeric.numeral_to_indonumeral_to_indonesian() flags:
-- ordinal == 'on': 'second' is output instead of 'two'
-- ordinal ~= 'on': 'two' is output instead of 'second'
local ord2eng = require('Module:ConvertNumeric').numeral_to_indonumeral_to_indonesian
local ind2ord = require('Module:ConvertNumeric').indo_to_ordinalindonesian_to_ordinal
local th = 'th'
if ordinal ~= 'on' then
th = ''
ind2ord = require('Module:ConvertNumeric').indo_to_numeralindonesian_to_numeral
end
local sc = string.match(word, '^%u') --sentence-case check
Baris 1.753:
else
--try wordinals ('zeroth' to 'ninety-ninth' only)
local ind2ord = require('Module:ConvertNumeric').indo_to_ordinalindonesian_to_ordinal
local split = mw.text.split(pagename, ' ')
for i=1, #split do
Baris 1.762:
--try English numerics ('one'/'single' to 'ninety-nine' only)
local eng2num = require('Module:ConvertNumeric').indo_to_numeralindonesian_to_numeral
local split = mw.text.split(pagename, '[%s%-]') --e.g. "Nine-cylinder engines"
for i=1, #split do