Line 1: |
Line 1: |
| <includeonly><!-- | | <includeonly><!-- |
− | -- begin span of class "nowrap" if nowrap=yes
| + | -->{{#if:{{{nowrap|}}} |<span class="nowrap">}}<!-- |
− | -->{{#if:{{{nowrap|}}}|<span class="nowrap">}}<!-- | + | -->{{#if:{{{code|{{{tt|}}}}}} |<code> |{{#if:{{{plaincode|}}}|<code style="border:none;background:transparent;">}} }}<!-- |
− | -- begin tt style if tt=yes or code=yes
| + | -->{{#if:{{{kbd|}}} |<kbd>}}<!-- |
− | -->{{#if:{{{tt|}}}{{{code|}}}|<code>}}<!-- | + | -->{{#if:{{{nowrapname|}}} |<span class="nowrap">}}<!-- |
− | -- opening brace unless braceinside=yes
| + | -->{{#if:{{{brace|}}}{{{braceinside|}}} | |<nowiki>{{</nowiki>}}<!-- |
− | -->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!-- | + | -->{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!-- |
− | -- add subst prefix, if subst=yes
| |
− | -->{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!-- | |
− | -- begin boldface if bold=yes
| |
− | -->{{#if:{{{bold|}}}|'''}}<!-- | |
| | | |
− | -- create actual link (if not nolink=yes) | + | -->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- |
− | -->{{#if:{{{nolink|}}} | + | -->{{#if:{{{nolink|}}} |<!--then omit template link, else: |
− | |<!-- nolink=yes -->
| + | -->| {{#if:{{{braceinside|}}} |<nowiki>{</nowiki>}}<!-- |
− | |{{#if:{{{braceinside|}}}|<nowiki>{</nowiki>}}<!-- first opening brace before link if braceinside=yes
| + | -->{{!((}}:<!--(start building link with "[[:") |
− | -->{{!((}}:<!-- opening brackets of link
| + | -->{{#ifeq:{{padleft:|1|{{{1}}}}}|: <!--i.e. if {{{1}}}'s first character is a colon, |
− | -->{{#ifeq:{{padleft:|1|{{{1}}}}} <!-- check whether we have a colon at the beginning -->
| + | then:--> |{{FULLPAGENAME:{{{1}}}}}<!-- |
− | |:
| + | else:--> |{{#switch:{{NAMESPACE:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}}} |
− | |{{FULLPAGENAME:{{{1}}}}} <!-- if yes: link to article ns or assume other valid link, e.g. Interwikilink -->
| + | | {{ns:0}} = {{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|{{PAGENAME}}}} |
− | |{{#switch:{{NAMESPACE:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}}}
| + | | #default = {{#if:{{{1|}}}|{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME}}}} |
− | |{{ns:0}}={{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|{{PAGENAME}}}} <!-- No ns given: we want to link to template ns -->
| + | }}}}<!-- |
− | |#default={{#if:{{{1|}}}|{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME}}}}<!--
| + | -->{{!}}<!--(pipe between link and label, i.e. [[:link|label]]) |
− | -->}}<!--
| + | -->}}<!-- |
− | -->}}{{!}}<!-- <<--- pipe character in link
| + | -->{{#if:{{{brace|}}} |<nowiki>{{</nowiki>}}<!-- |
− | -->}}<!-- | + | -->{{#if:{{{braceinside|}}} |<nowiki>{</nowiki>}}<!-- |
| + | label / template name: |
| + | -->{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}<!-- |
| + | -->{{#if:{{{brace|}}} |<nowiki>}}</nowiki>}}<!-- |
| + | -->{{#if:{{{braceinside|}}} |<nowiki>}</nowiki>}}<!-- |
| + | -->{{#if:{{{nolink|}}} | |<!-- |
| + | -->{{))!}}<!--(end link) |
| + | -->{{#if:{{{braceinside|}}} |<nowiki>}</nowiki>}}<!-- |
| + | -->}}<!-- |
| + | -->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- |
| + | -->{{#if:{{{nowrapname|}}} |</span>}}<!-- |
| | | |
− | -- create link text | + | -->{{#if:{{{italic|{{{italics|}}}}}} |<span style="font-style:italic;">}}<!-- |
− | -- second opening brace if braceinside=yes
| + | -->{{#ifeq:{{{2|¬}}}|¬ | ||{{#tag:nowiki|{{{2}}}}}}}<!-- |
− | -->{{#if:{{{braceinside|}}}|<nowiki>{</nowiki>}}<!-- | + | -->{{#ifeq:{{{3|¬}}}|¬ | ||{{#tag:nowiki|{{{3}}}}}}}<!-- |
− | -- surface text of link
| + | -->{{#ifeq:{{{4|¬}}}|¬ | ||{{#tag:nowiki|{{{4}}}}}}}<!-- |
− | -->{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}<!-- | + | -->{{#ifeq:{{{5|¬}}}|¬ | ||{{#tag:nowiki|{{{5}}}}}}}<!-- |
− | -- first closing brace if braceinside=yes
| + | -->{{#ifeq:{{{6|¬}}}|¬ | ||{{#tag:nowiki|{{{6}}}}}}}<!-- |
− | -->{{#if:{{{braceinside|}}}|<nowiki>}</nowiki>}}<!-- | + | -->{{#ifeq:{{{7|¬}}}|¬ | ||{{#tag:nowiki|{{{7}}}}}}}<!-- |
− | -- end of link, unless nolink=yes
| + | -->{{#ifeq:{{{8|¬}}}|¬ | ||{{#tag:nowiki|{{{8}}}}}}}<!-- |
− | -->{{#if:{{{nolink|}}}||]]<!-- | + | -->{{#ifeq:{{{9|¬}}}|¬ | ||{{#tag:nowiki|{{{9}}}}}}}<!-- |
− | -- second closing brace after link if braceinside=yes
| + | -->{{#ifeq:{{{10|¬}}}|¬ | ||{{#tag:nowiki|{{{10}}}}}}}<!-- |
− | -->{{#if:{{{braceinside|}}}|<nowiki>}</nowiki>}}<!-- | + | -->{{#ifeq:{{{11|¬}}}|¬ | ||{{#tag:nowiki|{{{11}}}}}}}<!-- |
− | -->}}<!-- | + | -->{{#if:{{{12|}}} ||…}}<!-- |
| + | -->{{#if:{{{italic|{{{italics|}}}}}} |</span>}}<!-- |
| | | |
− | -- end boldface if bold=yes
| + | -->{{#if:{{{brace|}}}{{{braceinside|}}} | |<nowiki>}}</nowiki>}}<!-- |
− | -->{{#if:{{{bold|}}}|'''}}<!-- | + | -->{{#if:{{{kbd|}}} |</kbd>}}<!-- |
− | -- begin italic style if italic=yes
| + | -->{{#if:{{{code|{{{tt|}}}}}}{{{plaincode|}}} |</code>}}<!-- |
− | -->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!--
| + | -->{{#if:{{{nowrap|}}} |</span>}}<!-- |
− | | |
− | -- add parameters
| |
− | -->{{#ifeq:{{{2|¬}}}|¬|||{{#tag:nowiki|{{{2}}}}}}}<!--
| |
− | -->{{#ifeq:{{{3|¬}}}|¬|||{{#tag:nowiki|{{{3}}}}}}}<!--
| |
− | -->{{#ifeq:{{{4|¬}}}|¬|||{{#tag:nowiki|{{{4}}}}}}}<!--
| |
− | -->{{#ifeq:{{{5|¬}}}|¬|||{{#tag:nowiki|{{{5}}}}}}}<!--
| |
− | -->{{#ifeq:{{{6|¬}}}|¬|||{{#tag:nowiki|{{{6}}}}}}}<!--
| |
− | -->{{#ifeq:{{{7|¬}}}|¬|||{{#tag:nowiki|{{{7}}}}}}}<!-- | |
− | -->{{#ifeq:{{{8|¬}}}|¬|||{{#tag:nowiki|{{{8}}}}}}}<!--
| |
− | -->{{#ifeq:{{{9|¬}}}|¬|||{{#tag:nowiki|{{{9}}}}}}}<!--
| |
− | -->{{#ifeq:{{{10|¬}}}|¬|||{{#tag:nowiki|{{{10}}}}}}}<!--
| |
− | -->{{#ifeq:{{{11|¬}}}|¬|||{{#tag:nowiki|{{{11}}}}}}}<!--
| |
− | -->{{#if:{{{12|}}}||…}}<!--
| |
− | | |
− | -- end italic style if italic=yes
| |
− | -->{{#if:{{{italic|}}}|</span>}}<!-- | |
− | -- closing brace unless braceinside=yes
| |
− | -->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!--
| |
− | -- end code style if code=yes or tt=yes
| |
− | -->{{#if:{{{code|}}}{{{tt|}}}|</code>}}<!--
| |
− | -- end span of class "nowrap" if nowrap=yes
| |
− | -->{{#if:{{{nowrap|}}}|</span>}}<!-- | |
− | -- end
| |
| --></includeonly><noinclude> | | --></includeonly><noinclude> |
| {{Documentation}} | | {{Documentation}} |
− | <!-- Add categories and interwikis to the /doc subpage, not here! -->
| |
| </noinclude> | | </noinclude> |