Prijeđi na sadržaj

Modul:Template test case/config

Izvor: Wikipedija
-------------------------------------------------------------------------------
--                    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'] = 'Usporedni prikaz',

-- The error message to use if a template option is missing.
-- $1 - the number of the missing template option.
['missing-template-option-error'] = "pronađena je jedna ili više opcija koje završavaju s '$1' " ..
	", ali nije pronađena opcija 'template$1'",

-- 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'] = "poziv predloška mora uključivati '$1' umjesto " ..
	"imena predloška",

},

-------------------------------------------------------------------------------
-- 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 = {
	['Predložak:Test predloška'] = {},
	['Predložak:Test predloška/col'] = {
		args = {_format = 'columns'}
	},
	['Predložak:Test predloška/row'] = {
		args = {_format = 'rows'}
	},
	['Predložak:Test predloška/nowiki'] = {
		func = 'nowiki'
	},
	['Predložak:Demo predloška'] = {
		args = {showheader = false, _showtemplate2 = false}
	},
	['Predložak:Demo predloška/nowiki'] = {
		func = 'nowiki',
		args = {showheader = false, _showtemplate2 = false}
	},
	['Predložak:Demo predloška/inline'] = {
		func = 'nowiki',
		args = {showheader = false, _showtemplate2 = false, _format='inline'}
	},
	['Predložak:Test predloška/collapse'] = {
		args = {_collapsible = true}
	},
	['Predložak:Test predloška/collapse-diff'] = {
		args = {_collapsible = true, _wantdiff = true}
	},
	['Predložak:Predložak:Test predloška/inline'] = {
		args = {_format = 'inline', _showcode = true}
	},
},

-------------------------------------------------------------------------------
-- End config
-------------------------------------------------------------------------------

}