Template:LanguageBar: Difference between revisions

    From Marovi AI
    ([deploy-bot] Create LanguageBar template (v1.2.0))
    Tag: ci-deploy
     
    ([deploy-bot] Improve LanguageBar: show all languages, dim the ones without translation (v1.2.0))
    Tag: ci-deploy
     
    Line 4: Line 4:
    {{LanguageBar | page = Gradient Descent}}
    {{LanguageBar | page = Gradient Descent}}
    </pre>
    </pre>
    Renders links to known language subpages.
    Marks the current language bold; renders links for available translations
    </noinclude><includeonly><div style="background: #f0f0f0; border: 1px solid #ddd; padding: 4px 8px; margin-bottom: 1em; font-size: 90%;">'''Languages:''' '''English''' {{#ifexist: {{{page}}}/es | &#124; [[{{{page}}}/es|Español]] }} {{#ifexist: {{{page}}}/zh | &#124; [[{{{page}}}/zh|中文]] }} {{#ifexist: {{{page}}}/fr | &#124; [[{{{page}}}/fr|Français]] }} {{#ifexist: {{{page}}}/de | &#124; [[{{{page}}}/de|Deutsch]] }}</div></includeonly>
    and plain text (dimmed) for languages without a translation.
    </noinclude><includeonly><div style="background: #f0f0f0; border: 1px solid #ddd; padding: 4px 8px; margin-bottom: 1em; font-size: 90%;">'''Languages:''' {{#ifeq:{{SUBPAGENAME}}|{{{page}}}|'''English'''|[[{{{page}}}|English]]}} &#124; {{#ifexist:{{{page}}}/es|{{#ifeq:{{FULLPAGENAME}}|{{{page}}}/es|'''Español'''|[[{{{page}}}/es|Español]]}}|<span style="color:#888;">Español</span>}} &#124; {{#ifexist:{{{page}}}/zh|{{#ifeq:{{FULLPAGENAME}}|{{{page}}}/zh|'''中文'''|[[{{{page}}}/zh|中文]]}}|<span style="color:#888;">中文</span>}}</div></includeonly>

    Latest revision as of 07:09, 24 April 2026

    Language navigation bar. Usage:

    {{LanguageBar | page = Gradient Descent}}
    

    Marks the current language bold; renders links for available translations and plain text (dimmed) for languages without a translation.