Nicht angemeldeter Benutzer - Bearbeiten von Seiten ist nur als angemeldeter Benutzer möglich.

Modul:Shortcuts/config: Unterschied zwischen den Versionen

Aus imedwiki
Zur Navigation springen Zur Suche springen
(+ sayBadLink)
K (30 Versionen importiert: Import der Hilfe zu TemplateData aus der deutschen Wikipedia [https://de.wikipedia.org/w/index.php?title=Hilfe:TemplateData/JSON&oldid=189058032])
 
(21 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 4: Zeile 4:
 
]=]
 
]=]
 
return {
 
return {
   locally         = true,
+
   locally           = true,
   rooms           = { 4, 8, 10, 12, 14, 100 },
+
  patternSuitable  = "§äöüÄÖÜ߀",
   sayBadLink     = "Ungültiger Seitenname im Wikilink",
+
   rooms             = { 4, 8, 10, 12, 14, 100 },
   sayDuplicated   = "wiederholt",
+
  rules            = {  [2] = { { locally = true, styling = false } },
   sayMissing     = "fehlt",
+
                          [3] = { { locally = true, styling = false } },
   sayRegular     = "keine Weiterleitung",
+
                          [4] = { { sub = "^Importwünsche",        styling = "simpleDivTopClear" },
   sayTarget       = "zielt nicht auf diese Seite",
+
                                  { sub = "^Technik$",              styling = false },
   sayUnregistered = "keine Shortcuts registriert",
+
                                  { sub = "^Technik/",              styling = false },
   scream         = "Wikipedia:Wartung/Shortcuts",
+
                                  { sub = "^Technik/Labs/Tools/",  styling = "simpleDivTop" },
   show           = "[[Wikipedia:Shortcuts|Abkürzung]]: %s",
+
                                  { sub = "^Technik/Linkbox$",      locally = false },
   signal         = "Kategorie 'Wikipedia:Abkürzungen' nicht gefunden",
+
                                  { sub = "^Technik/Skin/Gadgets/", locally = false,
-- signature       = "%[%[Kategorie:Wikipedia:Abkürzungen[|%]]",
+
                                                                    styling = "stickRight" } },
   skip           = "Vorlage:Shortcut",
+
                          [5] = { { sub = "^Technik$",            styling = "simpleDivTop" },
   stalk           = "{{Shortcut[|}]",
+
                                  { sub = "^Technik/",            styling = "simpleDivTop" } },
   style           = "<div id='shortcut' class='shortcut'>%s</div>",
+
                        [10] = { { locally = true, styling = "simpleDivTop" } },
   suppress       = "<span class='Wartung-Shortcuts' style='display:none'>%s</span>",
+
                        [11] = { { locally = true, styling = "simpleDivTop" } },
   talks           = { WP = "WD", H = "HD", P = "PD" }
+
                        [12] = { { styling = false } },
 +
                        [13] = { { styling = "simpleDivTop" } },
 +
                        [14] = { { locally = true, styling = "simpleDivTop" } },
 +
                        [15] = { { locally = true, styling = "simpleDivTop" } }
 +
                      -- 100
 +
                      -- 101
 +
                      },
 +
   sayBadLink       = "Ungültiger Seitenname im Wikilink",
 +
   sayDuplicated     = "wiederholt",
 +
  sayInvalidChar    = "Shortcut mit untippbarem Zeichen",
 +
   sayMissing       = "fehlt",
 +
  sayNamespaceOff  = "Namensraum nicht konfiguriert",
 +
  sayNoLocals      = "'1=' nicht erlaubt",
 +
  sayNoNamespace    = "Kein Namensraum für Zielseiten angegeben",
 +
  sayNoPage        = "Keine Zielseite angegeben",
 +
   sayRegular       = "keine Weiterleitung",
 +
  sayNoShortcuts    = "Keine Shortcuts",
 +
   sayTarget         = "zielt nicht auf diese Seite",
 +
  sayUnknown        = "[[Vorlage:Shortcut]]: keine Shortcuts registriert, 1= nicht angegeben",
 +
   sayUnregistered   = "keine Shortcuts registriert",
 +
   scream           = "Wikipedia:Wartung/Shortcuts",
 +
   show             = "[[Wikipedia:Shortcuts|Abkürzung]]: %s",
 +
   signal           = "Kategorie 'Wikipedia:Abkürzungen' nicht gefunden",
 +
  signature         = "%[%[Kategorie:Wikipedia:Abkürzungen[|%]]",
 +
   skip             = "Vorlage:Shortcut",
 +
   stalk             = "{{Shortcut[|}]",
 +
   style             = "<div id='shortcut' class='shortcut noprint searchaux' data-shortcut='###'>%s</div>",
 +
  simpleDiv        = "<div id='shortcut-ca' class='shortcut floatright noprint searchaux' style='font-size: x-small;' data-shortcut='###'>%s</div>",
 +
  simpleDivTop      = "<div id='shortcut-ca' class='shortcut floatright noprint searchaux' style='font-size: x-small; -shortcut:top;' role='navigation' data-shortcut='###'>%s</div>",
 +
  simpleDivTopClear = "<div id='shortcut-ca' class='shortcut floatright noprint searchaux' style='font-size: x-small; -shortcut:top;' role='navigation' data-shortcut='###'>%s</div><div style='clear:right; height;0;'></div>",
 +
  simpleSpan        = "<span id='shortcut-ca' class='shortcut noprint searchaux' style='font-size: x-small;' data-shortcut='###'>%s</span>",
 +
    stickRight      = "<div id='shortcut-ca' class='shortcut' style='font-size: x-small; float: right; margin-bottom: 0.5em;' data-shortcut='###'>%s</div>",
 +
   suppress         = "<span class='Wartung-Shortcuts' style='display:none'>%s</span>",
 +
   talks             = { WP = "WD", H = "HD", P = "PD" }
 
}
 
}

