Jump to content

Help:CharInsert

Page semi-protected
From Wikipedia, the free encyclopedia

CharInsert is an editing tool that shows under the edit window and allows the insertion of various characters and symbols that may be difficult to add from the keyboard.

Insert

Copy and paste: – — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §   Sign your posts on talk pages: ~~~~   Cite your sources: <ref></ref>

The listed symbols are:

en dash not equal to ÷ obelus
em dash less than or equal to left arrow
° degree greater than or equal to right arrow
prime ± plus-minus sign · interpunct
double prime minus sign § section sign
approximately equal × multiplication sign

{{}}   {{{}}}   |   []   [[]]   [[Category:]]   #REDIRECT [[]]   &nbsp;   <s></s>   <sup></sup>   <sub></sub>   <code></code>   <pre></pre>   <blockquote></blockquote>   <ref></ref> <ref name="" />   {{Reflist}}   <references />   <includeonly></includeonly>   <noinclude></noinclude>   {{DEFAULTSORT:}}   <nowiki></nowiki>   <!-- -->   <span class="plainlinks"></span>

Symbols

Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶   # ∞   ‘ ’ “ ” ‹› «»   ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥   ♠ ♣ ♥ ♦   ♭ ♯ ♮   © ® ™

Latin

A a Á á À à  â Ä ä Ǎ ǎ Ă ă Ā ā à ã Å å Ą ą Æ æ Ǣ ǣ   B b   C c Ć ć Ċ ċ Ĉ ĉ Č č Ç ç   D d Ď ď Đ đ Ḍ ḍ Ð ð   E e É é È è Ė ė Ê ê Ë ë Ě ě Ĕ ĕ Ē ē Ẽ ẽ Ę ę Ẹ ẹ Ɛ ɛ Ǝ ǝ Ə ə   F f   G g Ġ ġ Ĝ ĝ Ğ ğ Ģ ģ   H h Ĥ ĥ Ħ ħ Ḥ ḥ   I i İ ı Í í Ì ì Î î Ï ï Ǐ ǐ Ĭ ĭ Ī ī Ĩ ĩ Į į Ị ị   J j Ĵ ĵ   K k Ķ ķ   L l Ĺ ĺ Ŀ ŀ Ľ ľ Ļ ļ Ł ł Ḷ ḷ Ḹ ḹ   M m Ṃ ṃ   N n Ń ń Ň ň Ñ ñ Ņ ņ Ṇ ṇ Ŋ ŋ   O o Ó ó Ò ò Ô ô Ö ö Ǒ ǒ Ŏ ŏ Ō ō Õ õ Ǫ ǫ Ọ ọ Ő ő Ø ø Œ œ   Ɔ ɔ   P p   Q q   R r Ŕ ŕ Ř ř Ŗ ŗ Ṛ ṛ Ṝ ṝ   S s Ś ś Ŝ ŝ Š š Ş ş Ș ș Ṣ ṣ ß   T t Ť ť Ţ ţ Ț ț Ṭ ṭ Þ þ   U u Ú ú Ù ù Û û Ü ü Ǔ ǔ Ŭ ŭ Ū ū Ũ ũ Ů ů Ų ų Ụ ụ Ű ű Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ   V v   W w Ŵ ŵ   X x   Y y Ý ý Ŷ ŷ Ÿ ÿ Ỹ ỹ Ȳ ȳ   Z z Ź ź Ż ż Ž ž   ß Ð ð Þ þ Ŋ ŋ Ə ə   {{Unicode|}}

Greek

Ά ά Έ έ Ή ή Ί ί Ό ό Ύ ύ Ώ ώ   Α α Β β Γ γ Δ δ   Ε ε Ζ ζ Η η Θ θ   Ι ι Κ κ Λ λ Μ μ   Ν ν Ξ ξ Ο ο Π π   Ρ ρ Σ σ ς Τ τ Υ υ   Φ φ Χ χ Ψ ψ Ω ω   {{Polytonic|}}

For tables showing Greek letters with all existing combinations of diacritics, see Greek diacritics § Unicode.

Cyrillic

А а Б б В в Г г   Ґ ґ Ѓ ѓ Д д Ђ ђ   Е е Ё ё Є є Ж ж   З з Ѕ ѕ И и І і   Ї ї Й й Ј ј К к   Ќ ќ Л л Љ љ М м   Н н Њ њ О о П п   Р р С с Т т Ћ ћ   У у Ў ў Ф ф Х х   Ц ц Ч ч Џ џ Ш ш   Щ щ Ъ ъ Ы ы Ь ь   Э э Ю ю Я я  

Hebrew

This section shows only for the JavaScript version of CharInsert.

אבגדהוזחטיכךלמםנןסעפףצץקרשת ׳ ״ װױײ

Arabic

This section shows only for the JavaScript version of CharInsert.

ا ﺁ ب ت ث ج ح خ د ذ ر ز س ش ص ض ط ظ ع غ ف ق ك ل م ن ه ة و ي ى ء أ إ ؤ ئ Transliteration: ʾ ṯ ḥ ḫ ẖ ḏ š ṣ ḍ ṭ ẓ ʿ ġ ẗ

IPA (English)

This section shows only for the JavaScript version of CharInsert.

ˈ ˌ ŋ ɡ tʃ dʒ ʃ ʒ θ ð ʔ iː ɪ uː ʊ ʌ ɜr eɪ ɛ æ oʊ ɒ ɔː ɔɪ ɔr ɑː ɑr aɪ aʊ ə ər ɨ ɵ ʉ {{angle.bracket|}} {{IPAc-en|}} {{IPA-en|}} {{IPA|}}

For the pronunciation of these symbols, see Help:IPA/English.

