Template:Category TOC

From OpenStreetMap Wiki
Jump to: navigation, search
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

This template adds a table of contents (TOC) to a category page. It should only be added to category pages and should not be used for categories containing less than 400 pages.

{{Category TOC
 | lang  = <!-- language code infered by default from current page using {{Langcode}} -->
 | align = <!-- left (default for LTR languages) / center / right (default for RTL languages) -->
 | top   = <!-- yes (default) / no -->
 | numerals       = <!-- yes or separate / group (default) / no -->
 | uppercase      = <!-- yes or separate (default) / group / no -->
 | lowercase      = <!-- yes or separate / group / no (default) -->
 | cyrl-uppercase = <!-- yes or separate / group / no (default) -->
 | cyrl-lowercase = <!-- yes or separate / group / no (default) -->
 | kana           = <!-- yes / separate / group / no (default) -->
}}

Parameters

  • lang – specifies the language to use (changes the default values used for some parameters below). Default is determined from the current page (using {{Langcode}}).
  • align – specifies the position. Default is left for LTR languages, right for RTL languages (using {{Dir}} for the previous language).
  • top – specifies whether a link to the top of the category is included. Default is yes.
  • numerals – specifies whether numerals are included:
    • yes or separate: each numeral 0,1,...,9 has a separate link.
    • group (default): there is one link for 0-9.
    • no: no link.
  • uppercase – specifies whether Latin uppercase letters are included:
    • yes or separate (default for pages in English): each letter A,B,...,Z has a separate link.
    • group (default for pages in non-Latin languages): there is one link for A-Z.
    • no: there is no link for Latin uppercase letters.
  • lowercase – specifies whether Latin lowercase letters are included:
    • yes or separate: each letter a,b,...,z has a separate link.
    • group: there is one link for a-z.
    • no (default): there is no link for Latin lowercase letters.
  • cyrl-uppercase – specifies whether Cyrillic uppercase letters are included:
    • yes or separate (default for pages in Russian): each letter А,Б,В,...,Я has a separate link.
    • group: there is one link for А–Я.
    • no (default for pages in non-Cyrillic languages): there is no link for Cyrillic uppercase letters.
  • cyrl-lowercase – specifies whether Cyrillic lowercase letters are included:
    • yes or separate: each letter а,б,в,...,я has a separate link.
    • group: there is one link for а–я.
    • no (default): there is no link for Cyrillic lowercase letters.
  • kana – specifies whether Katakana syllables are included:
    • yes (default for pages in Japanese): each consonnant group leader ア,カ,サ,...,ワ has a separate link.
    • separate: there is one link for every Katakana syllable, sorted in a visual grid with one row for each consonnant group.
    • group: there is one link for ア–ン.
    • no (default for pages in non-Japanese languages): there is no link for Katakana syllables.

Examples

  • {{Category TOC}}
  • {{Category TOC|align=center}}
  • {{Category TOC|numerals=separate}}
  • {{Category TOC|numerals=separate|uppercase=group}}
  • {{Category TOC|numerals=separate|uppercase=no}}
  • {{Category TOC|numerals=no}}
  • {{Category TOC|uppercase=group|lowercase=yes}}
  • {{Category TOC|uppercase=group|cyrl-uppercase=yes}}
  • {{Category TOC|uppercase=group|lowercase=group}}
  • {{Category TOC|uppercase=group|lowercase=group|cyrl-uppercase=group|cyrl-lowercase=group}}
  • {{Category TOC|uppercase=no|cyrl-uppercase=yes}}
  • {{Category TOC|lang=ru}}
  • {{Category TOC|lang=ja}}
  • {{Category TOC|lang=ja|uppercase=yes|kana=group}}
  • {{Category TOC|lang=ja|align=center}}
  • {{Category TOC|lang=ja|numerals=no}}
  • {{Category TOC|lang=ja|kana=separate}}

See also

Available languages — Category TOC
· Afrikaans · Alemannisch · aragonés · asturianu · azərbaycanca · Bahasa Indonesia · Bahasa Melayu · Bân-lâm-gú · Basa Jawa · Baso Minangkabau · bosanski · brezhoneg · català · čeština · dansk · Deutsch · eesti · English · español · Esperanto · estremeñu · euskara · français · Frysk · Gaeilge · Gàidhlig · galego · Hausa · hrvatski · Igbo · interlingua · Interlingue · isiXhosa · isiZulu · íslenska · italiano · Kiswahili · Kreyòl ayisyen · kréyòl gwadloupéyen · Kurdî · latviešu · Lëtzebuergesch · lietuvių · magyar · Malagasy · Malti · Nederlands · Nedersaksies · norsk bokmål · norsk nynorsk · occitan · Oromoo · oʻzbekcha/ўзбекча · Plattdüütsch · polski · português · português do Brasil · română · shqip · slovenčina · slovenščina · Soomaaliga · suomi · svenska · Tiếng Việt · Türkçe · Vahcuengh · vèneto · Wolof · Yorùbá · Zazaki · српски / srpski · беларуская · български · қазақша · македонски · монгол · русский · тоҷикӣ · українська · Ελληνικά · Հայերեն · ქართული · नेपाली · मराठी · हिन्दी · অসমীয়া · বাংলা · ਪੰਜਾਬੀ · ગુજરાતી · ଓଡ଼ିଆ · தமிழ் · తెలుగు · ಕನ್ನಡ · മലയാളം · සිංහල · ไทย · မြန်မာဘာသာ · ລາວ · ភាសាខ្មែរ · ⵜⴰⵎⴰⵣⵉⵖⵜ · አማርኛ · 한국어 · 日本語 · 中文(简体)‎ · 吴语 · 粵語 · 中文(繁體)‎ · ייִדיש · עברית · اردو · العربية · پښتو · سنڌي · فارسی · ދިވެހިބަސް