Modul:Location/config: Unterschied zwischen den Versionen
Noémi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Noémi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 156: | Zeile 156: | ||
center = '40.7412551,-73.9940724', | center = '40.7412551,-73.9940724', | ||
geoservice = 'googlemaps', | geoservice = 'googlemaps', | ||
height = | height = 300, | ||
input_type = 'googlemaps', | input_type = 'googlemaps', | ||
width = | width = 400, | ||
zoom = 13, | zoom = 13, | ||
}, | }, | ||
Version vom 13. Februar 2016, 10:45 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:Location/class
Usage[Quelltext bearbeiten]
local cfg = mw.loadData('Module:Location/config')
Maintenanace notes
This page was created by Module:Classgenerator and belongs to Class:Location.
| 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 ClassLocation. 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 = 'Location',
description = 'Beschreibt ein Ort im Spiel. Hier können alle namhaften Örtlichkeiten, die keine Städte sind, aufgeführt werden.',
category = 'Schauplätze',
gardeningCategory = 'Locations with erroneous data',
namespace = nil,
cargoTable = nil,
smwUseStorage = true,
smwIsSubobject = false,
restrictedTo = nil,
delimiter = ',',
}
local form = {
enable = true,
name = 'Schauplatz',
teaserText = 'Bitte gib den Namen des zu erstellenden Schauplatzes ein. Sollte bereits eine entsprechende Seite existieren, wirst du darauf weitergeleitet und kannst sie bearbeiten.',
typeCreateLink = 'forminput',
createInfotext = 'Bitte den Namen des Schauplatzes angeben ',
createInputPlaceholder = nil,
createInputQueryString = nil,
createLinkPageName = nil,
createLinkQueryString = nil,
createLinkType = nil,
labelCreate = 'Schauplatz erstellen',
labelEdit = 'Schauplatz bearbeiten',
headerText = 'Beschreibt ein Ort im Spiel. Hier können alle namhaften Örtlichkeiten, die keine Städte sind, aufgeführt werden.',
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', 'incity', 'localization', 'address', 'coordinates', 'residents', 'operator', 'description', },
}
local template = {
name = 'Location',
templateDocumentationSeeAlso = { 'City', },
}
local parameter = {
name = {
cardinality = 'single',
description = 'Der Name, die Bezeichnung des Ortes. So präzise aber kurz wie möglich, bitte.',
label = 'Name',
property_name = 'bears_the_name',
property_type = 'Text',
severity = 'mandatory',
sf = {
input_type = 'text',
placeholder = 'Bezeichnung',
},
td_type = 'line',
},
displaytitle = {
cardinality = 'single',
description = 'Der Name, der als Linktext für die Kapitelseite verwendet wird',
label = 'Anzeigename',
property_name = 'Has_display_title',
property_type = 'Text',
severity = 'mandatory',
},
image = {
cardinality = 'single',
description = 'Ein Bild für den Schauplatz. Dient der besseren Identifizierung und Assozierung.',
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 = 'Schauplatzbilder',
},
td_type = 'wiki-file-name',
},
type = {
cardinality = 'single',
description = 'Welchem Hauptsweck dient der Schauplatz? Elysium, Gildehaus, etc. Wenn unbekannt, einfach "Sonstiges" auswählen.\n' ..
'PS: Ein Vampir hat üblicherweise keinen Wohnort, sondern eine Zuflucht. Ersteres ist anderen Wesenheiten vorbehalten. Z.B. Menschen.',
label = 'Typ',
property_name = 'has_mainfunction',
property_type = 'Text',
severity = 'mandatory',
sf = {
existing_values_only = true,
input_type = 'combobox',
placeholder = 'Bitte auswählen!',
},
td_type = 'line',
values = { 'Zuflucht', 'Elysium', 'Gildehaus', 'Wohnort', 'Besonderer Ort', 'Mundaner Ort', 'Sonstiges', },
},
incity = {
cardinality = 'single',
description = 'Die Stadt, in der der Schauplatz verortet ist.',
label = 'Stadt',
property_name = 'Located_in_city',
property_type = 'Page',
severity = 'suggested',
sf = {
existing_values_only = false,
input_type = 'combobox',
values_from_category = 'Städte',
},
td_type = 'line',
},
localization = {
cardinality = 'single',
description = 'Möchtest du den Schauplatz lieber über eine Adresse oder über Kartenkoordinaten verorten? Letzteres ist genauer, ersteres 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 = 'suggested',
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.',
label = 'Koordinaten',
property_name = 'Has_geo_coordinates',
property_type = 'Text',
severity = 'suggested',
sf = {
center = '40.7412551,-73.9940724',
geoservice = 'googlemaps',
height = 300,
input_type = 'googlemaps',
width = 400,
zoom = 13,
},
td_type = 'line',
},
residents = {
cardinality = 'list',
description = 'Namen der Bewohner, Ansässigen, hier tätigen oder häufig hier anzutreffenden Personen.',
label = 'Ansässig',
property_name = 'has_resident',
property_type = 'Page',
severity = 'mandatory',
sf = {
existing_values_only = false,
input_type = 'tokens',
mapping_property = 'Has display title',
placeholder = 'Personen',
values_from_category = 'Personen',
},
td_type = 'line',
},
operator = {
cardinality = 'single',
description = 'Sofern vorhanden, hier den für den Ort Verantwortlichen eintragen (Hüter des Elysiums, Regent, Ladenbesitzer)',
label = 'Verantwortlich',
property_name = 'is_operated_by',
property_type = 'Page',
severity = 'suggested',
sf = {
existing_values_only = false,
input_type = 'combobox',
mapping_property = 'Has display title',
values_from_category = 'Personen',
},
td_type = 'wiki-page-name',
},
description = {
cardinality = 'single',
description = 'Eine (kurze) Beschreibung des Schauplatzes mit allen wichtigen Informationen. Im Text kann auf andere Seiten wikitypisch verlinkt werden.',
label = 'Beschreibung',
property_name = 'Has_short_description',
property_type = 'Text',
severity = 'suggested',
sf = {
editor = 'wikieditor',
input_type = 'textarea',
rows = 10,
},
td_type = 'string',
},
}
return {
form = form,
global = global,
parameter = parameter,
template = template,
}