Template:Documentation/doc

From MediaWiki
< Template:Documentation
Revision as of 09:28, 3 July 2014 by Greenes2 (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Documentation subpage

This template automatically displays a documentation box like you are seeing now, of which the content is transcluded from another page. It is intended for pages which are transcluded in other pages, i.e. templates, whether in the template namespace or not.

Usage

Normal

<noinclude>{{documentation}}<noinclude>

or

<noinclude>{{documentation|Template:any page/doc}}<noinclude>

This code should be added at the bottom of the template code, with no extra space before "<noinclude>" (which would cause extra space on pages where the template is used). The parameter can be used as shown above to transclude an arbitrary documentation page.

Add categories and interwiki links to the documentation page inside includeonly tags.

If the documentation page contains includeonly or noinclude tags as part of the documentation, replace the "<" with "&lt;".

Customizing display

Overrides exist to customize the output in special cases:

  • {{documentation|heading=}}: change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.

Functions

If the documentation page doesn't exist, the "edit" link includes a preload parameter so that clicking it will pre-fill the edit form with the basic documentation page format.

Rationale

This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation, categories, and interwiki links. It also reduces server resources by circumventing a technical limitation of templates (see a developer's explanation).

See also

{{#if:[[Project:Language policy|]] | |

}}

[[Project:Language policy|]] English {{#ifexist: {{#if:||Template:Documentation}}/af

| • {{#if:

 |Afrikaans
 |Afrikaans
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ar | • {{#if:

 |العربية
 |العربية
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ast | • {{#if:

 |asturianu
 |asturianu
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/az | • {{#if:

 |azərbaycanca
 |azərbaycanca
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bcc | • {{#if:

 |جهلسری بلوچی
 |جهلسری بلوچی
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bg | • {{#if:

 |български
 |български
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/br | • {{#if:

 |brezhoneg
 |brezhoneg
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bn | • {{#if:

 |বাংলা
 |বাংলা
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bs | • {{#if:

 |bosanski
 |bosanski
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ca | • {{#if:

 |català
 |català
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/cs | • {{#if:

 |čeština
 |čeština
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/da | • {{#if:

 |dansk
 |dansk
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/de | • {{#if:

 |Deutsch
 |Deutsch
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/diq | • {{#if:

 |Zazaki
 |Zazaki
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/el | • {{#if:

 |Ελληνικά
 |Ελληνικά
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/eo | • {{#if:

 |Esperanto
 |Esperanto
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/es | • {{#if:

 |español
 |español
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/fa | • {{#if:

 |فارسی
 |فارسی
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/fi | • {{#if:

 |suomi
 |suomi
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/fr | • {{#if:

 |français
 |français
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/gl | • {{#if:

 |galego
 |galego
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/gu | • {{#if:

 |ગુજરાતી
 |ગુજરાતી
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/he | • {{#if:

 |עברית
 |עברית
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/hi | • {{#if:

 |हिन्दी
 |हिन्दी
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/hu | • {{#if:

 |magyar
 |magyar
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/hy | • {{#if:

 |հայերեն
 |հայերեն
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/id | • {{#if:

 |Bahasa Indonesia
 |Bahasa Indonesia
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/io | • {{#if:

 |Ido
 |Ido
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/it | • {{#if:

 |italiano
 |italiano
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ja | • {{#if:

 |日本語
 |日本語
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ka | • {{#if:

 |ქართული
 |ქართული
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/kk | • {{#if:

 |қазақша
 |қазақша
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/km | • {{#if:

 |ភាសាខ្មែរ
 |ភាសាខ្មែរ
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ko | • {{#if:

 |한국어
 |한국어
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ksh | • {{#if:

 |Ripoarisch
 |Ripoarisch
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/kw | • {{#if:

 |kernowek
 |kernowek
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/la | • {{#if:

 |Latina
 |Latina
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/min | • {{#if:

 |Minangkabau
 |Minangkabau
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/mk | • {{#if:

 |македонски
 |македонски
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ml | • {{#if:

 |മലയാളം
 |മലയാളം
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/mr | • {{#if:

 |मराठी
 |मराठी
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ms | • {{#if:

 |Bahasa Melayu
 |Bahasa Melayu
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/nl | • {{#if:

 |Nederlands
 |Nederlands
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/no | • {{#if:

 |norsk
 |norsk
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/oc | • {{#if:

 |occitan
 |occitan
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/or | • {{#if:

 |ଓଡ଼ିଆ
 |ଓଡ଼ିଆ
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/pl | • {{#if:

 |polski
 |polski
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/pt | • {{#if:

 |português
 |português
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/pt-br | • {{#if:

 |português do Brasil
 |português do Brasil
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ro | • {{#if:

 |română
 |română
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ru | • {{#if:

 |русский
 |русский
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/si | • {{#if:

 |සිංහල
 |සිංහල
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sk | • {{#if:

 |slovenčina
 |slovenčina
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sl | • {{#if:

 |slovenščina
 |slovenščina
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/so | • {{#if:

 |Soomaaliga
 |Soomaaliga
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sq | • {{#if:

 |shqip
 |shqip
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sr | • {{#if:

 |српски / srpski
 |српски / srpski
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sv | • {{#if:

 |svenska
 |svenska
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ta | • {{#if:

 |தமிழ்
 |தமிழ்
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/th | • {{#if:

 |ไทย
 |ไทย
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/tr | • {{#if:

 |Türkçe
 |Türkçe
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/uk | • {{#if:

 |українська
 |українська
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/vi | • {{#if:

 |Tiếng Việt
 |Tiếng Việt
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/yi | • {{#if:

 |ייִדיש
 |ייִדיש
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/yue | • {{#if:

 |粵語
 |粵語
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh | • {{#if:

 |中文
 |中文
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh-hans | • {{#if:

 |中文(简体)‎
 |中文(简体)‎
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh-hant | • {{#if:

 |中文(繁體)‎
 |中文(繁體)‎
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh-tw | • {{#if:

 |中文(台灣)‎
 |中文(台灣)‎
 }}
}}

{{#if:{{#ifexist: {{#if:||Template:Documentation}}/af

| • {{#if:

 |Afrikaans
 |Afrikaans
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ar | • {{#if:

 |العربية
 |العربية
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ast | • {{#if:

 |asturianu
 |asturianu
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/az | • {{#if:

 |azərbaycanca
 |azərbaycanca
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bcc | • {{#if:

 |جهلسری بلوچی
 |جهلسری بلوچی
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bg | • {{#if:

 |български
 |български
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/br | • {{#if:

 |brezhoneg
 |brezhoneg
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bn | • {{#if:

 |বাংলা
 |বাংলা
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/bs | • {{#if:

 |bosanski
 |bosanski
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ca | • {{#if:

 |català
 |català
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/cs | • {{#if:

 |čeština
 |čeština
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/da | • {{#if:

 |dansk
 |dansk
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/de | • {{#if:

 |Deutsch
 |Deutsch
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/diq | • {{#if:

 |Zazaki
 |Zazaki
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/el | • {{#if:

 |Ελληνικά
 |Ελληνικά
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/eo | • {{#if:

 |Esperanto
 |Esperanto
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/es | • {{#if:

 |español
 |español
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/fa | • {{#if:

 |فارسی
 |فارسی
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/fi | • {{#if:

 |suomi
 |suomi
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/fr | • {{#if:

 |français
 |français
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/gl | • {{#if:

 |galego
 |galego
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/gu | • {{#if:

 |ગુજરાતી
 |ગુજરાતી
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/he | • {{#if:

 |עברית
 |עברית
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/hi | • {{#if:

 |हिन्दी
 |हिन्दी
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/hu | • {{#if:

 |magyar
 |magyar
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/hy | • {{#if:

 |հայերեն
 |հայերեն
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/id | • {{#if:

 |Bahasa Indonesia
 |Bahasa Indonesia
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/io | • {{#if:

 |Ido
 |Ido
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/it | • {{#if:

 |italiano
 |italiano
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ja | • {{#if:

 |日本語
 |日本語
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ka | • {{#if:

 |ქართული
 |ქართული
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/kk | • {{#if:

 |қазақша
 |қазақша
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/km | • {{#if:

 |ភាសាខ្មែរ
 |ភាសាខ្មែរ
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ko | • {{#if:

 |한국어
 |한국어
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ksh | • {{#if:

 |Ripoarisch
 |Ripoarisch
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/kw | • {{#if:

 |kernowek
 |kernowek
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/la | • {{#if:

 |Latina
 |Latina
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/min | • {{#if:

 |Minangkabau
 |Minangkabau
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/mk | • {{#if:

 |македонски
 |македонски
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ml | • {{#if:

 |മലയാളം
 |മലയാളം
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/mr | • {{#if:

 |मराठी
 |मराठी
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ms | • {{#if:

 |Bahasa Melayu
 |Bahasa Melayu
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/nl | • {{#if:

 |Nederlands
 |Nederlands
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/no | • {{#if:

 |norsk
 |norsk
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/oc | • {{#if:

 |occitan
 |occitan
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/or | • {{#if:

 |ଓଡ଼ିଆ
 |ଓଡ଼ିଆ
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/pl | • {{#if:

 |polski
 |polski
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/pt | • {{#if:

 |português
 |português
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/pt-br | • {{#if:

 |português do Brasil
 |português do Brasil
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ro | • {{#if:

 |română
 |română
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ru | • {{#if:

 |русский
 |русский
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/si | • {{#if:

 |සිංහල
 |සිංහල
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sk | • {{#if:

 |slovenčina
 |slovenčina
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sl | • {{#if:

 |slovenščina
 |slovenščina
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/so | • {{#if:

 |Soomaaliga
 |Soomaaliga
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sq | • {{#if:

 |shqip
 |shqip
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sr | • {{#if:

 |српски / srpski
 |српски / srpski
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/sv | • {{#if:

 |svenska
 |svenska
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/ta | • {{#if:

 |தமிழ்
 |தமிழ்
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/th | • {{#if:

 |ไทย
 |ไทย
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/tr | • {{#if:

 |Türkçe
 |Türkçe
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/uk | • {{#if:

 |українська
 |українська
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/vi | • {{#if:

 |Tiếng Việt
 |Tiếng Việt
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/yi | • {{#if:

 |ייִדיש
 |ייִדיש
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/yue | • {{#if:

 |粵語
 |粵語
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh | • {{#if:

 |中文
 |中文
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh-hans | • {{#if:

 |中文(简体)‎
 |中文(简体)‎
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh-hant | • {{#if:

 |中文(繁體)‎
 |中文(繁體)‎
 }}

}}{{#ifexist: {{#if:||Template:Documentation}}/zh-tw | • {{#if:

 |中文(台灣)‎
 |中文(台灣)‎
 }}

}} ||}}