Difference between revisions of "Template:Documentation subpage"

From Second Life Wiki
Jump to navigation Jump to search
m (Replace automagic Wikipedia pseudo-categories with {{Wikipedia}} template)
(Tweak to get Wikipedia link to subpage correctly)
Line 29: Line 29:
     |text={{LangSwitch|lang={{{lang|{{langcode}} }}}<!--if you translate new languages, update the matching lists of languages detected above-->
     |text={{LangSwitch|lang={{{lang|{{langcode}} }}}<!--if you translate new languages, update the matching lists of languages detected above-->
       |de ='''Dies ist eine [[w:de:Hilfe:Vorlagendokumentation|Vorlagendokumentation]] als [[w:mw:Help:Subpages/de|Unterseite]] von {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Sie enthält Benutzungshinweise, [[w:de:Wikipedia:Kategorien|Kategorien]] und Weiteres oder Metadaten, die nicht Teil {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=Artikel|{{ns:Template}}=der eigentlichen Vorlage|{{ns:User}}=der Vorlage eines Benutzers oder einer Benutzerin|#default={{lc:{{SUBJECTSPACE}}}} der eigentlichen Seite}}}}}} sind.
       |de ='''Dies ist eine [[w:de:Hilfe:Vorlagendokumentation|Vorlagendokumentation]] als [[w:mw:Help:Subpages/de|Unterseite]] von {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Sie enthält Benutzungshinweise, [[w:de:Wikipedia:Kategorien|Kategorien]] und Weiteres oder Metadaten, die nicht Teil {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=Artikel|{{ns:Template}}=der eigentlichen Vorlage|{{ns:User}}=der Vorlage eines Benutzers oder einer Benutzerin|#default={{lc:{{SUBJECTSPACE}}}} der eigentlichen Seite}}}}}} sind.
       |en ='''This is a {{Wikipedia|Template documentation|documentation}} [[w:mw:Help:Subpages|subpage]] for {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> It contains usage information, {{Wikipedia|Categorization|categories}} and other content or metadata that is not part of the original {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=article|{{ns:Template}}=template|{{ns:User}}=user template|#default={{lc:{{SUBJECTSPACE}}}} page}}}}}}.
       |en ='''This is a {{Wikipedia|Template documentation|documentation}} {{Wikipedia|Help:Subpages|subpage}} for {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> It contains usage information, {{Wikipedia|Categorization|categories}} and other content or metadata that is not part of the original {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=article|{{ns:Template}}=template|{{ns:User}}=user template|#default={{lc:{{SUBJECTSPACE}}}} page}}}}}}.
       |fa ='''اینجا [[Wikipedia:fa:ویکی‌پدیا:زیرصفحه<!--x-->|زیرصفحهٔ]] [[Wikipedia:fa:ویکی‌پدیا:مستندسازی_الگوها<!--x-->|مستندات]] <!--x-->برای<!--x--> {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}} است'''<br /> و دربرگیرندهٔ شیوهٔ کاربرد، [[w:Wikipedia:fa:ویکی‌پدیا:رده‌بندی<!--x-->|رده‌ها]] <!--x-->و سایر اطلاعات یا فراداده‌هایی است که بخشی از {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=مقالهٔ|{{ns:Template}}=الگوی|{{ns:User}}=الگوی کاربری|#default={{lc:{{SUBJECTSPACE}}}} صفحهٔ<!--x-->}}}}}} اصلی به‌حساب نمی‌آید.
       |fa ='''اینجا [[Wikipedia:fa:ویکی‌پدیا:زیرصفحه<!--x-->|زیرصفحهٔ]] [[Wikipedia:fa:ویکی‌پدیا:مستندسازی_الگوها<!--x-->|مستندات]] <!--x-->برای<!--x--> {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}} است'''<br /> و دربرگیرندهٔ شیوهٔ کاربرد، [[w:Wikipedia:fa:ویکی‌پدیا:رده‌بندی<!--x-->|رده‌ها]] <!--x-->و سایر اطلاعات یا فراداده‌هایی است که بخشی از {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=مقالهٔ|{{ns:Template}}=الگوی|{{ns:User}}=الگوی کاربری|#default={{lc:{{SUBJECTSPACE}}}} صفحهٔ<!--x-->}}}}}} اصلی به‌حساب نمی‌آید.
       |fr ='''Ceci est une [[w:mw:Help:Subpages/fr|sous-page]] de [[w:fr:Aide:Documentation de modèle|documentation]] pour {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Elle contient des informations d’utilisation, des [[w:fr:Wikipédia:Conventions sur les catégories|catégories]] et d’autres contenus ou métadonnées qui ne font pas partie {{#if:{{{text2|}}}|de {{{text2|}}}|{{#if:{{{text1|}}}|de {{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=de l’article|{{ns:Template}}=du modèle|{{ns:User}}=du modèle utilisateur|#default=de la page {{#if:{{SUBJECTSPACE}}|{{lc:{{SUBJECTSPACE}}}}}}}}}}}} d’origine.
       |fr ='''Ceci est une [[w:mw:Help:Subpages/fr|sous-page]] de [[w:fr:Aide:Documentation de modèle|documentation]] pour {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Elle contient des informations d’utilisation, des [[w:fr:Wikipédia:Conventions sur les catégories|catégories]] et d’autres contenus ou métadonnées qui ne font pas partie {{#if:{{{text2|}}}|de {{{text2|}}}|{{#if:{{{text1|}}}|de {{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=de l’article|{{ns:Template}}=du modèle|{{ns:User}}=du modèle utilisateur|#default=de la page {{#if:{{SUBJECTSPACE}}|{{lc:{{SUBJECTSPACE}}}}}}}}}}}} d’origine.
Line 36: Line 36:
       |pl ='''To jest [[w:Wikipedia:Template documentation|dokumentacja]] [[w:mw:Help:Subpages|podstrony]] dla {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Zawiera informacje o użytkowaniu, [[w:Wikipedia:Categorization|kategorii]] i inne treści lub metadane, które nie są częścią oryginału {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=artykuł|{{ns:Template}}=szablon|{{ns:User}}=domyślny użytkownik|#default={{lc:{{SUBJECTSPACE}}}}}}}}}} oryginału.
       |pl ='''To jest [[w:Wikipedia:Template documentation|dokumentacja]] [[w:mw:Help:Subpages|podstrony]] dla {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Zawiera informacje o użytkowaniu, [[w:Wikipedia:Categorization|kategorii]] i inne treści lub metadane, które nie są częścią oryginału {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=artykuł|{{ns:Template}}=szablon|{{ns:User}}=domyślny użytkownik|#default={{lc:{{SUBJECTSPACE}}}}}}}}}} oryginału.
       |pt ='''Isto é uma [[w:mw:Help:Subpages/pt|subpágina]] de [[w:pt:Wikipédia:Documentação da predefinição|documentação]] para {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Contém informações sobre uso, [[w:pt:Ajuda:Guia de edição/Categorizar|categorias]] e outros conteúdos ou metadados que não fazem parte de  {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=artigo|{{ns:Template}}=predefinição|{{ns:User}}=predefinição do usuário|#default={{lc:{{SUBJECTSPACE}}}}}}}}}} do original.
       |pt ='''Isto é uma [[w:mw:Help:Subpages/pt|subpágina]] de [[w:pt:Wikipédia:Documentação da predefinição|documentação]] para {{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}.'''<br /> Contém informações sobre uso, [[w:pt:Ajuda:Guia de edição/Categorizar|categorias]] e outros conteúdos ou metadados que não fazem parte de  {{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|=artigo|{{ns:Template}}=predefinição|{{ns:User}}=predefinição do usuário|#default={{lc:{{SUBJECTSPACE}}}}}}}}}} do original.
       |ru = '''Это [[Wikipedia:Subpages|подстраница]] [[Wikipedia:Template documentation|документации]] для {{{1|[[:{{SUBJECTSPACE}}:{{Template:BASEPAGENAME}}]]}}}'''.<br />Она содержит полезную информацию, [[Wikipedia:Categorization|categories]] и другое содержимое, не являющееся частью оригинальной {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} страницы шаблона | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|страницы}}}}}}}}.
       |ru = '''Это {{Wikipedia|Subpages|подстраница}} {{Wikipedia|Template documentation|документации}} для {{{1|[[:{{SUBJECTSPACE}}:{{Template:BASEPAGENAME}}]]}}}'''.<br />Она содержит полезную информацию, [[Wikipedia:Categorization|categories]] и другое содержимое, не являющееся частью оригинальной {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} страницы шаблона | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|страницы}}}}}}}}.
       |zh-hans='''此页面是{{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}的[[:w:zh:Wikipedia:模板文件页模式|模板说明页面]]。 '''<br />此页面可能包含了{{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|{{ns:0}}=页面|{{ns:Template}}=模板|{{ns:User}}=用户模板|#default={{lc:{{SUBJECTSPACE}}}}页面}}}}}}的使用说明、[[:w:zh:Wikipedia:页面分类|分类]]和其他内容。
       |zh-hans='''此页面是{{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}的[[:w:zh:Wikipedia:模板文件页模式|模板说明页面]]。 '''<br />此页面可能包含了{{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|{{ns:0}}=页面|{{ns:Template}}=模板|{{ns:User}}=用户模板|#default={{lc:{{SUBJECTSPACE}}}}页面}}}}}}的使用说明、[[:w:zh:Wikipedia:页面分类|分类]]和其他内容。
       |zh-hant='''此頁面是{{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}的[[:w:zh:Wikipedia:模板文件頁模式|模板說明頁面]]。'''<br />此頁面可能包含了{{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|{{ns:0}}=頁面|{{ns:Template}}=模板|{{ns:User}}=用戶模板|#default={{lc:{{SUBJECTSPACE}}}}頁面}}}}}}的使用說明、[[:w:zh:Wikipedia:頁面分類|分類]]和其他內容。
       |zh-hant='''此頁面是{{{1|[[:{{Template:BASEPAGENAME|ns={{SUBJECTSPACE}}:}}]]}}}的[[:w:zh:Wikipedia:模板文件頁模式|模板說明頁面]]。'''<br />此頁面可能包含了{{#if:{{{text2|}}}|{{{text2|}}}|{{#if:{{{text1|}}}|{{{text1|}}}|{{#switch:{{SUBJECTSPACE}}|{{ns:0}}=頁面|{{ns:Template}}=模板|{{ns:User}}=用戶模板|#default={{lc:{{SUBJECTSPACE}}}}頁面}}}}}}的使用說明、[[:w:zh:Wikipedia:頁面分類|分類]]和其他內容。

Revision as of 00:23, 14 September 2022

[Edit] [🔄Purge] Template-info.png Template documentation

Usage

{{documentation subpage}}

OR

{{documentation subpage|main page to link to}}

Customization of text

To manually change the text of the template, the "text1=your text here" and/or "text2=your other text here" parameters can be specified. "text1=" changes the automatic text on the first line to your own word(s). "text2=" changes the automatic text on the second line to your own word(s). If "text1=" parameter is specified without the "text2=" parameter, both the first and second line of text will be custom based on the text given in the "text1=" parameter.

Example usage:

{{documentation subpage|text1= custom first and second line text}}
{{documentation subpage|text2=custom second line text only}}
{{documentation subpage|text1=custom first line text|text2=custom second line text}}

How it is displayed

This template should be placed at the top of "/doc" pages. It changes output depending on where it is viewed:

  • On a "/doc" page, it displays a box explaining template documentation and links to the template page.
  • On other pages (i.e., pages transcluding the "/doc" page), the template will not show. The template page itself (which contains {{Documentation}}) will automatically note that the documentation is "Wikipedia logo"transcluded from a subpage.

Functions

In addition to the output message, the template categorizes pages to Category:Template documentation pages, Category:User documentation pages, or similar (named after the subject space), but only for documentation pages in namespaces with the subpage feature. It defaults the "Wikipedia logo"sort key to the page name without namespace (ie, "Foo" on "Template:Foo", so it would be sorted in categories under 'F').