Template:Municipalities of Landkreis Leipzig

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationpurge ]

Showcase

Without coats of arms (usually used, exemplary prefix value):

{{Municipalities of Landkreis Leipzig|prefix=:Category:}}

With coats of arms (and another exemplary prefix value):

{{Municipalities of Landkreis Leipzig|prefix=:Category:Buildings in|coats=yes}}

Use only coats of arms (affects accessibility negatively (!)), unless a coats of arms image is absent for an entry:

{{Municipalities of Landkreis Leipzig|prefix=:Category:Buildings in|coats=only}}
{{Municipalities of Landkreis Leipzig|prefix=:Category:Buildings in|coats=only|compact=yes}}

With added indentation (differs from legacy Template:Catnav layout (!), may alternatively be enabled via user customization):

Effects of indent may only be visible in a narrow browser window.
{{Municipalities of Landkreis Leipzig|prefix=:Category:|indent=1}}
{{Municipalities of Landkreis Leipzig|prefix=:Category:Buildings in|indent=1|coats=yes}}

Test cases

all=2 is used for testing. It is a shortcut to saying all=1|article=the. This template does not set individual grammar articles per item, so if article is set, it will be used for all entries in the same manor. For productive use of the template try to avoid both, all and article parameters.
If the result shows two blue links for a pair, then one of them should be a redirect page:

{{Municipalities of Landkreis Leipzig|prefix=:Category:|indent=1|all=2|article=in}}

all=1 will not set a default article and only show redlinks for those link targets sparing a grammar article.

{{Municipalities of Landkreis Leipzig|prefix=|all=1}}

Additional tests may be found in Template:Municipalities of Landkreis Leipzig/tests.

Customization

You can css style the output of this template using class catnav_municipalities_of_landkreis_leipzig in your common.css settings.

/* styling variant with centered elements */
.catnav_municipalities_of_landkreis_leipzig {
	text-align: center;
	background: transparent;
	border: none;
}

/* achieve the same effect as if indent=1 was passed to the template
  (to apply this to all catnav instances driven by Module:Catnav
   remove "_municipalities_of_landkreis_leipzig" suffix)
*/
.catnav_municipalities_of_landkreis_leipzig .catnav_seq {
	display: table-row !important;
}
.catnav_municipalities_of_landkreis_leipzig .catnav_seqdata {
	display: table-cell !important;
	padding-top: .4em;
}
.catnav_municipalities_of_landkreis_leipzig .catnav_seqlabel br {
	display: none;
}
.catnav_municipalities_of_landkreis_leipzig .catnav_seqlabel {
	display: table-cell !important;
	white-space: nowrap;
	text-align: right;
	vertical-align: top;
	padding-right: .4em;
	padding-top: .4em;
}

/* color the background of the last sequential listing of municipalities beige (e.g. if
   there are urban, rural and former, colors background of former municipalities),
   may not work with all browsers
*/
.catnav_municipalities_of_landkreis_leipzig > div:nth-last-of-type(2) {
	background:beige;
}

Maintenance

Generic Description

Category navigational template - template to assist navigation across related categories, e.g. Buildings in X where X is replaced by place names listed in the built template.

Usage

{{Municipalities of Landkreis Leipzig |all= |prefix= |suffix= }}

Template parameters

ParameterDescriptionDefaultStatus
allshow all items, including items where no page exists (red links). Set to 1 if you want to list all names (useful when the template is used in a parent directory for helping the creation of missing pages with coherent names). When it is empty by default, this list will be filtered from missing pages.
Without this parameter, every target page name is tested with a #ifexist: parser function, which is considered costly. Do not list too many names in this template. If this built template is used on a page with other similar templates, a parser limit may be exausted, and you'll need to set this parameter to 1 for each of these template uses in that page.
nooptional
prefixparameter to customise target page names of links, with text added before the relevant link parameter, e.g. :Category:Buildings in, or :Template:Seasons in. Without the prefix, the links will point to gallery pages of the main namespace.emptyoptional
suffixparameter to customise template use, with text added after the relevant link parameter, e.g. (example needed)emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Relies on:
Module:Catnav

