Template:Documentation subpage: Difference between revisions
m (Combine the template from Template:JA: Documentation subpage) |
m (Combine the template from Template:RU:Documentation_subpage) |
||
Line 12: | Line 12: | ||
|pl =pl |
|pl =pl |
||
|pt =pt |
|pt =pt |
||
|ru =ru |
|||
|zh-hans =zh-hans |
|zh-hans =zh-hans |
||
|zh-hant =zh-hant |
|zh-hant =zh-hant |
||
Line 23: | Line 24: | ||
|pl =pl |
|pl =pl |
||
|pt =pt |
|pt =pt |
||
|ru =ru |
|||
|zh-hans =zh-hans |
|zh-hans =zh-hans |
||
|zh-hant =zh-hant |
|zh-hant =zh-hant |
||
Line 35: | Line 37: | ||
|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|страницы}}}}}}}}. |
|||
|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 05:32, 27 April 2022
![]() |
This is a documentation subpage for Template:Documentation subpage. It contains usage information, categories and other content or metadata that is not part of the original template. |
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
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 (ie, pages transcluding the "/doc" page), the template will not show. The template page itself (which contains
{{Documentation}}
) will automatically note that the documentation is 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 sort key to the page name without namespace (ie, "Foo" on "Template:Foo", so it would be sorted in categories under 'F').