Modul:Hilfe:VisualEditor/config
Modul:Hilfe:VisualEditor config
| Vorlagenprogrammierung | Diskussionen | Lua | Unterseiten | ||
| Modul | Deutsch
|
Modul: | Dokumentation | ||
Diese Seite enthält Code in der Programmiersprache Lua. Einbindungszahl Cirrus
local Export = { suite = "HelpVisualEditor",
sub = "config",
serial = "2025-12-19",
item = 63413913 }
--[=[
Unterstützung für Vorlagen/Hilfeseiten Hilfe:VisualEditor/***
mw.loadData()
]=]
local Config = { bgItemSel = "EAF3FF",
bgMainSel = "EAF3FF",
borderBar = "C8CCD1",
borderDd = "BBBBBB",
borderSel = "22BFFF",
icon = 16,
itemSel = 1,
openDown =
{ px = 12,
src = "Codex icon expand.svg" },
mainPX = 20,
shift = mw.ustring.char( 8657 ),
single = "VisualEditor/Bedienung",
shortcut = "VisualEditor/Tastaturkombinationen",
tstyleUI = "MediaWiki-Button/styles.css"
} -- Config
local Tree = {
TOOLBAR = { menu = 0,
entries = { "UnDo",
"ReDo",
"Absatz",
"SchriftAlle",
"Link",
"Belegen",
"Listen",
"InsertAll",
"Sonderzeichen",
"Hilfe",
"Notes",
"Seitenoptionen",
-- "Wikitext",
"SwitchMode",
"Speichern" } },
Absatz = { menu = 2,
links = 1,
-- slot = "@toolbar-format-tooltip",
-- slot = "@toolbar-paragraph-format",
-- slot = "@shortcuts-formatting",
show = "Absatz",
leader = true,
smart = "Absatz formatieren",
start = "VisualEditor/Absatz",
swift = "mainAbsatz",
entries = { "Paragraf",
"Headline2",
"Headline3",
"Headline4",
"Headline5",
"Headline6",
"Vorformatiert",
"Blockzitat",
"Seitentitel" } },
Belegen = { menu = 2,
links = 0.75,
before = { img = "Codex icon quotes.svg",
px = 12,
top = true },
slot = "citoid-citoidtool-title",
show = "Belegen",
shortcut = string.format( "Strg+%s+K",
Config.shift ),
start = "Einzelnachweise/VisualEditor",
swift = "mainCite" },
Citation = { menu = 2,
links = 1,
slot = "@citoidtool-title",
show = "Zitat",
smart = "Belegen",
shortcut = string.format( "Strg+%s+K",
Config.shift ),
start = "Einzelnachweise/VisualEditor",
swift = "mainCite",
entries = { "Einfach",
"Weiterverwenden" } },
Hilfe = { menu = 2,
rechts = 1,
slot = "@help-tool",
icon = "Codex icon help.svg",
smart = "Hilfe",
start = "VisualEditor/Hilfe",
swift = "top" },
InsertAll = { menu = 2,
links = 0.5,
slot = "@toolbar-insert",
smart = "Elemente einfügen",
start = "VisualEditor/Einfügen",
swift = "mainInsert",
entries = { "Medien",
"Vorlage",
"Tabelle",
"Kommentar",
"Hieroglyphen",
"Notenschrift",
"Unterschrift",
"Galerie",
"Chemistry",
"Formel",
"Karte",
"Syntaxhighlight",
"Diagramm",
"Einzelnachweisliste",
"Weniger" } },
-- InsertFew
Link = { menu = 2,
links = 0.5,
icon = "Codex icon link.svg",
-- slot = "@",
show = "Verlinken",
smart = "Verlinken",
start = "Links/VisualEditor",
swift = "mainLink" },
-- annotationbutton-link-tooltip
-- linkinspector-button-link-external
Listen = { menu = 2,
links = 1,
icon = "Codex icon listBullet.svg",
-- slot = "@toolbar-structure",
show = "Listen",
shortcut = "Strg+K",
smart = "Aufzählungen",
start = "Listen/VisualEditor",
swift = "mainList",
entries = { "Liste",
"Nummerierte",
"EinzugWeniger",
"EinzugMehr" } },
Notes = { menu = 2,
rechts = 1,
icon = "Codex icon alert.svg",
slot = "@editnotices-tooltip",
smart = "Bearbeitungsnotizen",
start = "VisualEditor/Bearbeitungsnotizen",
swift = false },
ReDo = { menu = 2,
links = 0.5,
icon = "Codex icon redo.svg",
slot = "@historybutton-redo-tooltip",
shortcut = string.format( "Strg+%s+Z, Strg+Y",
Config.shift ),
smart = "Wiederholen",
start = "VisualEditor/Wiederholen",
swift = false },
SchriftAlle = { menu = -2,
links = 0.5,
icon = "Codex icon textStyle.svg",
-- slot = "@toolbar-text-style",
-- slot = "@toolbar-style-tooltip",
-- slot = "@shortcuts-text-style",
show = "Schrifteigenschaften",
smart = "Text gestalten",
start = "VisualEditor/Schrifteigenschaften",
swift = "mainSchrift",
entries = { "Fett",
"Kursiv",
"Hochstellen",
"Tiefstellen",
"Durchstreichen",
"Computercode",
"Unterstreichen",
"Sprache",
"Gross",
"Klein",
"Gestaltlos",
"Weniger" } },
-- SchriftAllNix
-- SchriftKurz
-- SchriftKurzNix
Seitenoptionen = { menu = 2,
rechts = 1,
slot = "@pagemenu-tooltip",
-- align = "right",
less = true, -- no expand
icon = "Codex icon menu.svg",
smart = "Seitenoptionen",
start = "VisualEditor/Seitenoptionen",
swift = "mainPageOpt",
entries = { "Optionen",
"Kategorien",
"Seiteneinstellungen",
"Erweiterte",
"Sprachen",
"TemplatesUsed",
"CodeMirror",
"ToggleTextDir",
"Suchen" } },
-- SeitenoptionenCodem
-- SeitenoptionenCodemAktiv
Sonderzeichen = { menu = 2,
links = 0.5,
icon = "Codex icon specialCharacter.svg",
slot = "@specialcharacter-button-tooltip",
smart = "Sonderzeichen",
start = "VisualEditor/Sonderzeichen",
swift = "mainChars" },
-- symbol-group
Speichern = { menu = -9,
rechts = 1,
progressive = true,
slot = "publishpage",
smart = "Änderungen abspeichern",
start = "VisualEditor/Speichern",
swift = "mainSave" },
-- savedialog-label-save
SwitchMode = { menu = 2,
rechts = 1,
icon = "Codex icon edit.svg",
show = "Wikitext",
smart = mw.message.new( "visualeditor-mweditmode-tooltip" ):plain(),
start = "VisualEditor/Wikitext",
swift = false,
entries = { "SwitchVisual",
"SwitchSource" } },
UnDo = { menu = 2,
links = 0.5,
borderR = false,
icon = "Codex icon undo.svg",
slot = "@historybutton-undo-tooltip",
shortcut = "Strg+Z",
smart = "Rückgängig machen",
start = "VisualEditor/Rückgängig machen",
swift = false },
Wikitext = { menu = 2,
rechts = 1,
icon = "Codex icon wikitext.svg",
show = "Wikitext",
-- slot = "@ca-editsource",
-- slot = "@ca-editsource-section",
smart = "Zur Quelltextbearbeitung wechseln",
start = "VisualEditor/Wikitext",
swift = false },
-- Allgemein
Abbrechen = { menu = 0,
slot = "@dialog-action-cancel" },
-- toolbar-cancel
ApplyChanges = { menu = -9,
rechts = 1,
progressive = true,
slot = "@dialog-action-apply",
smart = "Änderungen abspeichern",
start = false,
swift = "mainSave" },
Mehr = { menu = 0,
slot = "ooui-toolgroup-expand",
icon = "Codex icon expand.svg" },
Weniger = { menu = 0,
slot = "ooui-toolgroup-collapse",
icon = "Codex icon collapse.svg" },
-- Absatz
Paragraf = { menu = 3,
slot = "@formatdropdown-format-paragraph",
shortcut = "Strg+0" },
Headline2 = { menu = 3,
slot = "@formatdropdown-format-mw-heading2",
style = "font-size:120%",
shortcut = "Strg+2" },
Headline3 = { menu = 3,
slot = "@formatdropdown-format-mw-heading3",
style = "font-weight:bold",
shortcut = "Strg+3" },
Headline4 = { menu = 3,
slot = "@formatdropdown-format-mw-heading4",
style = "font-size:90%",
shortcut = "Strg+4" },
Headline5 = { menu = 3,
slot = "@formatdropdown-format-mw-heading5",
style = "font-size:90%",
shortcut = "Strg+5" },
Headline6 = { menu = 3,
slot = "@formatdropdown-format-mw-heading6",
style = "font-size:90%",
shortcut = "Strg+6" },
Vorformatiert = { menu = 3,
slot = "@formatdropdown-format-preformatted",
style = "font-family:monospace",
shortcut = "Strg+7" },
Blockzitat = { menu = 3,
slot = "@formatdropdown-format-blockquote",
style = "margin-left:1em",
shortcut = "Strg+8" },
Seitentitel = { menu = 3,
slot = "@formatdropdown-format-mw-heading1",
style = "font-size:150%",
shortcut = "Strg+1" },
-- Belegen
-- cite-ve-toolbar-group-label
-- cite-ve-dialogbutton-reference-title
-- cite-ve-reference-input-placeholder
Einfach = { menu = 3,
slot = "cite-ve-dialogbutton-reference-tooltip",
icon = "Codex icon reference.svg" },
Weiterverwenden = { menu = 3,
slot = "cite-ve-dialog-reference-useexisting-tool",
icon = "Codex icon referenceExisting-ltr.svg" },
-- Insert
Medien = { menu = 3,
icon = "Codex icon image.svg",
-- slot = "@dialog-media-insert-button",
slot = "@dialogbutton-media-tooltip" },
Vorlage = { menu = 3,
icon = "Codex icon puzzle.svg",
slot = "@dialogbutton-template-tooltip" },
Tabelle = { menu = 3,
icon = "Codex icon table.svg",
slot = "@toolbar-table" },
Kommentar = { menu = 3,
icon = "Codex icon invisibleComment.svg",
px = 18,
slot = "@commentinspector-tooltip" },
Hieroglyphen = { menu = 3,
icon = "Codex icon hieroglyph.svg",
px = 18,
slot = "wikihiero-visualeditor-mwhieroinspector-title" },
Syntaxhighlight = { menu = 3,
icon = "Codex icon markup.svg",
slot = "syntaxhighlight-visualeditor-mwsyntaxhighlightinspector-title" },
Notenschrift = { menu = 3,
icon = "Codex icon musicalScore.svg",
slot = "score-visualeditor-mwscoreinspector-title" },
Unterschrift = { menu = 3,
icon = "Codex icon signature.svg",
slot = "@mwsignature-tool" },
Galerie = { menu = 3,
icon = "Codex icon imageGallery.svg",
slot = "@mwgallerydialog-title" },
Chemistry = { menu = 3,
icon = "Codex icon labFlask.svg",
-- math-visualeditor-mwcheminspector-title
slot = "math-visualeditor-mwchemdialog-title" },
Formel = { menu = 3,
icon = "Codex icon mathematics.svg",
-- math-visualeditor-mwmathinspector-title
slot = "math-visualeditor-mwmathdialog-title" },
Karte = { menu = 3,
icon = "Codex icon map.svg",
slot = "@mwmapsdialog-title" },
Diagramm = { menu = 3,
icon = "Codex icon chart.svg",
slot = "graph-ve-dialog-button-tooltip" },
Einzelnachweisliste = { menu = 3,
icon = "Codex icon references.svg",
slot = "cite-ve-dialogbutton-referenceslist-tooltip" },
-- Listen
Liste = { menu = 3,
slot = "@listbutton-bullet-tooltip",
icon = "Codex icon listBullet.svg" },
Nummerierte = { menu = 3,
slot = "@listbutton-number-tooltip",
icon = "Codex icon listNumbered-ltr.svg" },
EinzugWeniger = { menu = 3,
slot = "@indentationbutton-outdent-tooltip",
icon = "Codex icon outdent.svg",
shortcut = string.format( "%s+Tab, Strg+[",
Config.shift ) },
EinzugMehr = { menu = 3,
slot = "@indentationbutton-indent-tooltip",
icon = "Codex icon indent.svg",
shortcut = "Tab, Strg+]" },
-- Medien
Hochladen = { menu = 4,
icon = "Codex icon upload.svg",
slot = "@dialog-media-upload" },
-- Schrift
Computercode = { menu = 3,
icon = "Codex icon code.svg",
slot = "@annotationbutton-code-tooltip",
shortcut = string.format( "Strg+%s+6",
Config.shift ) },
Durchstreichen = { menu = 3,
icon = "Codex icon strikethrough-a.svg",
slot = "@annotationbutton-strikethrough-tooltip",
shortcut = string.format( "Strg+%s+5",
Config.shift ) },
Fett = { menu = 3,
icon = "Codex icon bold-f.svg",
slot = "@annotationbutton-bold-tooltip",
shortcut = "Strg+B" },
Gross = { menu = 3,
icon = "Codex icon bigger.svg",
slot = "@annotationbutton-big-tooltip" },
Hochstellen = { menu = 3,
icon = "Codex icon superscript.svg",
slot = "@annotationbutton-superscript-tooltip",
shortcut = "Strg+." },
Klein = { menu = 3,
icon = "Codex icon smaller.svg",
slot = "@annotationbutton-small-tooltip" },
Kursiv = { menu = 3,
icon = "Codex icon italic-k.svg",
slot = "@annotationbutton-italic-tooltip",
shortcut = "Strg+I" },
Sprache = { menu = 3,
icon = "Codex icon language.svg",
slot = "@annotationbutton-language-tooltip" },
Tiefstellen = { menu = 3,
icon = "Codex icon subscript.svg",
slot = "@annotationbutton-subscript-tooltip",
shortcut = "Strg+," },
Unterstreichen = { menu = 3,
icon = "Codex icon underline-u.svg",
slot = "@annotationbutton-underline-tooltip",
shortcut = "Strg+U" },
Gestaltlos = { menu = 3,
icon = "Codex icon cancel.svg",
slot = "@clearbutton-tooltip" },
GestaltlosNix = { menu = 3,
icon = "Codex icon cancel.svg",
slot = "@clearbutton-tooltip",
lowered = true },
-- Seitenoptionen
Optionen = { menu = 3,
icon = "Codex icon window.svg",
-- show = "Optionen",
slot = "@dialog-meta-title" },
Kategorien = { menu = 3,
icon = "Codex icon tag.svg",
slot = "@dialog-meta-categories-data-label",
start = "Kategorien/VisualEditor",
swift = "optsCat" },
Seiteneinstellungen = { menu = 3,
icon = "Codex icon pageSettings.svg",
slot = "@dialog-meta-settings-label",
start = "VisualEditor/Seiteneinstellungen",
swift = "optsPage" },
Erweiterte = { menu = 3,
icon = "Codex icon settings.svg",
slot = "@dialog-media-page-advanced",
start = "VisualEditor/Erweiterte Einstellungen",
swift = "optsAdvanced" },
Sprachen = { menu = 3,
slot = "@dialog-meta-languages-label",
icon = "Codex icon language.svg",
start = "Internationalisierung/VisualEditor",
swift = "optsLang" },
TemplatesUsed = { menu = 3,
icon = "Codex icon puzzle.svg",
slot = "@templatesused-tool",
start = "VisualEditor/Verwendete Vorlagen",
swift = "optsTmplUsed" },
CodeMirror = { menu = 3,
icon = "Codex icon highlight.svg",
slot = "codemirror-toggle-label",
start = "VisualEditor/CodeMirror",
swift = "optsCodem",
lowered = true
},
-- CodeMirrorAktiv
-- CodeMirrorInaktiv
ToggleTextDir = { menu = 3,
icon = "Codex icon textDirRTL.svg",
slot = "@changedir-tool-rtl",
start = "VisualEditor/Textausrichtung",
swift = "optsTextDir",
shortcut = string.format( "Strg+%s+X",
Config.shift ) },
Suchen = { menu = 3,
show = "Suchen und Ersetzen",
icon = "Codex icon articleSearch.svg",
slot = "@dialog-media-search-tab-search",
start = "VisualEditor/Suchen und Ersetzen",
swift = "optsSearch",
shortcut = "Strg+F" },
SourceEdit = { menu = -2,
icon = "Codex icon edit.svg",
show = "Wikitext",
start = "VisualEditor/Wikitext" },
SwitchSource = { menu = 3,
icon = "Codex icon wikitext.svg",
-- show = "Zur Quelltextbearbeitung wechseln",
slot = "@mweditmodesource-tool-current",
-- slot = "@ca-editsource",
-- slot = "@ca-editsource-section",
start = "VisualEditor/Wikitext",
swift = false },
SwitchVisual = { menu = 3,
icon = "Codex icon eye.svg",
slot = "@mweditmodeve-tool-current",
start = "VisualEditor/Wikitext",
swift = false },
-- Extras
MathGroup = { menu = -2,
entries = { "MathItemAccents",
"MathItemFunctions",
"MathItemBounds",
"MathItemProjections",
"MathItemDerivatives",
"MathItemSymbols",
"MathItemModular",
"MathItemRoot",
"MathItemOperators",
"MathItemSets",
"MathItemRelations",
"MathItemGeometry",
"MathItemLogic",
"MathItemArrows",
"MathItemSpecial",
"MathItemUnsorted",
"MathItemGreek",
"MathItemHebrew",
"MathItemTypefaces",
"MathItemSpacing",
"MathItemParentheses",
"MathItemMatrices",
"MathItemSubscripts",
"MathItemLarge" } },
MathItemAccents = { menu = -2,
slot = "math-visualeditor-symbol-group-math-accents" },
MathItemFunctions = { menu = -2,
slot = "math-visualeditor-symbol-group-math-functions" },
MathItemBounds = { menu = -2,
slot = "math-visualeditor-symbol-group-math-bounds" },
MathItemProjections = { menu = -2,
slot = "math-visualeditor-symbol-group-math-projections" },
MathItemDerivatives = { menu = -2,
slot = "math-visualeditor-symbol-group-math-derivatives" },
MathItemSymbols = { menu = -2,
slot = "math-visualeditor-symbol-group-math-symbols" },
MathItemModular = { menu = -2,
slot = "math-visualeditor-symbol-group-math-modular" },
MathItemRoot = { menu = -2,
slot = "math-visualeditor-symbol-group-math-root" },
MathItemOperators = { menu = -2,
slot = "math-visualeditor-symbol-group-math-operators" },
MathItemSets = { menu = -2,
slot = "math-visualeditor-symbol-group-math-sets" },
MathItemRelations = { menu = -2,
slot = "math-visualeditor-symbol-group-math-relations" },
MathItemGeometry = { menu = -2,
slot = "math-visualeditor-symbol-group-math-geometry" },
MathItemLogic = { menu = -2,
slot = "math-visualeditor-symbol-group-math-logic" },
MathItemArrows = { menu = -2,
slot = "math-visualeditor-symbol-group-math-arrows" },
MathItemSpecial = { menu = -2,
slot = "math-visualeditor-symbol-group-math-special" },
MathItemUnsorted = { menu = -2,
slot = "math-visualeditor-symbol-group-math-unsorted" },
MathItemGreek = { menu = -2,
slot = "math-visualeditor-symbol-group-math-greek" },
MathItemHebrew = { menu = -2,
slot = "math-visualeditor-symbol-group-math-hebrew" },
MathItemTypefaces = { menu = -2,
slot = "math-visualeditor-symbol-group-math-typefaces" },
MathItemSpacing = { menu = -2,
slot = "math-visualeditor-symbol-group-math-spacing" },
MathItemParentheses = { menu = -2,
slot = "math-visualeditor-symbol-group-math-parentheses" },
MathItemMatrices = { menu = -2,
slot = "math-visualeditor-symbol-group-math-matrices" },
MathItemSubscripts = { menu = -2,
slot = "math-visualeditor-symbol-group-math-subscripts" },
MathItemLarge = { menu = -2,
slot = "math-visualeditor-symbol-group-math-large" },
PageOptOptions = { menu = -2,
entries = { "Kategorien",
"Seiteneinstellungen",
"Erweiterte",
"Sprachen",
"TemplatesUsed" } },
TemplateTransclude = { menu = -2,
entries = { "TemplateName",
"TemplateParMand",
"TemplateParOpt",
"TemplateMore" } },
TemplateName = { menu = 3,
show = "'''Vorlagenname'''",
icon = "Codex icon puzzle.svg" },
TemplateParMand = { menu = 3,
show = "'''Parameter-1'''",
icon = "VisualEditor icon parameter-ltr.svg",
iconRight = "OOjs UI indicator required.svg",
pxR = 10 },
TemplateParOpt = { menu = 3,
show = "'''Parameter-2'''",
icon = "VisualEditor icon parameter-ltr.svg" },
TemplateMore = { menu = 3,
show = "Weitere Informationen",
icon = "VisualEditor icon parameter-ltr.svg" }
} -- Tree
Export.config = Config
Export.tree = Tree
Export.failsafe = Export.serial
return Export
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.