Difference between revisions of "Template:Tlg"
From The Broken Dagger Wiki
(add "nowrap" parameter (prevents breaking of output)) |
m (32 revisions) |
||
| (8 intermediate revisions by 6 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 41: | Line 45: | ||
-- add parameters | -- add parameters | ||
| − | -->{{#ifeq:{{{2|¬}}}|¬|||{{{2}}}}}<!-- | + | -->{{#ifeq:{{{2|¬}}}|¬|||{{#tag:nowiki|{{{2}}}}}}}<!-- |
| − | -->{{#ifeq:{{{3|¬}}}|¬|||{{{3}}}}}<!-- | + | -->{{#ifeq:{{{3|¬}}}|¬|||{{#tag:nowiki|{{{3}}}}}}}<!-- |
| − | -->{{#ifeq:{{{4|¬}}}|¬|||{{{4}}}}}<!-- | + | -->{{#ifeq:{{{4|¬}}}|¬|||{{#tag:nowiki|{{{4}}}}}}}<!-- |
| − | -->{{#ifeq:{{{5|¬}}}|¬|||{{{5}}}}}<!-- | + | -->{{#ifeq:{{{5|¬}}}|¬|||{{#tag:nowiki|{{{5}}}}}}}<!-- |
| − | -->{{#ifeq:{{{6|¬}}}|¬|||{{{6}}}}}<!-- | + | -->{{#ifeq:{{{6|¬}}}|¬|||{{#tag:nowiki|{{{6}}}}}}}<!-- |
| − | -->{{#ifeq:{{{7|¬}}}|¬|||{{{7}}}}}<!-- | + | -->{{#ifeq:{{{7|¬}}}|¬|||{{#tag:nowiki|{{{7}}}}}}}<!-- |
| − | -->{{#ifeq:{{{8|¬}}}|¬|||{{{8}}}}}<!-- | + | -->{{#ifeq:{{{8|¬}}}|¬|||{{#tag:nowiki|{{{8}}}}}}}<!-- |
| − | -->{{#ifeq:{{{9|¬}}}|¬|||{{{9}}}}}<!-- | + | -->{{#ifeq:{{{9|¬}}}|¬|||{{#tag:nowiki|{{{9}}}}}}}<!-- |
| − | -->{{#ifeq:{{{10|¬}}}|¬|||{{{10}}}}}<!-- | + | -->{{#ifeq:{{{10|¬}}}|¬|||{{#tag:nowiki|{{{10}}}}}}}<!-- |
| − | -->{{#ifeq:{{{11|¬}}}|¬|||{{{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}}}}}}