Modul:Info/config: Unterschied zwischen den Versionen

CamNet - das Wiki
(Die Seite wurde neu angelegt: „-- This is the configuration for ClassInfo. It has been autocreated by Module:Classgenerator. -- It is strongly suggested, you use the form to make alterations…“)
 
Keine Bearbeitungszusammenfassung
Zeile 108: Zeile 108:
},
},
td_type = 'line',
td_type = 'line',
values = { 'Hintergrund', 'Disziplinen', 'Verbindungen', 'Agenda', 'Kommentare', },
values = { 'Hintergrund', 'Fähigkeiten', 'Verbindungen', 'Agenda', 'Kommentare', },
},
on_page = {
cardinality = 'single',
description = 'Auf welcher CamNet-Seite wurde diese Information hinzugefügt',
label = 'Seite',
property_name = 'is_associated_to_page',
property_type = 'Page',
severity = 'mandatory',
},
},
}
}

Version vom 13. Februar 2016, 19:14 Uhr

Documentation icon Module documentation

This module provides data for Module:Info/class

Usage

local cfg = mw.loadData('Module:Info/config')

Maintenanace notes

This page was created by Module:Classgenerator and belongs to Class:Info.

-- This is the configuration for ClassInfo. It has been autocreated by Module:Classgenerator.
-- It is strongly suggested, you use the form to make alterations and copy the new configuration an this page!

local superglobal = mw.loadData('Module:Foundationclass/globalconfig')

local global = {
	debugLevel = false,
	entityTitle = 'Info',
	description = 'Erlaubt es, wichtige Informationsfragmente herauszuheben, zu speichern und mit verschiedenen Tags zu versehen (sie Organisationen, Themen und/oder Personen zuzuordnen)',
	category = nil,
	gardeningCategory = 'Info fragments with data errors',
	namespace = nil,
	cargoTable = nil,
	smwUseStorage = true,
	smwIsSubobject = true,
	restrictedTo = nil,
	delimiter = ',',
}

local form = {
	enable = true,
	name = nil,
	teaserText = nil,
	typeCreateLink = 'none',
	createInfotext = nil,
	createInputPlaceholder = nil,
	createInputQueryString = nil,
	createLinkPageName = nil,
	createLinkQueryString = nil,
	createLinkType = nil,
	labelCreate = 'Information anlegen',
	labelEdit = 'Information bearbeiten',
	headerText = 'Erlaubt es, wichtige Informationsfragmente herauszuheben, zu speichern und mit verschiedenen Tags zu versehen (sie Organisationen, Themen und/oder Personen zuzuordnen)',
	notification = nil,
	sectionList = nil,
	allowsFreeText = false,
	buttons = { 'save', 'preview', 'changes', 'cancel', },
	fieldSize = 80,
	textareaAttributes = {	-- the defaults for your textarea fields
		cols = 80,
		rows = 4,
		autogrow = true,
		editor = 'wikieditor',
	},
	fieldOrder = { 'payload', 'source', 'target', 'type', },
}

local template = {
	name = 'Info',
	templateDocumentationSeeAlso = nil,
}

local parameter = {
	payload = {
		cardinality = 'single',
		description = 'Die wichtige Information, die es zu speichern und/oder zuzuordnen gilt.',
		label = 'Information',
		property_name = 'holds_information',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			editor = 'wikieditor',
			input_type = 'textarea',
		},
		td_type = 'line',
	},
	source = {
		cardinality = 'list',
		description = 'Hier bitte die Quelle(n) der Information angeben (Person, Schriftstück, Vision, ...)',
		label = 'Quelle',
		property_name = 'has_source',
		property_type = 'Page',
		severity = 'mandatory',
		sf = {
			existing_values_only = false,
			input_type = 'tokens',
			mapping_property = 'has display title',
			values_from_concept = 'Sources',
		},
		td_type = 'wiki-page-name',
	},
	target = {
		cardinality = 'list',
		description = 'Über wen oder was handelt die Information',
		label = 'Objekt',
		property_name = 'concerns',
		property_type = 'Page',
		severity = 'mandatory',
		sf = {
			existing_values_only = false,
			input_type = 'tokens',
			mapping_property = 'Has display title',
			placeholder = 'Person, Organisation, Thema',
			values_from_concept = 'Targets',
		},
		td_type = 'wiki-page-name',
	},
	type = {
		cardinality = 'single',
		description = 'Um welchen Typ Information handelt es sich. Dient der Klassifizierung und der besseren Einordnung.',
		label = 'Typ',
		property_name = 'is_about',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			existing_values_only = true,
			input_type = 'combobox',
		},
		td_type = 'line',
		values = { 'Hintergrund', 'Fähigkeiten', 'Verbindungen', 'Agenda', 'Kommentare', },
	},
	on_page = {
		cardinality = 'single',
		description = 'Auf welcher CamNet-Seite wurde diese Information hinzugefügt',
		label = 'Seite',
		property_name = 'is_associated_to_page',
		property_type = 'Page',
		severity = 'mandatory',
	},
}

return {
	form = form,
	global = global,
	parameter = parameter,
	template = template,
}