Template:Tlg: Difference between revisions
Content added Content deleted
(Allow empty parameters to be specified (whatever this is good for). At least it simplifies documentation.) |
(username removed) m (1 revision imported from loginwiki:Template:Tlg: Updating template with latest edits from loginwiki) |
||
(26 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
{{#Invoke:Tlg|main}}<noinclude> |
|||
<includeonly><!-- |
|||
Templates tlc, tld, tlf have the following wrapping everything; do we need it? |
|||
<span style="white-space:nowrap;"> |
|||
--><!-- |
|||
-- begin tt style if tt=yes or code=yes given |
|||
-->{{#if:{{{tt|}}}{{{code|}}}|<code>}}<!-- |
|||
-- opening brace unless braceinside=yes |
|||
-->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!-- |
|||
-- add subst prefix, if subst=yes given |
|||
-->{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!-- |
|||
-- begin boldface if bold=yes given |
|||
-->{{#if:{{{bold|}}}|'''}}<!-- |
|||
-- begin link if not nolink=yes; add any LANG and SISTER prefixes |
|||
-->{{#if:{{{nolink|}}}||{{!(}}{{!(}}{{{LANG|}}}{{{SISTER|}}}<!-- |
|||
-- specify page to link to (unless nolink=yes) |
|||
-->{{#if:{{{1|}}}|{{#if:{{{anypage|}}}||{{ns:Template}}:}}{{{1|}}}|{{FULLPAGENAME}}}}{{!}}}}<!-- |
|||
-- opening brace if braceinside=yes |
|||
-->{{#if:{{{braceinside|}}}|<nowiki>{{</nowiki>}}<!-- |
|||
-- surface text of link |
|||
-->{{{alttext|{{{1|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}}<!-- |
|||
-- closing brace if braceinside=yes |
|||
-->{{#if:{{{braceinside|}}}|<nowiki>}}</nowiki>}}<!-- |
|||
-- end of link, unless nolink=yes |
|||
-->{{#if:{{{nolink|}}}||]]}}<!-- |
|||
-- end boldface if bold=yes given |
|||
-->{{#if:{{{bold|}}}|'''}}<!-- |
|||
-- begin italic style if italic=yes given |
|||
-->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!-- |
|||
-- add the remaining parameters |
|||
-->{{#ifeq:{{{2|}}}|{{{2|x}}}||{{{2}}}}}<!-- |
|||
-->{{#ifeq:{{{3|}}}|{{{3|x}}}||{{{3}}}}}<!-- |
|||
-->{{#ifeq:{{{4|}}}|{{{4|x}}}||{{{4}}}}}<!-- |
|||
-->{{#ifeq:{{{5|}}}|{{{5|x}}}||{{{5}}}}}<!-- |
|||
-->{{#ifeq:{{{6|}}}|{{{6|x}}}||{{{6}}}}}<!-- |
|||
-->{{#ifeq:{{{7|}}}|{{{7|x}}}||{{{7}}}}}<!-- |
|||
-->{{#ifeq:{{{8|}}}|{{{8|x}}}||{{{8}}}}}<!-- |
|||
-->{{#ifeq:{{{9|}}}|{{{9|x}}}||{{{9}}}}}<!-- |
|||
-->{{#ifeq:{{{10|}}}|{{{10|x}}}||{{{10}}}}}<!-- |
|||
-->{{#ifeq:{{{11|}}}|{{{11|x}}}||{{{11}}}}}<!-- |
|||
-->{{#if:{{{12|}}}||''...''}}<!-- |
|||
-- end italic style if italic=yes given |
|||
-->{{#if:{{{italic|}}}|</span>}}<!-- |
|||
-- closing brace unless braceinside=yes |
|||
-->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!-- |
|||
-- end code style if code=yes or tt=yes given |
|||
-->{{#if:{{{code|}}}{{{tt|}}}|</code>}}<!-- |
|||
-- end |
|||
--></includeonly><noinclude> |
|||
{{Documentation}} |
{{Documentation}} |
||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
|||
</noinclude> |
</noinclude> |
Latest revision as of 01:09, 21 March 2022
{{Template:Tlg}}