O Wiktionary
Jump to navigation Jump to search



The family of templates to which this one belongs, the language templates, store data and metadata about the languages used in definitions. This information can be useful for many applications beyond generating definitions.
These templates are handy for non-native Gaelic speakers: if it turns out that the wording is wrong in this particular template, all the pages and page names that employ it may be changed immediately simply by editing this one specific template. However, be warned that changing template-based Roinn-seòrsa\Category names is tricky as they need substantially more preparatory work before their names can be modified. See the Troubleshooting section below for more information on changing Roinn-seòrsa\Category names.

This template:

  • Optionally creates a Table of Contents.
  • Draws a box around the text for the current language entry. See bean for an example of multiple language entries on a single page.
  • Creates the specified language heading.
  • Adds the entry page to the "Roinn-seòrsa:Faclan (genitive of specified language)",‎ aka "Category:Faclan (genitive of specified language)". See Roinn-seòrsa:Faclan a-rèir cànain for a list of existing word categories by language.
  • Adds itself to Roinn-seòrsa:Teamplaid cànain (sic), aka Category:Teamplaid cànain (sic; Caveat scriptor: I was just learning Gaelic when I built Roinn-seòrsa:Teamplaid cànain; by the time I realized my grammatical mistake, there were simply too many template members in the category to rename it).


  • Parameter 1 (required): language code for the first language subheading and the Roinn-seòrsa\Category page title.
  • Parameter 2 (optional): the constant "toc" (minus the double quotes). If the TOC parameter is present, this template will build a Table of Contents (TOC).


Use this template to create an Entry Heading on a Definition Page.

Create an Entry Heading along with a Table of Contents on a Head Word Page[deasaich]

Use this mode for the first entry on a page. This example would generate an Ainu Entry.


Create an Entry Heading without a Table of Contents on a Head Word Page[deasaich]

Use this mode for a subsequent entry on a page. This example would generate a Basque Entry.



This template is one of a set of language manipulating templates, all of which may be found in Roinn-seòrsa:Teamplaid cànain (sic), aka Category:Teamplaid cànain (sic).

Uiclair needs a quick and easy way to correct grammatical and typological errors across its pages because there are so few native Gàidhlig speakers and because mistakes are so easy to make. It is easier to repair systemic typos and grammatical errors when there are fewer places to edit them. Another benefit of using templates is that they create isomorphic pages; that is, consistent formatting across definition pages makes for easier reading. Using templates to generate definition pages also makes it easy to automatically categorize the definitions by language, part of speech, or even by topic; this automatic categorization in turn makes it easy to gather statistics about the definitions, their languages, and the parts of speech that have been defined. Finally, automatically categorized pages, templates, and categories, themselves, make for easy access.

Naming Conventions[deasaich]

Template Names[deasaich]

Use abbreviations and language codes when naming templates for easier editing. See Roinn-seòrsa:Teamplaidean for the existing templates.

  • Template names delimited by equal signs indicate that they affect the highest order headings. E.g., {{=x=}}.
  • Template names delimited by dashes indicate that they affect a subheading. E.g., {{-x-}}.
  • Template names consisting only of a language code are called language templates. I.e., {{language code}} is the format of a language template name. These templates overload the language code function to return data and metadata in Scottish Gaelic, ISO 639-5 codes, and English about the language in question. The language template names may be ISO 639-2, -3, or -5 language codes.

Category Names[deasaich]

Spell things out in category names for legibility and clarity. See Roinn-seòrsa:Bunasach (root category).


Please note that we have not generated language templates for all known languages.

Creating Language Templates[deasaich]

  • Look in Roinn-seòrsa:Teamplaid cànain (sic) to find your language template.
    • If your language template is missing, you must create one, or ask someone to create it for you before you can begin working in your language.

Editing Language Templates[deasaich]

If your language template is incorrect, you must edit it, or ask someone to edit it for you. However, be very careful, especially with Scottish Gaelic genitives.

  • You may need to consult a list of ISO 639-* codes to determine the family lineage code(s) for your particular language. See the previous section for a list of links. We also consulted Wikipedia language pages, and other sources, to generate the concatenated strings.

Editing the Gaelic Genitive Language Name[deasaich]

If the Gaelic genitive of your specified language name is incorrect or missing, edit your language template. Please note that this will affect every page that uses your language template.

Caveat Editor: The Effect of Editing the Gaelic Genitive Language Name on Categories[deasaich]

Changing the Gaelic genitive noun phrase will empty and delete all categories based on the genitive noun phrase of your language and will remove those categories from any categories to which they belonged. In other words, know both what links to your language template and your language category tree before editing the Gaelic genitive noun phrase in the language template.

  • N.B.: It is far, far easier to edit the category link in every member item item that appears in every category to be renamed before you change the Gaelic genitive noun phrase of your language name. This cannot be stressed strongly enough. Be warned that this may be a very lengthy process.

Sorting Issues within Roinn-seòrsa\Categories[deasaich]

If you are seeing sorting issues with your language's name, format the embedded category link with a parameter of your language name (e.g., [[Roinn-seòrsa:Faclan a-rèir cànain|Gaidhlig]]). Consider using unaccented characters in your language name parameter to make it sort properly in the category you are creating.

A Final Word on Editing Gaelic Genitive Language Names[deasaich]

  • Don't forget to save the page you have just edited.
  • Verify that all the recategorized items appear in the new category.
  • Verify that your renamed categories appear in all the categories of which they were previous members.