Template:Tlb: Difference between revisions

478 bytes added ,  13 years ago
add sane handling of case where no params given (behave like {{Tl|Tlu}} in showing our own page name); add comments
(twiddle)
(add sane handling of case where no params given (behave like {{Tl|Tlu}} in showing our own page name); add comments)
Line 1:
<includeonly><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}'''[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]'''<!-- opening brace
-->#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!-- subst prefix, if called for
-->'''<!-- begin boldface
-->[[{{{LANG|}}}{{{SISTER|}}}<!-- begin link, add any LANG and SISTER prefixes
-->{{#if:{{{1|}}}|{{ns:Template}}:{{{1|}}}|{{FULLPAGENAME}}}}<!-- specify page to link to
-->|{{{1|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}]]<!-- surface text of link
-->'''<!-- end boldface; add the remaining parameters
-->{{#if:{{{2|}}}|
&#124;{{{2}}}
Anonymous user