User:Yair rand/Scripts

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

Tabbed languages[edit]

Based on User:Atelaes/TabbedLanguages.js
  • Splits language sections into "tabs". Labels at the left side of the page are used to switch between tabs.
Voted to be turned on by default in 2012, but is still awaiting the necessary bot work to fix category placement.

Editor.js[edit]

  • Adds a small "edit" icon next to each definition. When editing a definition, several additional options are available:
    • "Add example sentence"
    • "Add Add quotation"
    • Within the "More" menu: "Add/Edit gloss" (adds/edits a {{senseid}} template at the beginning of a definition), "Add synonyms", and "Add antonyms"

Rhymes editor[edit]

  • Turned on by default.
  • On pages in the "Rhymes:" namespace, adds input fields to the bottom of lists, that are used for adding words to the list. Also automatically adds {{rhymes}} (and pronunciation sections where necessary) to the entries of each the newly added rhymes upon clicking the save button.

AddAudio.js[edit]

Adds a small button to record audio and add the recording to the entry. The recording is automatically uploaded to Commons.

FindTrans.js[edit]

  • Turned on by default.

When searching for a word that doesn't have an entry, but does have a redlink in a translation table of an English entry, "(word) is a (language) translation of (word) (gloss)" is added to the search page.

Targeted Translations[edit]

Based on User:Atelaes/TargetedTranslations.js
  • Turned on by default.
  • "Targets" selected languages and brings their translations to the translations bar (the grey area at the top).
    • Translation tables have "Select targeted languages" buttons added to them. Upon being clicked, each translation has a star (with an appearance similar to the "watch" button) added next to it, used for "favoriting" specific languages. Preferences are saved in cookies.

transnewentry.js[edit]

Allows easy adding of new entries (automatically filled with the proper formatting and definition line) from redlinks in translation tables.

Adddefinition.js[edit]

  • Turned on by default.
  • Adds "Add definition" button to the sidebar.

Usexeditor.js[edit]

  • Adds "±" buttons to the beginning of example sentences, to allow editing the example sentence.

Addimage.js[edit]

  • Adds "Add image" button to the sidebar.

WSEdit[edit]

  • For adding synonyms, antonyms, etc. to Wikisaurus entries. Also can edit glosses, add new 'nyms sections. Needs work.

Checktbotentries.js[edit]

  • Adds "[check]" buttons to the end of {{tbot entry}}s, to remove the template.

Checktransremove.js[edit]

  • Adds remove buttons next to each translation to be checked.

Language name to ISO code converter[edit]

  • Adds "Find ISO code" button to the sidebar, for finding a language's ISO code.