Lihat sumber bagi Modul:Icon
Anda tidak mempunyai keizinan untuk menyunting laman ini, atas sebab berikut:
Anda boleh melihat dan menyalin sumber bagi laman ini.
-- This module implements [[Template:Icon]].
require("strict")
local yesNo = require("Module:Yesno")
local getArgs = require("Module:Arguments").getArgs
local getPlain = nil
local p = {}
-- Determine whether we're being called from a sandbox
local sandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) and '/sandbox' or ''
-- Implements [[Template:Icon]]
-- Returns the icon image corresponding to a string (like 'B')
function p._main(args, data)
local data_module = 'Module:Icon/data'..sandbox
data = data or mw.loadData(data_module)
local code = args.class or args[1]
local iconData
if code then
000
1:0
Templat yang digunakan dalam laman ini:
Kembali ke Modul:Icon.