MediaWiki:Common.js/Edit tools data.js

/* * *  Extra buttons for text insertion   * * */ // Copied from BG Wikipedia and modified // These data will generate extra edit buttons by means of function insertTags var customInsButtons = { // "CODE" : ["LEFT", "MIDDLE", "RIGHT", "SHOWN TEXT", "TITLE"], "b1" : ["#REDIRECT ["+"[", "Page", "]]", "redir", "Redirect page"], "b2" : ["["+"[Category:", "", "]]", "cat", "+ category"], "b3" : ["["+"[|", "", "]]", " |... ", "+piped link"], "b4" : ["["+"[:", "", "]]", " ... ", "+text link (for images and categories)"], "b5" : ["{"+"{", "", "}}", "{"+"{}}", "+template brackets"], "b6" : ["", "Insert subscript", "", "ax", "Insert subscript"], "b7" : ["", "Insert superscript", "", "ax", "Insert supscript"], "b8" : ["\\n", "", "\\n ", "center", "Center highlighted code"], "b9" : [" ", "", "", "nbsp", "+non-breaking space"], "b10" : ["—", "", "", "—", "+mdash"], "b11" : [" ", "&lt;ref&gt;", "Insert &lt;ref&gt;"], "b12" : [" ", "", "", "&lt;references&gt;", "Insert &lt;references /&gt;"], "b13" : ["\\n{| class=\"wikitable\"\\n|+ ", "Table header", "\\n! column 1\\n! column 2\\n! column 3\\n|-\\n| row 1, cell 1\\n| row 1, cell 2\\n| row 1, cell 3\\n|-\\n| row 2, cell 1\\n| row 2, cell 2\\n| row 2, cell 3\\n|}", "table", "Insert table"], "b14" : ["{"+"{index-matrix/start\\n |matrix-id =", "", "\\n |columns = N\\n |1 = \\n |2 = \\n ...\\n |N-1 = \\n |N = \\n}}\\n{"+"{index-matrix/row-predic\\n |columns= N\\n |row-id = \\n |1 = \\n |2 = \\n ...\\n |N-1 = \\n |N = \\n}}\\n{"+"{index-matrix/end}}\\n", "IM-predic", "Insert index matrix of predicates"], "b15" : ["{"+"{index-matrix/start\\n |matrix-id =", "", "\\n |columns = N\\n |1 = \\n |2 = \\n ...\\n |N-1 = \\n |N = \\n}}\\n{"+"{index-matrix/row-arccap\\n |columns= N\\n |row-id = \\n |1 = \\n |2 = \\n ...\\n |N-1 = \\n |N = \\n}}\\n{"+"{index-matrix/end}}\\n", "IM-arccap", "Insert index matrix of arc capacities"] }; /* * *  Extra buttons for miscellaneous functions   * * */ // The name of the element for extra characters var charsElemId = "extraChars"; // Data needed for other custom edit buttons var customMiscButtons = { // "CODE" : ["CODE TO RUN", "SHOWN TEXT", "TITLE"], // extra characters in the virtual keyboard "ch" : ["addChars; toggleElemDisplay('"+charsElemId+"');", "…More…", "Virtual keyboard"] }; var tplVarBaseName = "tpl"; var atplVarBaseName = "atpl"; var chars = [ ['∫', '∑', '∏', '√', '−', '±', '∞', '≈', '~', '∝', '≡', '≠', '≤', '≥', '≪', '≫', '×', '·', '÷', '∂', '′', '″', '∇', '∮', '⊥', '‰', '∴', 'ℵ', 'ℋ', '℧', '^', '¹', '²', '³', '∈', '∉', '∩', '∪', '⊂', '⊃', '⊆', '⊇', '⊏', '⊐', '⊑', '⊒', '⊢', '∧', '∨', 'ø', '¬', '∃', '∀', '⇒', '⇐','⇓', '⇑', '⇔', '→', '←', '↓', '↑', '↖', '↗', '↘', '↙', '↔', '⇄', '⇆', '⇋', '⇌', 'ℕ', 'ℤ', 'ℚ', 'ℝ', 'ℂ', '∅', '⋮', '⋯', '□', '⊞', '◇', '◈', '⊡'],

['α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ', 'ο', 'π', 'ρ', 'σ', 'ς', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω', 'Γ', 'Δ', 'Θ', 'Λ', 'Ξ', 'Π', 'Σ', 'Φ', 'Ψ', 'Ω'], ]; var showMenus = false; var showButtons = true;