Modul:Artefact/config

CamNet - das Wiki
Documentation icon Module documentation

This module provides data for Module:Artefact/class

Usage[Quelltext bearbeiten]

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

Maintenanace notes

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

-- This is the configuration for ClassArtefact. 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 = 'Artefact',
	description = 'Beschreibt ein Artefakt im Spiel.',
	category = 'Artefakte',
	gardeningCategory = 'Artefacts with incorrect data',
	namespace = nil,
	cargoTable = nil,
	smwUseStorage = true,
	smwIsSubobject = false,
	restrictedTo = nil,
	delimiter = ',',
}

local form = {
	enable = true,
	name = 'Artefakt',
	teaserText = 'Um eine Artefaktseite anzulegen, gib bitte den Namen des Artefaktes ein.\n' ..
		'Falls die entsprechende Seite schon existiert, wirst du auf sie weitergeleitet und kannst sie editieren.',
	typeCreateLink = 'forminput',
	createInfotext = 'Name des Artefaktes ',
	createInputPlaceholder = nil,
	createInputQueryString = nil,
	createLinkPageName = nil,
	createLinkQueryString = nil,
	createLinkType = nil,
	labelCreate = 'Artefakt anlegen',
	labelEdit = 'Artefakt bearbeiten',
	headerText = 'Artefaktes sind magische, übernatürliche oder manchmal auch mundane wichtige Gegenstände.\n' ..
		'Manche haben eher eine perönliche Bedeutung, andere sind für Bewältigung größerer Geschehnisse unabdingbar.',
	notification = nil,
	sectionList = nil,
	allowsFreeText = true,
	buttons = { 'save', 'preview', 'changes', 'cancel', },
	fieldSize = 80,
	textareaAttributes = {	-- the defaults for your textarea fields
		cols = 80,
		rows = 4,
		autogrow = true,
		editor = 'wikieditor',
	},
	fieldOrder = { 'name', 'image', 'type', 'functionality', 'possession', 'acquired', 'description', },
}

local template = {
	name = 'Artefact',
	templateDocumentationSeeAlso = { 'Organisation', 'Clan', },
}

local parameter = {
	name = {
		cardinality = 'single',
		description = 'Unter diesem Namen ist das Artefakt bekannt, so wird es bezeichnet.',
		label = 'Name',
		property_name = 'Bears_the_name',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			default = false,
			input_type = 'text',
		},
		td_type = 'line',
	},
	displayname = {
		cardinality = 'single',
		description = 'Dies ist der Anzeigename des Artefaktes.',
		label = 'Anzeigename',
		property_name = 'Has_display_title',
		property_type = 'Text',
		severity = 'mandatory',
	},
	image = {
		cardinality = 'single',
		description = 'Ein Bild des Artefaktes',
		label = 'Bild',
		property_name = 'Uses_image',
		property_type = 'Page',
		severity = 'suggested',
		sf = {
			image_preview = true,
			input_type = 'text with autocomplete',
			uploadable = true,
			values_from_category = 'Artefaktbilder',
		},
		td_type = 'wiki-file-name',
	},
	type = {
		cardinality = 'single',
		description = 'Um was für einen Gegenstandstyp handelt es sich? Schale, Speer, Statuette, ...',
		label = 'Gegenstandstyp',
		property_name = 'is_of_item_type',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			input_type = 'text with autocomplete',
		},
		td_type = 'line',
	},
	functionality = {
		cardinality = 'single',
		description = 'Welche Funktion hat der Gegenstand, welche besonderen Eigenschaften besitzt er?',
		label = 'Funktion',
		property_name = 'functions_as',
		property_type = 'Text',
		severity = 'mandatory',
		sf = {
			existing_values_only = false,
			input_type = 'tokens',
		},
		td_type = 'line',
	},
	possession = {
		cardinality = 'single',
		description = 'Bei wem befindet sich das Artefakt gerade. Wenn der Verbleib unbekannt ist, das Feld bitte leer lassen.',
		label = 'Verbleib',
		property_name = 'is_in_the_possession_of',
		property_type = 'Page',
		severity = 'suggested',
		sf = {
			existing_values_only = false,
			input_type = 'combobox',
			mapping_property = 'Has display title',
			placeholder = 'Charaktername',
			values_from_category = 'Personen',
		},
		td_type = 'wiki-page-name',
	},
	acquired = {
		cardinality = 'single',
		description = 'Wenn sich das Artefakt in Spielerhand befindet, hier bitte das Kapitel angeben, wann dies geschehen ist.',
		label = 'Erhalten in Kapitel',
		property_name = 'was_acquired_in_chapter',
		property_type = 'Page',
		severity = 'suggested',
		sf = {
			delimiter = '+',
			existing_values_only = true,
			input_type = 'combobox',
			mapping_property = 'Has display title',
			placeholder = 'Kapitelname',
			values_from_category = 'Kapitel',
		},
		td_type = 'wiki-page-name',
	},
	description = {
		cardinality = 'single',
		description = 'Eine kurze Beschreibung des Gegenstandes.',
		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,
}