Module:Int
Appearance
From mediawiki.org
English • čeština • Deutsch • français • Bahasa Indonesia • 日本語 • 한국어 • Nederlands • polski • Türkçe • українська • 中文
Implements {{int}}.
Tests
Module:Int
success: 3, error: 0, skipped: 0
- See test cases
The above documentation is transcluded from Module:Int/doc. (edit | history)
Editors can experiment in this module’s sandbox (create | mirror) and testcases (edit) pages.
Subpages of this module.
Editors can experiment in this module’s sandbox (create | mirror) and testcases (edit) pages.
Subpages of this module.
-- This is a helper module for [[Template:int]] localtemplateTranslation=require('Module:Template translation') localthis={} functionthis.renderIntMessage(frame) localargs=frame.args localpargs=(frame:getParent()or{}).args localarguments={} fork,vinpairs(pargs)do localn=tonumber(k)or0 if(n>=2)then arguments[n-1]=mw.text.trim(v) end end locallang ifargs.langandargs.lang~=''andmw.language.isValidCode(args.lang)then lang=args.lang else lang=templateTranslation.getLanguage() end localmsg=mw.message.new(mw.text.trim(args[1]),arguments):inLanguage(lang) ifmsg:exists()orlang=='qqx'then ifmsg:isDisabled()then returnargs.missingor'' else localmsgstr=msg:plain() returnframe:preprocess(msgstr) end else returnargs.missing~='' andargs.missing or'⧼'..args[1]..'⧽' end end returnthis
Retrieved from "https://www.mediawiki.org/w/index.php?title=Module:Int&oldid=5048777"