Gadgets/tot

From Meta, a Wikimedia project coordination wiki
  • Summary: Table of contents beside the wikitext editor
  • More details: Table of Templates (ToT) adds a dynamic table of contents in a sidebar to the right of the wikitext editor. It is inspired by the short-lived jquery.wikiEditor.toc module that came out of the Usability Initiative and in fact still uses the module's stylesheet. It updates once every five seconds; clicking an entry selects the line of code that displays the header on the rendered page.

    Like its Dutch counterpart, the Vietnamese Wiktionary relies exclusively on templates to insert headings for languages, parts of speech, and other sections. For historical reasons, these templates' names are in English rather than Vietnamese; additionally, language templates are always named according to ISO 639-3. Because the ISO codes and English names may not be familiar to every contributor, ToT uses Gadgets/headers to dynamically load a list of supported languages and translate the template names into the Vietnamese header text that will be displayed on the rendered page.

    Full details are available in the gadget author's blog. Try it out by starting an entry "thử" in your personal sandbox at the Vietnamese Wiktionary.


More general info about Gadgets