Modul:Marker/config

CamNet - das Wiki
Documentation icon Module documentation

This module provides data for Module:Marker/class

Usage

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

Maintenanace notes

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

-- This is the configuration for ClassMarker. 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 = 'Kartenmarker',
	description = 'Erlaubt es, eine Markierung auf der Karte zu setzen.',
	category = nil,
	gardeningCategory = 'Marker with erroneout input',
	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 = 'Kartenmarker setzen',
	labelEdit = 'Kartenmarker bearbeiten',
	headerText = 'Erlaubt es, eine Markierung auf der Karte zu setzen.',
	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 = { 'name', 'localization', 'address', 'coordinates', 'incity', 'description', },
}

local template = {
	name = 'Marker',
	templateDocumentationSeeAlso = { 'Location', 'Events', },
}

local parameter = {
	name = {
		cardinality = 'single',
		description = 'Name der Kartenmarkierung. Bitte seeehr knapp halten (mehr als zwei bis drei Wörter werden auf der Karte nicht angezeigt)',
		label = 'Name',
		property_name = 'Is_titled',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			input_type = 'text',
		},
		td_type = 'line',
	},
	localization = {
		cardinality = 'single',
		description = 'Möchtest du den Schauplatz lieber über eine Adresse oder über Kartenkoordinaten verorten?\n' ..
			'Letzteres ist genauer, ersteres preferiert weil wesenlich besser für Nutzer zu lesen.',
		label = 'Verortung',
		severity = 'mandatory',
		sf = {
			default = 'Adresse',
			input_type = 'radiobutton',
			show_on_select = { Koordinaten = { 'coordinates', }, Adresse = { 'address', }, },
		},
		td_type = 'line',
		values = { 'Adresse', 'Koordinaten', },
	},
	address = {
		cardinality = 'single',
		description = 'Bitte die Adresse oder Koordinaten für den Schauplatz angeben. Er wird entsprechend auf der Karte angezeigt.\n' ..
			'Wird beides angegeben, wird die Eingabe für Koordinaten bevorzugt.\n' ..
			'Lieber ist uns aber die Angabe einer Adresse. Ist besser lesbar! :)',
		label = 'Adresse',
		property_name = 'Has_address',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			input_type = 'text',
		},
		td_type = 'line',
	},
	coordinates = {
		cardinality = 'single',
		description = 'Bitte die Adresse oder Koordinaten für den Schauplatz angeben. Er wird entsprechend auf der Karte angezeigt.\n' ..
			'Wird beides angegeben, wird die Eingabe für Koordinaten bevorzugt.\n' ..
			'Lieber ist uns aber die Angabe einer Adresse. Ist besser lesbar! :)',
		label = 'Koordinaten',
		property_name = 'Has_geo_coordinates',
		property_type = 'Geographic coordinate',
		severity = 'mandatory',
		sf = {
			center = '40.7412551,-73.9940724',
			geoservice = 'googlemaps',
			height = 300,
			input_type = 'googlemaps',
			width = 400,
			zoom = 13,
		},
		td_type = 'line',
	},
	incity = {
		cardinality = 'single',
		description = 'Die Stadt, in der der Marker liegt ist.',
		label = 'Stadt',
		property_name = 'Located_in_city',
		property_type = 'Page',
		severity = 'suggested',
		sf = {
			existing_values_only = false,
			input_type = 'combobox',
			placeholder = 'Stadtname',
			values_from_category = 'Städte',
		},
		td_type = 'wiki-page-name',
	},
	description = {
		cardinality = 'single',
		description = 'Eine (kurze) Beschreibung des Kartenmarkers mit allen wichtigen Informationen. Im Text kann auf andere Seiten wikitypisch verlinkt werden.',
		label = 'Beschreibung',
		property_name = 'Has_short_description',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			input_type = 'textarea',
		},
		td_type = 'string',
	},
}

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