Aktuelle Version vom 6. November 2019, 10:26 Uhr

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

--[=[
Shortcuts/config
mw.loadData() table, Anpassung der Shortcuts für das lokale Projekt
]=]
return {
   locally           = true,
   patternSuitable   = "§äöüÄÖÜ߀",
   rooms             = { 4, 8, 10, 12, 14, 100 },
   rules             = {  [2] = { { locally = true, styling = false } },
                          [3] = { { locally = true, styling = false } },
                          [4] = { { sub = "^Importwünsche",         styling = "simpleDivTopClear" },
                                  { sub = "^Technik$",              styling = false },
                                  { sub = "^Technik/",              styling = false },
                                  { sub = "^Technik/Labs/Tools/",   styling = "simpleDivTop" },
                                  { sub = "^Technik/Linkbox$",      locally = false },
                                  { sub = "^Technik/Skin/Gadgets/", locally = false, 
                                                                    styling = "stickRight" } },
                          [5] = { { sub = "^Technik$",            styling = "simpleDivTop" },
                                  { sub = "^Technik/",            styling = "simpleDivTop" } },
                         [10] = { { locally = true, styling = "simpleDivTop" } },
                         [11] = { { locally = true, styling = "simpleDivTop" } },
                         [12] = { { styling = false } },
                         [13] = { { styling = "simpleDivTop" } },
                         [14] = { { locally = true, styling = "simpleDivTop" } },
                         [15] = { { locally = true, styling = "simpleDivTop" } }
                       -- 100
                       -- 101
                       },
   sayBadLink        = "Ungültiger Seitenname im Wikilink",
   sayDuplicated     = "wiederholt",
   sayInvalidChar    = "Shortcut mit untippbarem Zeichen",
   sayMissing        = "fehlt",
   sayNamespaceOff   = "Namensraum nicht konfiguriert",
   sayNoLocals       = "'1=' nicht erlaubt",
   sayNoNamespace    = "Kein Namensraum für Zielseiten angegeben",
   sayNoPage         = "Keine Zielseite angegeben",
   sayRegular        = "keine Weiterleitung",
   sayNoShortcuts    = "Keine Shortcuts",
   sayTarget         = "zielt nicht auf diese Seite",
   sayUnknown        = "[[Vorlage:Shortcut]]: keine Shortcuts registriert, 1= nicht angegeben",
   sayUnregistered   = "keine Shortcuts registriert",
   scream            = "Wikipedia:Wartung/Shortcuts",
   show              = "[[Wikipedia:Shortcuts|Abkürzung]]: %s",
   signal            = "Kategorie 'Wikipedia:Abkürzungen' nicht gefunden",
   signature         = "%[%[Kategorie:Wikipedia:Abkürzungen[|%]]",
   skip              = "Vorlage:Shortcut",
   stalk             = "{{Shortcut[|}]",
   style             = "<div id='shortcut' class='shortcut noprint searchaux' data-shortcut='###'>%s</div>",
   simpleDiv         = "<div id='shortcut-ca' class='shortcut floatright noprint searchaux' style='font-size: x-small;' data-shortcut='###'>%s</div>",
   simpleDivTop      = "<div id='shortcut-ca' class='shortcut floatright noprint searchaux' style='font-size: x-small; -shortcut:top;' role='navigation' data-shortcut='###'>%s</div>",
   simpleDivTopClear = "<div id='shortcut-ca' class='shortcut floatright noprint searchaux' style='font-size: x-small; -shortcut:top;' role='navigation' data-shortcut='###'>%s</div><div style='clear:right; height;0;'></div>",
   simpleSpan        = "<span id='shortcut-ca' class='shortcut noprint searchaux' style='font-size: x-small;' data-shortcut='###'>%s</span>",
    stickRight       = "<div id='shortcut-ca' class='shortcut' style='font-size: x-small; float: right; margin-bottom: 0.5em;' data-shortcut='###'>%s</div>",
   suppress          = "<span class='Wartung-Shortcuts' style='display:none'>%s</span>",
   talks             = { WP = "WD", H = "HD", P = "PD" }
}