Template:Tlg: Difference between revisions
Jump to navigation
Jump to search
w:en>Sladen |
w:en>Liflon (update brace inclusion in the link, per Template:Tn) |
||
Line 14: | Line 14: | ||
-->{{#if:{{{nolink|}}} | -->{{#if:{{{nolink|}}} | ||
|<!-- nolink=yes --> | |<!-- nolink=yes --> | ||
|{{!((}}:<!-- opening brackets of link | |{{#if:{{{braceinside|}}}|<nowiki>{</nowiki>}}<!-- first opening brace before link if braceinside=yes | ||
-->{{!((}}:<!-- opening brackets of link | |||
-->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning --> | -->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning --> | ||
|: | |: | ||
Line 26: | Line 27: | ||
-- create link text | -- create link text | ||
-- opening brace if braceinside=yes | -- second opening brace if braceinside=yes | ||
-->{{#if:{{{braceinside|}}}|<nowiki> | -->{{#if:{{{braceinside|}}}|<nowiki>{</nowiki>}}<!-- | ||
-- surface text of link | -- surface text of link | ||
-->{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}<!-- | -->{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}<!-- | ||
-- closing brace if braceinside=yes | -- first closing brace if braceinside=yes | ||
-->{{#if:{{{braceinside|}}}|<nowiki> | -->{{#if:{{{braceinside|}}}|<nowiki>}</nowiki>}}<!-- | ||
-- end of link, unless nolink=yes | -- end of link, unless nolink=yes | ||
-->{{#if:{{{nolink|}}}||]]}}<!-- | -->{{#if:{{{nolink|}}}||]]<!-- | ||
-- second closing brace after link if braceinside=yes | |||
-->{{#if:{{{braceinside|}}}|<nowiki>}</nowiki>}}<!-- | |||
-->}}<!-- | |||
-- end boldface if bold=yes | -- end boldface if bold=yes |
Revision as of 09:41, 25 December 2013
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}