Mòdul:Composition bar/items
Aparença
Podeu crear la pàgina d'ús per documentar aquest mòdul Lua. |
local p = {}
local MLMT = require "Module:Multilang module tools"
--tags for all items, used in main module and i18n
p.k = {
width = 'width',
height = 'height',
background_color = 'background-color',
border_color = 'border-color',
border_width = 'border-width',
color = 'color',
style = 'style',
valuestyle = 'valuestyle',
per = 'per',
parenthesis = 'parenthesis',
perstyle = 'perstyle',
bold = 'bold',
round = 'round',
nodivisor = 'nodivisor',
void = 'void',
txt_end = 'txt_end',
--
InvalNum = 'InvalNum',
InvalParamNum = 'InvalParamNum',
}
p.arg_lims = {
[p.k.width] = 'sz',
[p.k.height] = 'sz',
--[p.k.background_color]= 's',
--[p.k.border_color] = 's',
[p.k.border_width] = 'sz',
--[p.k.color] = 's',
--[p.k.style] = 's',
--[p.k.valuestyle] = 's',
[p.k.per] = {'i',{0,2}},
[p.k.parenthesis] = 'b',
[p.k.perstyle] = 's',
[p.k.bold] = 'b',
[p.k.round] = {'i',{0,2}},
[p.k.nodivisor] = 'b',
[p.k.void] = 'b',
[p.k.txt_end] = 'b',
}
--Indexes used by the lists:
p.idxArgs = {
p.k.width,
p.k.height,
p.k.background_color,
p.k.border_color,
p.k.border_width,
p.k.color,
p.k.style,
p.k.valuestyle,
p.k.per,
p.k.parenthesis,
p.k.perstyle,
p.k.bold,
p.k.round,
p.k.nodivisor,
p.k.void,
p.k.lang,
p.k.txt_end,
}
p.idxErrors = {
p.k.InvalNum,
p.k.InvalParamNum,
}
return p