Módulo:Navbox/configuração: diferenças entre revisões
Aspeto
Conteúdo apagado Conteúdo adicionado
m Teste Etiqueta: Revertida |
m Não deu certo! Etiqueta: Reversão manual |
||
Linha 15: | Linha 15: | ||
category = { |
category = { |
||
orphan = '[[Categoria:!Navecaixas órfãs]]', |
orphan = '[[Categoria:!Navecaixas órfãs]]', |
||
horizontal_lists = 'Navigational boxes without horizontal lists', |
|||
background_colors = 'Navboxes using background colours', |
|||
illegible = 'Potentially illegible navboxes', |
|||
borders = 'Navboxes using borders', |
|||
}, |
}, |
||
keyword = { |
keyword = { |
||
Linha 61: | Linha 65: | ||
listnum = '^list(%d+)$', |
listnum = '^list(%d+)$', |
||
class = 'class', |
class = 'class', |
||
classe = 'classe', |
|||
sandbox = '/Testes$', |
sandbox = '/Testes$', |
||
navbox = 'Predefinição:Navbox', |
navbox = 'Predefinição:Navbox', |
||
nowrap = '^<span class="nowrap">', |
nowrap = '^<span class="nowrap">', |
||
style = 'style |
style = 'style$', |
||
navbox_title = '<th[^>]*"navbox%-title"', |
navbox_title = '<th[^>]*"navbox%-title"', |
||
hlist = 'hlist', |
hlist = 'hlist', |
||
Linha 72: | Linha 75: | ||
arg = { |
arg = { |
||
above = 'above', |
above = 'above', |
||
acima = 'acima', |
|||
aboveclass = 'aboveclass', |
aboveclass = 'aboveclass', |
||
abovestyle = 'abovestyle', |
abovestyle = 'abovestyle', |
||
Linha 85: | Linha 87: | ||
evenstyle = 'evenstyle', |
evenstyle = 'evenstyle', |
||
group1 = 'group1', |
group1 = 'group1', |
||
grupo1 = 'grupo1', |
|||
group2 = 'group2', |
group2 = 'group2', |
||
grupo2 = 'grupo2', |
|||
group_and_num = 'group%d', |
group_and_num = 'group%d', |
||
groupstyle_and_num = 'group%dstyle', |
groupstyle_and_num = 'group%dstyle', |
||
Linha 95: | Linha 95: | ||
innerstyle = 'innerstyle', |
innerstyle = 'innerstyle', |
||
image = 'image', |
image = 'image', |
||
imagem = 'imagem', |
|||
imageclass = 'imageclass', |
imageclass = 'imageclass', |
||
imageleft = 'imageleft', |
imageleft = 'imageleft', |
||
Linha 108: | Linha 107: | ||
liststyle = 'liststyle', |
liststyle = 'liststyle', |
||
name = 'name', |
name = 'name', |
||
nome = 'nome', |
|||
navbar = 'navbar', |
navbar = 'navbar', |
||
navboxclass = 'navboxclass', |
navboxclass = 'navboxclass', |
||
Linha 116: | Linha 114: | ||
orphan = 'orphan', |
orphan = 'orphan', |
||
state = 'state', |
state = 'state', |
||
estado = 'estado', |
|||
style = 'style', |
style = 'style', |
||
estilo = 'estilo', |
|||
templatestyles = 'templatestyles', |
templatestyles = 'templatestyles', |
||
child_templatestyles = 'child templatestyles', |
child_templatestyles = 'child templatestyles', |
||
title = 'title', |
title = 'title', |
||
['título'] = 'título', |
|||
titleclass = 'titleclass', |
titleclass = 'titleclass', |
||
titlestyle = 'titlestyle', |
titlestyle = 'titlestyle', |
Edição atual tal como às 14h17min de 18 de setembro de 2024
Este módulo não apresenta nenhuma documentação. Por favor, documente-o caso o saiba usar ou tenha conhecimentos para tal. |
return {
aria_label = 'Navbox',
nowrap_item = '%s<span class="nowrap">%s</span>',
templatestyles = mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = 'Módulo:Navbox/styles.css' }
},
hlist_templatestyles = 'Hlist/styles.css',
plainlist_templatestyles = 'Plainlist/styles.css',
-- do not localize marker table
marker = {
oddeven = '\127_ODDEVEN_\127',
restart = '\127_ODDEVEN0_\127',
regex = '\127_ODDEVEN(%d?)_\127'
},
category = {
orphan = '[[Categoria:!Navecaixas órfãs]]',
horizontal_lists = 'Navigational boxes without horizontal lists',
background_colors = 'Navboxes using background colours',
illegible = 'Potentially illegible navboxes',
borders = 'Navboxes using borders',
},
keyword = {
border_subgroup = 'subgroup',
border_child = 'child',
border_none = 'none',
evenodd_swap = 'swap',
navbar_off = 'off',
navbar_plain = 'plain',
nocat_false = 'false',
nowrapitems_yes = 'yes',
orphan_yes = 'yes',
state_collapsed = 'collapsed',
state_off = 'off',
state_plain = 'plain',
subgroups = {'subgroup', 'child', ''},
subpage_doc = 'doc',
subpage_sandbox = 'sandbox',
subpage_testcases = 'testcases',
tracking_no = 'no'
},
class = {
autocollapse = 'autocollapse',
collapsible = 'mw-collapsible',
collapsed = 'mw-collapsed',
-- Warning
navbox = 'navbox', -- WMF currently hides 'navbox' from mobile,
-- so you probably shouldn't change the navbox class.
navbox_abovebelow = 'navbox-abovebelow',
navbox_group = 'navbox-group',
navbox_image = 'navbox-image',
navbox_inner = 'navbox-inner',
navbox_list = 'navbox-list',
navbox_list_with_group = 'navbox-list-with-group',
navbox_part = 'navbox-', -- do not l10n
navbox_styles = 'navbox-styles',
navbox_subgroup = 'navbox-subgroup',
navbox_title = 'navbox-title', -- l10n only if you change pattern.navbox_title below
navbox_odd_part = 'odd', -- do not l10n
navbox_even_part = 'even', -- do not l10n
nomobile = 'nomobile',
nowraplinks = 'nowraplinks',
noviewer = 'noviewer' -- used to remove images from MediaViewer
},
pattern = {
listnum = '^list(%d+)$',
class = 'class',
sandbox = '/Testes$',
navbox = 'Predefinição:Navbox',
nowrap = '^<span class="nowrap">',
style = 'style$',
navbox_title = '<th[^>]*"navbox%-title"',
hlist = 'hlist',
plainlist = 'plainlist',
},
arg = {
above = 'above',
aboveclass = 'aboveclass',
abovestyle = 'abovestyle',
basestyle = 'basestyle',
bodyclass = 'bodyclass',
bodystyle = 'bodystyle',
border = 'border',
below = 'below',
belowclass = 'belowclass',
belowstyle = 'belowstyle',
evenodd = 'evenodd',
evenstyle = 'evenstyle',
group1 = 'group1',
group2 = 'group2',
group_and_num = 'group%d',
groupstyle_and_num = 'group%dstyle',
groupclass = 'groupclass',
groupstyle = 'groupstyle',
groupwidth = 'groupwidth',
innerstyle = 'innerstyle',
image = 'image',
imageclass = 'imageclass',
imageleft = 'imageleft',
imageleftstyle = 'imageleftstyle',
imagestyle = 'imagestyle',
list_and_num = 'list%d',
listclass_and_num = 'list%dclass',
liststyle_and_num = 'list%dstyle',
list1padding = 'list1padding',
listclass = 'listclass',
listpadding = 'listpadding',
liststyle = 'liststyle',
name = 'name',
navbar = 'navbar',
navboxclass = 'navboxclass',
nocat = 'nocat',
nowrapitems = 'nowrapitems',
oddstyle = 'oddstyle',
orphan = 'orphan',
state = 'state',
style = 'style',
templatestyles = 'templatestyles',
child_templatestyles = 'child templatestyles',
title = 'title',
titleclass = 'titleclass',
titlestyle = 'titlestyle',
tracking = 'tracking'
},
-- names of navbar arguments
navbar = {
name = 1,
fontstyle = 'fontstyle',
mini = 'mini'
}
}