Modul:Shortcuts/config: Unterschied zwischen den Versionen
Aus KGS-Wiki
Sn (Diskussion | Beiträge) K (1 Version importiert) |
Sn (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 6: | Zeile 6: | ||
locally = true, | locally = true, | ||
patternSuitable = "§äöüÄÖÜ߀", | patternSuitable = "§äöüÄÖÜ߀", | ||
rooms = { 4, 8, 10, 12, 14, 100 }, | rooms = { 4, 8, 10, 12, 14, 100, 3002 }, | ||
rules = { [2] = { { locally = true, styling = false } }, | rules = { [2] = { { locally = true, styling = false } }, | ||
[3] = { { locally = true, styling = false } }, | [3] = { { locally = true, styling = false } }, | ||
Zeile 26: | Zeile 26: | ||
[13] = { { styling = "simpleDivTop" } }, | [13] = { { styling = "simpleDivTop" } }, | ||
[14] = { { locally = true, styling = "simpleDivTop" } }, | [14] = { { locally = true, styling = "simpleDivTop" } }, | ||
[15] = { { locally = true, styling = "simpleDivTop" } } | [15] = { { locally = true, styling = "simpleDivTop" } }, | ||
[3002]={ { styling = "simpleDivTopClear" } } | |||
-- 100 | -- 100 | ||
-- 101 | -- 101 | ||
Zeile 43: | Zeile 44: | ||
sayUnknown = "[[Vorlage:Shortcut]]: keine Shortcuts registriert, 1= nicht angegeben", | sayUnknown = "[[Vorlage:Shortcut]]: keine Shortcuts registriert, 1= nicht angegeben", | ||
sayUnregistered = "keine Shortcuts registriert", | sayUnregistered = "keine Shortcuts registriert", | ||
scream = " | scream = "Projekt:Wartung/Shortcuts", | ||
show = "[[ | show = "[[Projekt:Shortcuts|Abkürzung]]: %s", | ||
signal = "Kategorie ' | signal = "Kategorie 'Projekt:Abkürzungen' nicht gefunden", | ||
signature = "%[%[Kategorie: | signature = "%[%[Kategorie:Projekt:Abkürzungen[|%]]", | ||
skip = "Vorlage:Shortcut", | skip = "Vorlage:Shortcut", | ||
stalk = "{{Shortcut[|}]", | stalk = "{{Shortcut[|}]", | ||
Zeile 54: | Zeile 55: | ||
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>", | 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>", | 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>", | suppress = "<span class='Wartung-Shortcuts' style='display:none'>%s</span>", | ||
talks = { WP = "WD", H = "HD", P = "PD" } | talks = { WP = "WD", H = "HD", P = "PD" } | ||
} | } |
Aktuelle Version vom 17. Mai 2024, 11:21 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, 3002 },
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/Cloud/", styling = "simpleDivTop" },
{ sub = "^Technik/Labs/Tools/", styling = "simpleDivTop" },
{ sub = "^Technik/Linkbox$", locally = false },
{ sub = "^Technik/Skin/Gadgets/", locally = false,
styling = "stickRight" },
{ sub = "^Technik/Skin/JS/mw/libs", locally = false,
styling = "simpleDivTop" } },
[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" } },
[3002]={ { styling = "simpleDivTopClear" } }
-- 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 = "Projekt:Wartung/Shortcuts",
show = "[[Projekt:Shortcuts|Abkürzung]]: %s",
signal = "Kategorie 'Projekt:Abkürzungen' nicht gefunden",
signature = "%[%[Kategorie:Projekt: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" }
}