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.
-- ordinal == 'on': 'second' is output instead of 'two'
-- ordinal ~= 'on': 'two' is output instead of 'second'
local ord2eng = require('Module:ConvertNumeric').
local ind2ord = require('Module:ConvertNumeric').
local th = 'th'
if ordinal ~= 'on' then
th = ''
ind2ord = require('Module:ConvertNumeric').
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').
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').
local split = mw.text.split(pagename, '[%s%-]') --e.g. "Nine-cylinder engines"
for i=1, #split do
|