Template:Language subpage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(-language prefix) |
||
Line 1: | Line 1: | ||
__NOTOC__{{Doc}} | __NOTOC__{{Doc}} | ||
<includeonly><onlyinclude><!-- | <includeonly><onlyinclude>{{#ifeq:{{SUBPAGENAME}}|en|<!-- | ||
-->{{#if:{{Uselang|{{ | --><div class="plainlinks" style="display:flex; background-color:rgba(159,159,159,.05); border:1px solid rgba(159,159,159,.3); border-left:4px solid #9F9F9F; border-radius:3px; padding:10px; margin-bottom:6px"> | ||
<div> | |||
<div style="font-size:16px; color:#FFF;font-weight: 500;">{{Language subpage/strings|Title}}</div> | |||
<div>{{Language subpage/strings|Desc | |||
|{{#language:en }}{{#ifeq:{{#language:en }}|{{language name|en|uselang|en}}|| ({{language name|en|uselang|en}})}}<!-- doesn't show name in both ui lang and itself if they are the same, such as Esperanto in English | |||
-->}}</div> | |||
<div>{{Language subpage/strings|Worry}}</div> | |||
</div> | |||
<div style="display:flex; flex-direction:column; align-items:center; justify-content:center; margin-left:auto"> | |||
<div>[{{fullurl:{{NAMESPACE}}:{{BASEPAGENAME}}|action=purge}} <font title="{{Language subpage/strings|PurgeTT}}" style="display:inline-flex; background:#36C; border-radius:3px; color:#FFF; font-weight:bold; white-space:nowrap; position:relative; z-index:10; padding:6px 10px">{{Language subpage/strings|Purge}}</font>]</div> | |||
</div> | |||
</div><!-- | |||
-->{{#if: {{language name|en|en}}|[[Category:{{language name|en|en}}]]|{{error|Unsupported language abbreviation "en"}} }} | |||
{{#if:{{{title|}}}|{{DISPLAYTITLE:{{{title|}}}|noerror}}}}{{{1|}}}<!-- | |||
-->|{{#if:{{Uselang|{{lc:{{ROOTPAGENAME}}}}}}{{{force|}}} | |||
|<div class="plainlinks" style="display:flex; background-color:rgba(159,159,159,.05); border:1px solid rgba(159,159,159,.3); border-left:4px solid #9F9F9F; border-radius:3px; padding:10px; margin-bottom:6px"> | |<div class="plainlinks" style="display:flex; background-color:rgba(159,159,159,.05); border:1px solid rgba(159,159,159,.3); border-left:4px solid #9F9F9F; border-radius:3px; padding:10px; margin-bottom:6px"> | ||
<div> | <div> | ||
<div style="font-size:16px; color:#FFF;font-weight: 500;">{{Language subpage/strings|Title}}</div> | <div style="font-size:16px; color:#FFF;font-weight: 500;">{{Language subpage/strings|Title}}</div> | ||
<div>{{Language subpage/strings|Desc | <div>{{Language subpage/strings|Desc | ||
|{{#language:{{ | |{{#language:{{lc:{{ROOTPAGENAME}}}} }}{{#ifeq:{{#language:{{lc:{{ROOTPAGENAME}}}} }}|{{language name|{{lc:{{ROOTPAGENAME}}}}|uselang|en}}|| ({{language name|{{lc:{{ROOTPAGENAME}}}}|uselang|en}})}}<!-- doesn't show name in both ui lang and itself if they are the same, such as Esperanto in English | ||
-->}}</div> | -->}}</div> | ||
<div>{{Language subpage/strings|Worry}}</div> | <div>{{Language subpage/strings|Worry}}</div> | ||
</div> | </div> | ||
<div style="display:flex; flex-direction:column; align-items:center; justify-content:center; margin-left:auto"> | <div style="display:flex; flex-direction:column; align-items:center; justify-content:center; margin-left:auto"> | ||
<div>[{{fullurl:{{NAMESPACE}}:{{ | <div>[{{fullurl:{{NAMESPACE}}:{{#titleparts:{{PAGENAME}}||2}}|action=purge}} <font title="{{Language subpage/strings|PurgeTT}}" style="display:inline-flex; background:#36C; border-radius:3px; color:#FFF; font-weight:bold; white-space:nowrap; position:relative; z-index:10; padding:6px 10px">{{Language subpage/strings|Purge}}</font>]</div> | ||
</div> | </div> | ||
</div><!-- | </div><!-- | ||
-->{{#if: {{language | -->{{#if: {{language name|{{lc:{{ROOTPAGENAME}}}}|en}}|[[Category:{{language name|{{lc:{{ROOTPAGENAME}}}}|en}}]]|{{error|Unsupported language abbreviation "{{lc:{{ROOTPAGENAME}}}}"}} }} | ||
{{#if:{{{title|}}}|{{DISPLAYTITLE:{{{title|}}}|noerror}}}}{{{1|}}}|}}}}</onlyinclude></includeonly> |
Revision as of 10:31, 10 July 2024
The above documentation is transcluded from Template:Language subpage/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.