IPA

t̪ d̪ ʈ ɖ ɟ ɡ ɢ ʡ ʔ   ɸ β θ ð ʃ ʒ ɕ ʑ ʂ ʐ ç ʝ ɣ χ ʁ ħ ʕ ʜ ʢ ɦ   ɱ ɳ ɲ ŋ ɴ   ʋ ɹ ɻ ɰ   ʙ ⱱ ʀ ɾ ɽ   ɫ ɬ ɮ ɺ ɭ ʎ ʟ   ɥ ʍ ɧ   ʼ   ɓ ɗ ʄ ɠ ʛ   ʘ ǀ ǃ ǂ ǁ   ɨ ʉ ɯ   ɪ ʏ ʊ   ø ɘ ɵ ɤ   ə ɚ   ɛ œ ɜ ɝ ɞ ʌ ɔ   æ   ɐ ɶ ɑ ɒ   ʰ ʱ ʷ ʲ ˠ ˤ ⁿ ˡ   ˈ ˌ ː ˑ ̪   {{IPA|}}

The listed symbols are:

Math and logic

This section shows only for the JavaScript version of CharInsert.

− × ÷ ⋅ ° ∗ ∘ ± ∓ ≤ ≥ ≠ ≡ ≅ ≜ ≝ ≐ ≃ ≈ ⊕ ⊗ ⇐ ⇔ ⇒ ∞ ← ↔ → ≪ ≫ ∝ √ ∤ ≀ ◅ ▻ ⋉ ⋊ ⋈ ∴ ∵ ↦ ¬ ∧ ∨ ⊻ ∀ ∃ ∈ ∉ ∋ ⊆ ⊈ ⊊ ⊂ ⊄ ⊇ ⊉ ⊋ ⊃ ⊅ ∪ ∩ ∑ ∏ ∐ ′ ∫ ∬ ∭ ∮ ∇ ∂ ∆ ∅ ℂ ℍ ℕ ℙ ℚ ℝ ℤ ℵ ⌊ ⌋ ⌈ ⌉ ⊤ ⊥ ⊢ ⊣ ⊧ □ ∠ ⟨ ⟩ <math></math> {{math|}} {{mvar|}} {{frac|}} {{sfrac|}}

Customization

To add custom entries, adapt this code, and place it in your common.js:

// Add custom CharInsert entries
window.charinsertCustom = {
 "Insert": ' Mention: {\{u| }}  {\{ping| }}',
};

that will append the {{u}} and {{ping}} code to the Insert menu.

  • In this example, "Insert": is the name of the menu the new markup is being added to; it is enclosed in quotes" followed by a colon :; to create a new menu simply use a new name
  • In this example, Mention: is a heading within the entries; anything ending in a colon is a heading; use an underscore _ to replace a space
  • The content within the single quotes ' ' is the new markup; use a dot . to replace a space; the entry may need to be enclosed within <nowiki>...</nowiki> to prevent it from being parsed
  • is where your cursor will appear after the text is inserted, or if you already have text highlighted when you click them then that text will be properly surrounded by the markup
  • For multiple menus, end all lines with a comma , except for the last line
  • To include a single literal \ use four backslashes \\\\ (this will appear as double-\ on menu display.); for example <math>\\\\scriptstyle{ }</math>.
  • Add a newline as \n
  • These available operators can be derived from the source code MediaWiki:Gadget-charinsert-core.js: function createTokens

To add multiple entries to a menu, enclose them all in the single quotes and separate them with a space:

// Add custom CharInsert entries
window.charinsertCustom = {
 "Insert": '<code> </code> <code><nowiki> </nowiki></code>',
};

To add entries to multiple menus:

// Add custom CharInsert entries
window.charinsertCustom = {
 "Insert": ' Mention: {\{u| }}  {\{ping| }}',
 "Wiki markup": ' Mention: {\{u| }}  {\{ping| }}'
};

To create a new menu, use a new name:

// Add custom CharInsert entries
window.charinsertCustom = {
 'Insert2': ' – — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §  <code> </code> <code><nowiki> </nowiki></code>'
};

To copy entries from one menu to another, browse to MediaWiki:Edittools and click on edit. You can copy any entry and paste it into your customized menu.

Other entries that may be useful:

  • <poem></poem>
  • <syntaxhighlight.lang="css">\n \n</syntaxhighlight>
  • 'CSS': ' style=" " margin:.1em.auto; text-align:.center; margin-left:.auto; margin-right:.auto; width:." %"; background-color:.# ; '

Issues

If CharInsert does not show:

In the Interface section: (Wikisource)

  • Ensure Preferences → Gadgets → site is checked. The General utilities needed by the templates and portals of this wiki project.

In the Editing tools section:

  • Ensure Preferences → Gadgets → CharInsert is checked. The tool uses JavaScript by default. Check your various JavaScript configurations at Preferences → Appearance. If an invalid entry is added, it will break all uses of JS but since JS is enabled it will not fallback to MediaWiki:Edittools. Personal JS pages will now show an error on save if there is an invalid entry, so an attempt to edit and save will point out issues.

Technical

If JavaScript is enabled, then CharInsert is added as a Gadget defined at MediaWiki:Gadget-charinsert.js which uses JavaScript to load CharInsert from MediaWiki:Gadget-charinsert-core.js. The Gadget is enabled by default but can be disabled through Preferences → Gadgets → CharInsert.

If JavaScript is disabled, then the CharInsert software extension is called, which uses the symbols defined at MediaWiki:Edittools. Not all of the symbol sets are included in MediaWiki:Edittools. This mode is also used if the bits server fails to yield all the needed Javascript and CSS.

For discussion, see MediaWiki talk:Edittools.