Localization

To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)

Localizable items are defined in subpage Template:Municipalities of Landkreis Leipzig/i18n.
To view this template in other user languages, use either mediawiki's language select or use the links below.
af: Afrikaans · gsw: Alemannisch · az: azərbaycanca · an: aragonés · id: Bahasa Indonesia · ms: Bahasa Melayu · nan: 閩南語 / Bân-lâm-gú · jv: Jawa · su: Sunda · bar: Boarisch · bs: bosanski · br: brezhoneg · ca: català · ceb: Cebuano · cs: čeština · sn: chiShona · co: corsu · da: dansk · se: davvisámegiella · de: Deutsch · dsb: dolnoserbski · et: eesti · en: English · es: español · eo: Esperanto · ext: estremeñu · eu: euskara · fr: français · fy: Frysk · ga: Gaeilge · gd: Gàidhlig · gl: galego · haw: Hawaiʻi · hmn: Hmong · hsb: hornjoserbsce · hr: hrvatski · ig: Igbo · xh: isiXhosa · zu: isiZulu · is: íslenska · it: italiano · kl: kalaallisut · rw: Ikinyarwanda · sw: Kiswahili · ku: kurdî · la: Latina · lv: latviešu · lb: Lëtzebuergesch · lt: lietuvių · lij: Ligure · li: Limburgs · hu: magyar · mt: Malti · mi: Māori · mwl: Mirandés · nap: Napulitano · nl: Nederlands · nds-nl: Nedersaksies · nb: norsk bokmål · nn: norsk nynorsk · nov: Novial · oc: occitan · om: Oromoo · uz: oʻzbekcha / ўзбекча · nds: Plattdüütsch · pl: polski · pt: português · crh: qırımtatarca · ro: română · rmy: romani čhib · rm: rumantsch · sc: sardu · sco: Scots · st: Sesotho · sq: shqip · sk: slovenčina · sl: slovenščina · so: Soomaaliga · fi: suomi · sv: svenska · tl: Tagalog · vi: Tiếng Việt · chy: Tsetsêhestâhese · tr: Türkçe · tk: Türkmençe · ug: ئۇيغۇرچە / Uyghurche · vec: vèneto · vls: West-Vlams · zea: Zeêuws · el: Ελληνικά · pnt: Ποντιακά · ab: аԥсшәа · bg: български · be: беларуская · be-tarask: беларуская (тарашкевіца) · os: ирон · kk: қазақша · ky: кыргызча · mk: македонски · mn: монгол · ce: нохчийн · rue: русиньскый · ru: русский · sr: српски / srpski · tt: татарча / tatarça · tg: тоҷикӣ · uk: українська · ka: ქართული · hy: հայերեն · hi: हिन्दी · ne: नेपाली · new: नेपाल भाषा · sa: संस्कृतम् · mr: मराठी · as: অসমীয়া · bn: বাংলা · gu: ગુજરાતી · pa: ਪੰਜਾਬੀ · kn: ಕನ್ನಡ · ta: தமிழ் · th: ไทย · km: ភាសាខ្មែរ · lo: ລາວ · my: မြန်မာဘာသာ · bo: བོད་ཡིག · ko: 한국어 · ja: 日本語 · zh-hans: 中文(简体) · zh-hant: 中文(繁體) · yue: 粵語 · ii: ꆇꉙ · am: አማርኛ · ti: ትግርኛ · iu: ᐃᓄᒃᑎᑐᑦ / inuktitut · chr: ᏣᎳᎩ · he: עברית · yi: ייִדיש · ar: العربية · fa: فارسی · ps: پښتو · ur: اردو · sd: سنڌي · dv: ދިވެހިބަސް ·