Only registered users can edit. The registration requests please send to nablawiki@gm**l.com

Модуль:Example/data

Материал из Chameleon Test
Перейти к:навигация, поиск

Для документации этого модуля может быть создана страница Модуль:Example/data/doc

local data = {}
data.indicator = {
		['ok'     ] = '<span class="label label-success" title="Succefull">ok</span>',
		['mod'    ] = '<span class="label label-info" title="Modification needed">mod</span>',
		['ul'     ] = '<span class="label label-info" title="Modification needed(ul/ol correction)">ul</span>',
		['partial'] = '<span class="label label-warning" title="Partial functionality">partial</span>',
		['no'     ] = '<span class="label label-danger" title="Not works">no</span>',
		['n/a'    ] = '<span class="label label-default" title="Not applicable">n/a</span>',
		['blank'  ] = ''
	}
data.showexec = { --all/title/exec/text/noexec/notext
		['exec'  ] = true,
		['notext'] = true,
		['all'   ] = true
	}
data.showtext = {
		['text'  ] = true,
		['noexec'] = true,
		['all'   ] = true
	}	
data.mode = {
		['orig'] = 'html',
		['wiki'] = 'wiki',
		['html'] = 'html'
	}
data.corrorig = {
		['orig'] = 'orig',
		['wiki'] = 'corr',
		['html'] = 'corr'
	}
data.modetitle = {
		['orig'] = 'Raw HTML',
		['wiki'] = 'Wiki markup',
		['html'] = 'Raw HTML'
	}
data.sourcetitle = {
		['orig'] = 'original code',
		['wiki'] = '<i>modified</i> code',
		['html'] = '<i>modified</i> code'
	}
data.sourceabbr = {
		['orig'] = 'orig',
		['wiki'] = '<i>modified</i> code',
		['html'] = '<i>modified</i> code'
	}
data.subst = {
		['/'] = '--',
		[':'] = '-_',
		['.'] = '__',
		[','] = '_-',
		['('] = '_O_',
		[')'] = '_C_',
		[' '] = '-',
	}		
 
return data