Модул:Template test case/config — разлика између измена
Пређи на навигацију
Пређи на претрагу
(+) |
м (1 измена увезена) |
||
| (Нису приказане 2 међуизмене 2 корисника) | |||
| Ред 25: | Ред 25: | ||
-- The default header for test cases rendered in columns. | -- The default header for test cases rendered in columns. | ||
['columns-header'] = ' | ['columns-header'] = 'Sajd-baj-sajd usporedba', | ||
-- The error message to use if a templaten option is missing. | -- The error message to use if a templaten option is missing. | ||
-- $1 - the number of the missing template option. | -- $1 - the number of the missing template option. | ||
['missing-template-option-error'] = " | ['missing-template-option-error'] = "Detektovana je jedna ili više opcija sa '$1' " .. | ||
" | "na kraju, ali opcija 'template$1' nije pronađena", | ||
-- The error message to use if a nowiki invocation is used but the template | -- The error message to use if a nowiki invocation is used but the template | ||
-- name magic word is not found. | -- name magic word is not found. | ||
-- $1 - the value of the template name magic word | -- $1 - the value of the template name magic word | ||
['nowiki-magic-word-error'] = " | ['nowiki-magic-word-error'] = "Pozivanje šablona mora da sadrži '$1' na " .. | ||
" | "mestu naziva šablona", | ||
}, | }, | ||
| Ред 52: | Ред 52: | ||
wrappers = { | wrappers = { | ||
[' | ['Šablon:Test case'] = {}, | ||
[' | ['Šablon:Testcase table'] = { | ||
args = {_format = 'columns'} | args = {_format = 'columns'} | ||
}, | }, | ||
[' | ['Šablon:Testcase rows'] = { | ||
args = {_format = 'rows'} | args = {_format = 'rows'} | ||
}, | }, | ||
[' | ['Šablon:Test case nowiki'] = { | ||
func = 'nowiki' | func = 'nowiki' | ||
}, | }, | ||
[' | ['Šablon:Nowiki template demo'] = { | ||
func = 'nowiki', | func = 'nowiki', | ||
args = {showheader = false, showtemplate2 = false} | args = {showheader = false, showtemplate2 = false} | ||
}, | }, | ||
[' | ['Šablon:Collapsible test case'] = { | ||
args = {_collapsible = true} | args = {_collapsible = true} | ||
}, | }, | ||
[' | ['Šablon:Inline test case'] = { | ||
args = {_format = 'inline', _showcode = true} | args = {_format = 'inline', _showcode = true} | ||
}, | }, | ||
Тренутна верзија на датум 5. фебруар 2021. у 13:51
Документацију овог модула можете да направите на страници Модул:Template test case/config/док
-------------------------------------------------------------------------------
-- Module:Template test case/config
-- This module holds configuration data for [[Module:Template test case]].
-------------------------------------------------------------------------------
return {
-------------------------------------------------------------------------------
-- Options
-------------------------------------------------------------------------------
-- The magic word used in place of the template name when making nowiki
-- invocations.
templateNameMagicWord = '__TEMPLATENAME__',
-- The subpage that sandboxes are typically stored on. Used when loading
-- wrapper template config and when guessing the sandbox template name.
sandboxSubpage = 'sandbox',
-------------------------------------------------------------------------------
-- Messages
-------------------------------------------------------------------------------
msg = {
-- The default header for test cases rendered in columns.
['columns-header'] = 'Sajd-baj-sajd usporedba',
-- The error message to use if a templaten option is missing.
-- $1 - the number of the missing template option.
['missing-template-option-error'] = "Detektovana je jedna ili više opcija sa '$1' " ..
"na kraju, ali opcija 'template$1' nije pronađena",
-- The error message to use if a nowiki invocation is used but the template
-- name magic word is not found.
-- $1 - the value of the template name magic word
['nowiki-magic-word-error'] = "Pozivanje šablona mora da sadrži '$1' na " ..
"mestu naziva šablona",
},
-------------------------------------------------------------------------------
-- Wrapper template config.
-- The wrapper template config is a table with wrapper template names as keys,
-- and subtables containing two fields:
-- func - the function name to be used with that template. This must be a
-- function exported by the main module. This is optional: the default
-- value is "table".
-- args - a table of default arguments to be used with that template. This is
-- is optional.
-------------------------------------------------------------------------------
wrappers = {
['Šablon:Test case'] = {},
['Šablon:Testcase table'] = {
args = {_format = 'columns'}
},
['Šablon:Testcase rows'] = {
args = {_format = 'rows'}
},
['Šablon:Test case nowiki'] = {
func = 'nowiki'
},
['Šablon:Nowiki template demo'] = {
func = 'nowiki',
args = {showheader = false, showtemplate2 = false}
},
['Šablon:Collapsible test case'] = {
args = {_collapsible = true}
},
['Šablon:Inline test case'] = {
args = {_format = 'inline', _showcode = true}
},
},
-------------------------------------------------------------------------------
-- End config
-------------------------------------------------------------------------------
}