Zum Inhalt springen

„Modul:Wikibase/config“ – Versionsunterschied

aus AufEinWort, der freien Forschung
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
cfg.smw = {
cfg.smw = {
   Q = {
   Q = {
     propArt  = 'Q1234',
     propArt  = 'Wikibaseart',
     propLabel = 'L296874',
     propLabel = 'Benennung',
     propDesc  = 'Suchuntertitel',
     propDesc  = 'Beschreibung',
     valArt    = 'Q',
     valArt    = 'Q',
     -- Optionale P-IDs: SMW-Attributname = deutsches P-Label.
     -- Optionale P-IDs: SMW-Attributname = deutsches P-Label.
     -- Testbelegung; leere Plätze werden übersprungen.
     -- Testbelegung; leere Plätze werden übersprungen.
     prop1    = 'P7',
     prop1    = 'P53',
     prop2    = 'P9',
     prop2    = 'P54',
     prop3    = '',
     prop3    = 'P55',
     prop4    = '',
     prop4    = 'P56',
   },
   },
   P = {
   P = {

Version vom 15. Oktober 2026, 13:53 Uhr

Die Dokumentation für dieses Modul kann unter Modul:Wikibase/config/Doku erstellt werden

local cfg = {}

cfg.smw = {
  Q = {
    propArt   = 'Wikibaseart',
    propLabel = 'Benennung',
    propDesc  = 'Beschreibung',
    valArt    = 'Q',
    -- Optionale P-IDs: SMW-Attributname = deutsches P-Label.
    -- Testbelegung; leere Plätze werden übersprungen.
    prop1     = 'P53',
    prop2     = 'P54',
    prop3     = 'P55',
    prop4     = 'P56',
  },
  P = {
    propArt   = 'Wikibaseart',
    propLabel = 'Benennung',        -- oder z.B. 'Eigenschaft'
    propDesc  = 'Suchuntertitel',    -- oder z.B. 'Beschreibung'
    valArt    = 'P',
  },
  L = {
    propArt   = 'Wikibaseart',
    propLabel = 'Benennung',         -- Lemma
    propDesc  = 'Suchuntertitel',     -- Wortart oder Sinn (je nach Logik im Modul)
    valArt    = 'L',
  }
}

return cfg