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