틀:CURRENTCONTENTLANGUAGE: 두 판 사이의 차이
Revi HQ
내용 추가됨 내용 삭제됨
(more robust: it checks against the known language codes) |
잔글편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
{{#if:{{#invoke:Template translation|getLanguageSubpage}}|{{#invoke:Template translation|getLanguageSubpage}}|{{CONTENTLANGUAGE}}}}<noinclude>{{Documentation}}</noinclude> |
|||
Examples: |
|||
* on "Bar/foo", this template returns "{{CONTENTLANGUAGE}}"; |
|||
* on "Bar/foo/hu", this template returns "hu". |
|||
(Note: there could be false positive: e.g. on "Foo/bar" it returns "bar" because "bar" is the language code for Bavarian; "foo" is not a language code; very small (2 or 3 letters) last words can be a problem as seen here.) |
|||
This template takes no argument, and acts as a magic word. If such a magic word is created in MediaWiki (see [[bugzilla:57603]]), this template could be deleted. |
|||
[[Category:Translation templates]]</noinclude> |
2014년 4월 27일 (일) 21:38 판
ko
Template documentation[create]