„Modul:Wikibase/config“ – Versionsunterschied
Erscheinungsbild
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
| (8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
local cfg = {} | local cfg = {} | ||
cfg.entityNamespaces = { | |||
Q = 'Qwasi', -- Namensraum 120 | |||
P = 'Paß', -- Namensraum 122 | |||
L = 'Lautung', -- Namensraum 146 | |||
} | |||
cfg.smw = { | cfg.smw = { | ||
Q = { | Q = { | ||
propArt = ' | -- Lokale Q-ID oder fester SMW-Attributname. | ||
propLabel = ' | -- Bei Q-ID wird das deutsche Label verwendet, ersatzweise die ID. | ||
propDesc = ' | propArt = 'Q52', | ||
valArt | propLabel = 'Q42', | ||
propDesc = 'Q43', | |||
-- Kein valArt für Q: Wert ist automatisch die reine Q-ID. | |||
-- Das zugehörige SMW-Attribut benötigt den Typ External identifier | |||
-- und External formatter URI (siehe Einbauhinweise). | |||
-- SMW-Attributname = deutsches P-Label. | -- SMW-Attributname = deutsches P-Label. | ||
-- SMW-Wert = prefixN .. aufbereiteter Aussagewert. | -- SMW-Wert = prefixN .. aufbereiteter Aussagewert. | ||
| Zeile 13: | Zeile 22: | ||
prop1 = 'P53', -- Obereinordnung | prop1 = 'P53', -- Obereinordnung | ||
prefix1 = 'VM:', | prefix1 = 'VM:', | ||
prop2 = ' | prop2 = '', -- Untereinordnung | ||
prefix2 = ' | prefix2 = '', | ||
prop3 = ' | prop3 = '', -- Einordnung | ||
prefix3 = ' | prefix3 = '', | ||
prop4 = ' | prop4 = '', -- Ordnung | ||
prefix4 = ' | prefix4 = '', | ||
prop5 = '', | |||
prefix5 = '', | |||
prop6 = '', | |||
prefix6 = '', | |||
}, | }, | ||
P = { | P = { | ||
| Zeile 27: | Zeile 40: | ||
}, | }, | ||
L = { | L = { | ||
propArt | -- Attributname: Klartext oder lokale Q-/P-ID. | ||
propLabel = ' | propArt = 'Q52', -- wie Q: vollständige Kennung als External identifier | ||
propDesc | propLabel = 'Lemma', | ||
propDesc = 'Lexikalische Kategorie', | |||
propLanguage = 'Lexemsprache', | |||
-- Kein valArt: L-ID kommt automatisch aus dem Vorlagenparameter. | |||
-- Optional: Aussagen am Lexem, zunächst nicht aktiviert. | |||
prop1 = '', prefix1 = '', | |||
prop2 = '', prefix2 = '', | |||
prop3 = '', prefix3 = '', | |||
prop4 = '', prefix4 = '', | |||
prop5 = '', prefix5 = '', | |||
prop6 = '', prefix6 = '', | |||
} | } | ||
} | } | ||
return cfg | return cfg | ||
Aktuelle Version vom 20. Oktober 2026, 12:17 Uhr
Die Dokumentation für dieses Modul kann unter Modul:Wikibase/config/Doku erstellt werden
local cfg = {}
cfg.entityNamespaces = {
Q = 'Qwasi', -- Namensraum 120
P = 'Paß', -- Namensraum 122
L = 'Lautung', -- Namensraum 146
}
cfg.smw = {
Q = {
-- Lokale Q-ID oder fester SMW-Attributname.
-- Bei Q-ID wird das deutsche Label verwendet, ersatzweise die ID.
propArt = 'Q52',
propLabel = 'Q42',
propDesc = 'Q43',
-- Kein valArt für Q: Wert ist automatisch die reine Q-ID.
-- Das zugehörige SMW-Attribut benötigt den Typ External identifier
-- und External formatter URI (siehe Einbauhinweise).
-- SMW-Attributname = deutsches P-Label.
-- SMW-Wert = prefixN .. aufbereiteter Aussagewert.
-- Präfix einschließlich Trennzeichen eingeben, z.B. 'Übersicht:'.
-- Leeres Präfix bewahrt den unveränderten Wert.
prop1 = 'P53', -- Obereinordnung
prefix1 = 'VM:',
prop2 = '', -- Untereinordnung
prefix2 = '',
prop3 = '', -- Einordnung
prefix3 = '',
prop4 = '', -- Ordnung
prefix4 = '',
prop5 = '',
prefix5 = '',
prop6 = '',
prefix6 = '',
},
P = {
propArt = 'Wikibaseart',
propLabel = 'Benennung', -- oder z.B. 'Eigenschaft'
propDesc = 'Suchuntertitel', -- oder z.B. 'Beschreibung'
valArt = 'P',
},
L = {
-- Attributname: Klartext oder lokale Q-/P-ID.
propArt = 'Q52', -- wie Q: vollständige Kennung als External identifier
propLabel = 'Lemma',
propDesc = 'Lexikalische Kategorie',
propLanguage = 'Lexemsprache',
-- Kein valArt: L-ID kommt automatisch aus dem Vorlagenparameter.
-- Optional: Aussagen am Lexem, zunächst nicht aktiviert.
prop1 = '', prefix1 = '',
prop2 = '', prefix2 = '',
prop3 = '', prefix3 = '',
prop4 = '', prefix4 = '',
prop5 = '', prefix5 = '',
prop6 = '', prefix6 = '',
}
}
return cfg