틀:Languages/Lang: 두 판 사이의 차이
Revi HQ
내용 추가됨 내용 삭제됨
잔글 (moved Template:Language subpages list/Lang to Template:Languages/Lang) |
잔글 (undo) |
||
(사용자 12명의 중간 판 26개는 보이지 않습니다) | |||
1번째 줄: | 1번째 줄: | ||
{{#if: {{{1|}}} |
|||
<includeonly>{{#ifexist: {{#if: {{{2|}}} | {{{2}}} | {{#if: {{NAMESPACE}} | {{NAMESPACE}}:}}{{BASEPAGENAME}}}}/{{{1}}} | • <span lang="{{{1}}}">{{#if: {{{2|}}}|[[{{{2}}}/{{{1}}}|{{#language:{{{1}}}}}]]| [[:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{#language:{{{1}}}}}]]}}</span>|<span></span>}}</includeonly><noinclude> |
|||
| {{#if: {{#if: {{{all|}}} |
|||
== Template == |
|||
| 1 |
|||
''This sub-template doesn't display properly when not included. Please see [[Template:Language subpages list]] for the complete version.'' |
|||
| {{#ifexist: {{#if: {{{2|}}} |
|||
| {{{2|}}} |
|||
== Usage == |
|||
| {{#if: {{NAMESPACE}} | {{NAMESPACE}}: }}{{BASEPAGENAME}} |
|||
}}/{{{1|}}} |
|||
This template is designed to simplify [[Template:Language subpages list]], by allowing a simpler syntax for adding new languages. Each language is included by calling this template with the following parameters: |
|||
| 1 |
|||
}} |
|||
* '''Language code''' (e.g. fr) |
|||
}} |
|||
* (optional) '''Page name''' - if not supplied the page is automatically worked out based on where the language template is included. |
|||
| '''·''' <span lang="{{#if:{{{name|}}}|en|{{BCP47|{{Uselang}}}}}}" title="{{{name|{{#language:{{{1|}}}|{{Uselang}}}}}}} ({{{1}}})"><bdi lang="{{BCP47|{{{1}}}}}" dir="{{Dir|{{{1}}}}}" class="plainlinks autonym" style="white-space:nowrap">{{#ifeq: {{#if: {{{2|}}} |
|||
| {{{2|}}} |
|||
This template should not be used anywhere except in the Languages template. |
|||
| {{#if: {{NAMESPACE}} | {{NAMESPACE}}: }}{{BASEPAGENAME}} |
|||
</noinclude> |
|||
}}/{{{1|}}} | {{FULLPAGENAME}} |
|||
| [[:{{FULLPAGENAME}}|{{{autonym|{{#language:{{{1|}}}}}}}}]]<!-- selflink --> |
|||
| [{{FULLURL:{{#if: {{{2|}}} |
|||
| {{{2|}}} |
|||
| {{#if: {{NAMESPACE}} | {{NAMESPACE}}: }}{{BASEPAGENAME}} |
|||
}}/{{{1|}}}|uselang={{{1|}}}}} {{{autonym|{{#language:{{{1|}}}}}}}}]<!-- real link, set interface to be in the language of the page --> |
|||
}}</bdi></span> |
|||
}} |
|||
}}<noinclude>{{Documentation}}</noinclude> |
2021년 3월 27일 (토) 22:55 기준 최신판
Template documentation[create]