モジュール:Navbox/configuration
このモジュールについての説明文ページを モジュール:Navbox/configuration/doc に作成できます
1 return {
2 aria_label = 'Navbox',
3 nowrap_item = '%s<span class="nowrap">%s</span>',
4 templatestyles = mw.getCurrentFrame():extensionTag{
5 name = 'templatestyles', args = { src = 'Module:Navbox/styles.css' }
6 },
7 hlist_templatestyles = 'Hlist/styles.css',
8 plainlist_templatestyles = 'Plainlist/styles.css',
9 -- do not localize marker table
10 marker = {
11 oddeven = '\127_ODDEVEN_\127',
12 restart = '\127_ODDEVEN0_\127',
13 regex = '\127_ODDEVEN(%d?)_\127'
14 },
15 category = {
16 orphan = '[[Category:Navbox orphans]]',
17 horizontal_lists = 'Navigational boxes without horizontal lists',
18 background_colors = 'Navboxes using background colours',
19 illegible = 'Potentially illegible navboxes',
20 borders = 'Navboxes using borders',
21 without_first_col = '[[Category:Pages using navbox columns without the first column]]'
22 },
23 keyword = {
24 border_subgroup = 'subgroup',
25 border_child = 'child',
26 border_none = 'none',
27 evenodd_swap = 'swap',
28 navbar_off = 'off',
29 navbar_plain = 'plain',
30 nocat_false = 'false',
31 nowrapitems_yes = 'yes',
32 orphan_yes = 'yes',
33 state_collapsed = 'collapsed',
34 state_off = 'off',
35 state_plain = 'plain',
36 state_uncollapsed = 'uncollapsed',
37 subgroups = {'subgroup', 'child', ''},
38 subpage_doc = 'doc',
39 subpage_sandbox = 'sandbox',
40 subpage_testcases = 'testcases',
41 tracking_no = 'no',
42 with_collapsible_groups = 'with collapsible groups',
43 with_columns = 'with columns',
44 },
45 class = {
46 autocollapse = 'autocollapse',
47 collapsible = 'mw-collapsible',
48 collapsed = 'mw-collapsed',
49 -- Warning
50 navbox = 'navbox', -- WMF currently hides 'navbox' from mobile,
51 -- so you probably shouldn't change the navbox class.
52 navbox_abovebelow = 'navbox-abovebelow',
53 navbox_group = 'navbox-group',
54 navbox_image = 'navbox-image',
55 navbox_inner = 'navbox-inner',
56 navbox_list = 'navbox-list',
57 navbox_list_with_group = 'navbox-list-with-group',
58 navbox_part = 'navbox-', -- do not l10n
59 navbox_styles = 'navbox-styles',
60 navbox_subgroup = 'navbox-subgroup',
61 navbox_title = 'navbox-title', -- l10n only if you change pattern.navbox_title below
62 navbox_odd_part = 'odd', -- do not l10n
63 navbox_even_part = 'even', -- do not l10n
64 nomobile = 'nomobile',
65 nowraplinks = 'nowraplinks',
66 noviewer = 'noviewer', -- used to remove images from MediaViewer
67 notheme = 'notheme'
68 },
69 pattern = {
70 class = 'class',
71 colnum = '^col(%d+)$',
72 colheadernum = '^col(%d+)header$',
73 colfooternum = '^col(%d+)footer$',
74 contentnum = '^content(%d+)$',
75 groupnum = '^group(%d+)$',
76 hlist = 'hlist',
77 listnum = '^list(%d+)$',
78 navbox = 'Template:Navbox',
79 navbox_title = '<th[^>]*"navbox%-title"',
80 nowrap = '^<span class="nowrap">',
81 num = '^%a+(%d+)$',
82 plainlist = 'plainlist',
83 sandbox = '/sandbox$',
84 sectionnum = '^section(%d+)$',
85 sectnum = '^sect(%d+)$',
86 style = 'style$',
87 with_collapsible_groups = 'Template:Navbox with collapsible groups',
88 with_columns = 'Template:Navbox with columns',
89 },
90 arg = {
91 abbr_and_num = 'abbr%d',
92 above = 'above',
93 aboveclass = 'aboveclass',
94 abovestyle = 'abovestyle',
95 basestyle = 'basestyle',
96 below = 'below',
97 belowclass = 'belowclass',
98 belowstyle = 'belowstyle',
99 bodyclass = 'bodyclass',
100 bodystyle = 'bodystyle',
101 border = 'border',
102 content_and_num = 'content%d',
103 contentstyle = 'contentstyle',
104 contentstyle_and_num = 'content%dstyle',
105 colheaderstyle = 'colheaderstyle',
106 colheader_and_num = 'col%dheader',
107 colheaderstyle_and_num = 'col%dheaderstyle',
108 colheadercolspan_and_num = 'col%dheadercolspan',
109 colstyle = 'colstyle',
110 col_and_num = 'col%d',
111 colstyle_and_num = 'col%dstyle',
112 colwidth = 'colwidth',
113 colwidth_and_num = 'col%dwidth',
114 colhfooterstyle = 'colfooterstyle',
115 colfooter_and_num = 'col%dfooter',
116 colfooterstyle_and_num = 'col%dfooterstyle',
117 colfootercolspan_and_num = 'col%dfootercolspan',
118 coltablestyle = 'coltablestyle',
119 evencolstyle = 'evencolstyle',
120 evenodd = 'evenodd',
121 evenstyle = 'evenstyle',
122 fullwidth = 'fullwidth',
123 group1 = 'group1',
124 group2 = 'group2',
125 group_and_num = 'group%d',
126 groupclass = 'groupclass',
127 groupstyle = 'groupstyle',
128 groupstyle_and_num = 'group%dstyle',
129 groupwidth = 'groupwidth',
130 image = 'image',
131 image_and_num = 'image%d',
132 imageclass = 'imageclass',
133 imageleft = 'imageleft',
134 imageleft_and_num = 'imageleft%d',
135 imageleftstyle = 'imageleftstyle',
136 imagestyle = 'imagestyle',
137 innerstyle = 'innerstyle',
138 list1padding = 'list1padding',
139 list_and_num = 'list%d',
140 listclass = 'listclass',
141 listclass_and_num = 'list%dclass',
142 listpadding = 'listpadding',
143 liststyle = 'liststyle',
144 liststyle_and_num = 'list%dstyle',
145 name = 'name',
146 navbar = 'navbar',
147 navboxclass = 'navboxclass',
148 nocat = 'nocat',
149 nowrapitems = 'nowrapitems',
150 oddcolstyle = 'oddcolstyle',
151 oddstyle = 'oddstyle',
152 orphan = 'orphan',
153 padding = 'padding',
154 sect_and_num = 'sect%d',
155 section_and_num = 'section%d',
156 sectiontitlestyle_and_num = 'section%dtitlestyle',
157 secttitlestyle = 'secttitlestyle',
158 selected = 'selected',
159 state = 'state',
160 state_and_num = 'state%d',
161 style = 'style',
162 subgroups_and_num = {'subgroup%d', 'child%d', '%d'},
163 templatestyles = 'templatestyles',
164 child_templatestyles = 'child templatestyles',
165 title = 'title',
166 titleclass = 'titleclass',
167 titlestyle = 'titlestyle',
168 tracking = 'tracking',
169 },
170 -- names of navbar arguments
171 navbar = {
172 name = 1,
173 fontstyle = 'fontstyle',
174 mini = 'mini'
175 }
176 }