Module:Infobox style: Difference between revisions
Appearance
Content deleted Content added
Created page with "local retval = { main_box_raw_auto_width = 'border-spacing:2px;', header_raw = 'background-color:#C3D6EF;text-align:center;vertical-align:middle;font-size:110%;', sub_heade..." |
No edit summary |
||
| Line 1: | Line 1: | ||
local retval = { |
local retval = { |
||
main_box_raw_auto_width = 'border-spacing:2px;', |
main_box_raw_auto_width = 'border-spacing:2px;', |
||
header_raw = 'background-color:# |
header_raw = 'height: 45px; background-color:#A9A9A9; text-align:center; vertical-align:middle; font-size:150%; font-weight: bold;', |
||
sub_header_raw = 'background-color:#DCDCDC;text-align:center;vertical-align:middle;', |
sub_header_raw = 'background-color:#DCDCDC; text-align:center; vertical-align:middle;', |
||
header_color = 'background-color:# |
header_color = 'background-color:#A9A9A9;', |
||
nav_box = 'margin:0;float:right;clear:right;width:25.5em;margin-bottom:0.5em;margin-left:1em;', |
nav_box = 'margin:0; float:right; clear:right; width:25.5em; margin-bottom:0.5em; margin-left:1em;', |
||
nav_box_child = 'margin:0;float:right;clear:right;width:25em;margin-bottom:0.5em;', |
nav_box_child = 'margin:0; float:right; clear:right; width:25em; margin-bottom:0.5em;', |
||
nav_box_wide = '', |
nav_box_wide = '', |
||
nav_box_header = 'background-color:# |
nav_box_header = 'background-color:#A9A9A9;', |
||
nav_box_wide_header = 'background-color:# |
nav_box_wide_header = 'background-color:#A9A9A9;', |
||
nav_box_label = 'background-color:#DCDCDC;', |
nav_box_label = 'background-color:#DCDCDC;', |
||
image_box_raw = 'text-align:center;border-bottom:1px solid #aaa;line-height:1.5em;', |
image_box_raw = 'text-align:center; border-bottom:1px solid #aaa; line-height:1.5em;', |
||
image_box_plain_raw = 'text-align:center;line-height:1.5em;', |
image_box_plain_raw = 'text-align:center; line-height:1.5em;', |
||
internal_border = '1px dotted #aaa;', |
internal_border = '1px dotted #aaa;', |
||
section_border = '1px solid #aaa;' |
section_border = '1px solid #aaa;' |
||
Revision as of 11:07, 13 May 2019
Usage
This module is invoked by {{Infobox style}}; see template documentation for usage.
Used also as a meta-module in Module:Military navigation in the following manner:
local styles = require('Module:Infobox style')
| The above documentation is transcluded from Module:Infobox style/doc. (edit | history) Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Subpages of this module. |
local retval = {
main_box_raw_auto_width = 'border-spacing:2px;',
header_raw = 'height: 45px; background-color:#A9A9A9; text-align:center; vertical-align:middle; font-size:150%; font-weight: bold;',
sub_header_raw = 'background-color:#DCDCDC; text-align:center; vertical-align:middle;',
header_color = 'background-color:#A9A9A9;',
nav_box = 'margin:0; float:right; clear:right; width:25.5em; margin-bottom:0.5em; margin-left:1em;',
nav_box_child = 'margin:0; float:right; clear:right; width:25em; margin-bottom:0.5em;',
nav_box_wide = '',
nav_box_header = 'background-color:#A9A9A9;',
nav_box_wide_header = 'background-color:#A9A9A9;',
nav_box_label = 'background-color:#DCDCDC;',
image_box_raw = 'text-align:center; border-bottom:1px solid #aaa; line-height:1.5em;',
image_box_plain_raw = 'text-align:center; line-height:1.5em;',
internal_border = '1px dotted #aaa;',
section_border = '1px solid #aaa;'
}
retval.main_box_raw = 'width:25.5em;' .. retval.main_box_raw_auto_width
retval.header_bar = 'style="' .. retval.header_raw .. '"'
retval.sub_header_bar = 'style="' .. retval.sub_header_raw .. '"'
retval.image_box = 'style="' .. retval.image_box_raw .. '"'
retval.image_box_plain = 'style="' .. retval.image_box_plain_raw .. '"'
return retval