Template:Language subpage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-language prefix)
(Replaced content with "__NOTOC__{{Doc}} <includeonly><onlyinclude>{{LanguageBar|{{#if:{{{title|}}}| title | x }} = {{{title|}}}}}Category:TODO rewrite langsp to LanguageBar</onlyinclude></in...")
Tag: Replaced
Line 1: Line 1:
__NOTOC__{{Doc}}
__NOTOC__{{Doc}}
<includeonly><onlyinclude>{{#ifeq:{{SUBPAGENAME}}|en|<!--
<includeonly><onlyinclude>{{LanguageBar|{{#if:{{{title|}}}| title | x }} = {{{title|}}}}}[[Category:TODO rewrite langsp to LanguageBar]]</onlyinclude></includeonly>
--><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}}||&nbsp;({{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>
<div style="font-size:16px; color:#FFF;font-weight: 500;">{{Language subpage/strings|Title}}</div>
<div>{{Language subpage/strings|Desc
                    |{{#language:{{lc:{{ROOTPAGENAME}}}} }}{{#ifeq:{{#language:{{lc:{{ROOTPAGENAME}}}} }}|{{language name|{{lc:{{ROOTPAGENAME}}}}|uselang|en}}||&nbsp;({{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>{{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}}:{{#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><!--
-->{{#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 17:36, 14 July 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
This template redirects to Template:LanguageBar. It has been deprecated.