Difference between revisions of "Template:Tlg"
From The Broken Dagger Wiki
m (use … for elenth parameter) |
m (32 revisions) |
||
| (6 intermediate revisions by 5 users not shown) | |||
| Line 2: | Line 2: | ||
-- begin span of class "nowrap" if nowrap=yes | -- begin span of class "nowrap" if nowrap=yes | ||
-->{{#if:{{{nowrap|}}}|<span class="nowrap">}}<!-- | -->{{#if:{{{nowrap|}}}|<span class="nowrap">}}<!-- | ||
| − | -- begin | + | -- begin code style if code=yes or tt=yes |
| − | -->{{#if:{{{ | + | -->{{#if:{{{code|{{{tt|}}}}}}|<code>}}<!-- |
-- opening brace unless braceinside=yes | -- opening brace unless braceinside=yes | ||
-->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!-- | -->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!-- | ||
| 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 | ||
| Line 51: | Line 55: | ||
-->{{#ifeq:{{{10|¬}}}|¬|||{{#tag:nowiki|{{{10}}}}}}}<!-- | -->{{#ifeq:{{{10|¬}}}|¬|||{{#tag:nowiki|{{{10}}}}}}}<!-- | ||
-->{{#ifeq:{{{11|¬}}}|¬|||{{#tag:nowiki|{{{11}}}}}}}<!-- | -->{{#ifeq:{{{11|¬}}}|¬|||{{#tag:nowiki|{{{11}}}}}}}<!-- | ||
| − | -->{{#if:{{{12|}}}|| | + | -->{{#if:{{{12|}}}||…}}<!-- |
-- end italic style if italic=yes | -- end italic style if italic=yes | ||
| Line 58: | Line 62: | ||
-->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!-- | -->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!-- | ||
-- end code style if code=yes or tt=yes | -- end code style if code=yes or tt=yes | ||
| − | -->{{#if:{{{code| | + | -->{{#if:{{{code|{{{tt|}}}}}}|</code>}}<!-- |
-- end span of class "nowrap" if nowrap=yes | -- end span of class "nowrap" if nowrap=yes | ||
-->{{#if:{{{nowrap|}}}|</span>}}<!-- | -->{{#if:{{{nowrap|}}}|</span>}}<!-- | ||
Latest revision as of 09:34, 13 July 2014
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}