Modul:Artefact/config: Unterschied zwischen den Versionen
Noémi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Noémi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 45: | Zeile 45: | ||
editor = 'wikieditor', | editor = 'wikieditor', | ||
}, | }, | ||
fieldOrder = { 'name', 'image', 'type', ' | fieldOrder = { 'name', 'image', 'type', 'functionality', 'possession', 'acquired', 'description', }, | ||
} | } | ||
| Zeile 84: | Zeile 84: | ||
sf = { | sf = { | ||
image_preview = true, | image_preview = true, | ||
input_type = 'text', | input_type = 'text with autocomplete', | ||
uploadable = true, | uploadable = true, | ||
values_from_category = 'Artefaktbilder', | |||
}, | }, | ||
td_type = 'wiki-file-name', | td_type = 'wiki-file-name', | ||
Version vom 8. März 2016, 15:08 Uhr
| This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
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.
| It is strongly advised, to not edit this page but to use the Classgenerator form instead! After that, use your new configuration to replace the contents of this page. |
-- 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,
}