|
|
خط ۱: |
خط ۱: |
| return { | | return { |
| aria_label = 'Navbox', | | ['templatestyles'] = 'Module:Navbar/styles.css', |
| nowrap_item = '%s<span class="nowrap">%s</span>',
| | ['box_text'] = 'This box: ', -- default text box when not plain or mini |
| templatestyles = mw.getCurrentFrame():extensionTag{
| | ['title_namespace'] = 'Template', -- namespace to default to for title |
| name = 'templatestyles', args = { src = 'Module:Navbox/styles.css' }
| | ['invalid_title'] = 'Invalid title ', |
| },
| | ['classes'] = { -- set a line to nil if you don't want it |
| hlist_templatestyles = 'Hlist/styles.css', | | ['navbar'] = 'navbar', |
| plainlist_templatestyles = 'فهرست ساده/styles.css',
| | ['plainlinks'] = 'plainlinks', -- plainlinks |
| -- do not localize marker table
| | ['horizontal_list'] = 'hlist', -- horizontal list class |
| marker = { | | ['mini'] = 'navbar-mini', -- class indicating small links in the navbar |
| oddeven = '\127_ODDEVEN_\127',
| | ['this_box'] = 'navbar-boxtext', |
| restart = '\127_ODDEVEN0_\127',
| | ['brackets'] = 'navbar-brackets', |
| regex = '\127_ODDEVEN(%d?)_\127'
| | -- 'collapsible' is the key for a class to indicate the navbar is |
| }, | | -- setting up the collapsible element in addition to the normal |
| category = { | | -- navbar. |
| orphan = '[[رده:جعبههای ناوبری یتیم]]',
| | ['collapsible'] = 'navbar-collapse', |
| horizontal_lists = 'جعبههای ناوبری بدون فهرست افقی',
| | ['collapsible_title_mini'] = 'navbar-ct-mini', |
| background_colors = 'جعبههای ناوبری با استفاده از رنگهای پسزمینه',
| | ['collapsible_title_full'] = 'navbar-ct-full' |
| illegible = 'جعبههای ناوبری بالقوه ناخوانا',
| |
| 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',
| |
| subpage_doc = 'توضیحات',
| |
| subpage_sandbox = 'تمرین',
| |
| subpage_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 = '/تمرین$',
| |
| navbox = 'الگو: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',
| |
| imagesetyle = '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'
| |
| } | | } |
| } | | } |
توضیحات این پودمان میتواند در پودمان:Navbar/configuration/توضیحات قرار گیرد.
return {
['templatestyles'] = 'Module:Navbar/styles.css',
['box_text'] = 'This box: ', -- default text box when not plain or mini
['title_namespace'] = 'Template', -- namespace to default to for title
['invalid_title'] = 'Invalid title ',
['classes'] = { -- set a line to nil if you don't want it
['navbar'] = 'navbar',
['plainlinks'] = 'plainlinks', -- plainlinks
['horizontal_list'] = 'hlist', -- horizontal list class
['mini'] = 'navbar-mini', -- class indicating small links in the navbar
['this_box'] = 'navbar-boxtext',
['brackets'] = 'navbar-brackets',
-- 'collapsible' is the key for a class to indicate the navbar is
-- setting up the collapsible element in addition to the normal
-- navbar.
['collapsible'] = 'navbar-collapse',
['collapsible_title_mini'] = 'navbar-ct-mini',
['collapsible_title_full'] = 'navbar-ct-full'
}
}