Template:Language subpage: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Tdeprecated|LanguageBar}}
__NOTOC__{{Doc}}
__NOTOC__{{Doc}}
<includeonly><onlyinclude><!--
<includeonly><onlyinclude>{{LanguageBar|{{#if:{{{title|}}}| title | x }} = {{{title|}}}}}[[Category:TODO rewrite langsp to LanguageBar]]</onlyinclude></includeonly>
-->{{#ifeq:{{SUBPAGENAME}}|zh-cn||}}{{#if:{{Uselang|{{SUBPAGENAME}}}}{{{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:{{SUBPAGENAME}} }}{{#ifeq:{{#language:{{SUBPAGENAME}} }}|{{language name|{{SUBPAGENAME}}|uselang|en}}||&nbsp;({{language name|{{SUBPAGENAME}}|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|{{SUBPAGENAME}}|en}}|[[Category:{{language name|{{SUBPAGENAME}}|en}}]]|{{error|Unsupported language abbreviation "{{SUBPAGENAME}}"}} }}<!--
-->{{#ifeq:{{SUBPAGENAME}}|en|__NOINDEX__}}
|{{#if:{{{title|}}}|{{DISPLAYTITLE:{{{title|}}}|noerror}}}}{{{1|}}}|{{Error|1=TEMPLATE ERROR: "zh-cn" is no longer a supported language. Use "zh" instead.}}}}</onlyinclude></includeonly>

Latest revision as of 13:35, 16 July 2024

Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
Please use {{LanguageBar}} instead.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.
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.