Module:Global infobox tools/items
Cuma
Documentation for this module may be created at Module:Global infobox tools/items/doc
local p = {}
----------------------------------------
-- Image items
----------------------------------------
p.ik = {
image = "image",
image_idx = "image_idx",
alt = "alt",
size = "size",
caption = "caption",
image1 = "image1",
image_idx1 = "image_idx1",
alt1 = "alt1",
size1 = "size1",
caption1 = "caption1",
image2 = "image2",
image_idx2 = "image_idx2",
alt2 = "alt2",
size2 = "size2",
caption2 = "caption2",
}
p.i_arg_lims1 = { -- When [GIBTi.rk.rs_image_max_num] = 1
[p.ik.image_idx] = 'i+',
}
p.i_arg_lims2 = { -- When [GIBTi.rk.rs_image_max_num] = 2
[p.ik.image_idx1] = 'i+',
[p.ik.image_idx2] = 'i+',
}
p.i_idx1 = { -- When [GIBTi.rk.rs_image_max_num] = 1
{'a', p.ik.image},
{'a', p.ik.image_idx},
{'a', p.ik.alt},
{'a', p.ik.size},
{'a', p.ik.caption},
}
p.i_idx2 = { -- When [GIBTi.rk.rs_image_max_num] = 2
{'a', p.ik.image1},
{'a', p.ik.image_idx1},
{'a', p.ik.alt1},
{'a', p.ik.size1},
{'a', p.ik.caption1},
{'a', p.ik.image2},
{'a', p.ik.image_idx2},
{'a', p.ik.alt2},
{'a', p.ik.size2},
{'a', p.ik.caption2},
}
----------------------------------------
-- Reserved keys
----------------------------------------
p.rk = {
--default colors
rs_colorbox = "rs_colorbox",
rs_color_tit_cllps = "rs_color_tit_cllps", --color of collapse list title and subheaderstyle
--styles
rs_bodystyle = "rs_bodystyle",
rs_titlestyle = "rs_titlestyle",
rs_headerstyle = "rs_headerstyle",
rs_subheaderstyle = "rs_subheaderstyle",
rs_imagestyle = "rs_imagestyle",
rs_captionstyle = "rs_captionstyle",
rs_labelstyle = "rs_labelstyle",
rs_datastyle = "rs_datastyle",
rs_belowstyle = "rs_belowstyle",
--icon & default name
rs_icon = "rs_icon",
rs_icon_at_begin = "rs_icon_at_begin",
rs_icon_hint = "rs_icon_hint",
rs_def_name = "rs_def_name",
--image
rs_image_max_num = "rs_image_max_num",
rs_def_image_size = "rs_def_image_size",
rs_send_img_preinfobox = "rs_send_img_preinfobox",
--referred to label/data content
rs_changeable_lbls = "rs_changeable_lbls",
rs_param_prefix_lbl = "rs_param_prefix_lbl",
rs_def_charnum_cllps = "rs_def_charnum_cllps",
rs_error = "rs_error",
rs_below = "rs_below",
--maintenance categories:
rs_cat_arg_error = "rs_cat_arg_error", --Pages using infobox with unknown parameters
rs_cat_arg_dupli = "rs_cat_arg_dupli", --Pages using infobox with duplicate parameters
rs_cat_wds_untranslat = "rs_cat_wds_untranslat",
rs_cat_no_image = "rs_cat_no_image",
--other
rs_img_used_hand = "rs_img_used_hand", --Only for preinfobox
rs_img_used_WD = "rs_img_used_WD", --Only for preinfobox
rs_img_caption = "rs_img_caption", --Only for preinfobox
rs_proof_params = "proof_params",
name = "name",
}
return p