Difference between revisions of "Template:LngBarItem"

From Free Pascal wiki
Jump to navigationJump to search
(checking and branching for {{FULLPAGENAME}} = {{{Link}}} is unnecessary because a self-reference will automatically disable linking and makes the text bold; use #if:{{PROTECTIONEXPIRY:edit instead of #ifexist in order to not create spurious wanted links)
 
Line 10: Line 10:
 
[[Category:Templates for internal use]]
 
[[Category:Templates for internal use]]
  
</noinclude><includeonly><small>{{#ifexist:{{{Link}}}
+
</noinclude><includeonly><small>{{#if:{{PROTECTIONEXPIRY:edit|{{{Link|}}}}}
|{{#ifeq:{{FULLPAGENAME}}|{{{Link}}}|'''{{{Caption}}}'''|[[:{{{Link}}}|'''{{{Caption}}}''']]}}&#32;&#x2502;&#32;}}</small></includeonly>
+
|'''[[:{{{Link}}}|{{{Caption}}}]]'''&#32;&#x2502;&#32;}}</small></includeonly>

Latest revision as of 16:58, 25 August 2022

Purpose

Adds single language to language bar.

Usage

Parameters

Link
Caption