Difference between revisions of "Template:Tlg"
From MINR.ORG WIKI
(Allow empty parameters to be specified (whatever this is good for). At least it simplifies documentation.) |
Rickyboy320 (talk | contribs) m (36 revisions imported: Import Template Tlx and subtemplates) |
||
(18 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
− | + | -->{{#if:{{{nowrap|}}} |<span class="nowrap">}}<!-- | |
− | <span | + | -->{{#if:{{{code|{{{tt|}}}}}} |<code> |{{#if:{{{plaincode|}}}|<code style="border:none;background:transparent;">}} }}<!-- |
− | + | -->{{#if:{{{kbd|}}} |<kbd>}}<!-- | |
− | + | -->{{#if:{{{nowrapname|}}} |<span class="nowrap">}}<!-- | |
− | -->{{#if:{{{ | + | -->{{#if:{{{braceinside|}}} | |<nowiki>{{</nowiki>}}<!-- |
− | + | -->{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}<!-- | |
− | -->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!-- | + | |
− | + | -->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- | |
− | -->{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!-- | + | -->{{#if:{{{nolink|}}} |<!--then omit template link, else: |
− | + | -->| {{#if:{{{braceinside|}}} |<nowiki>{</nowiki>}}<!-- | |
− | -->{{#if:{{{bold|}}}|'''}}<!-- | + | -->{{!((}}:<!--(start building link with "[[:") |
− | + | -->{{#ifeq:{{padleft:|1|{{{1}}}}}|: <!--i.e. if {{{1}}}'s first character is a colon, | |
− | -->{{#if:{{{ | + | then:--> |{{FULLPAGENAME:{{{1}}}}}<!-- |
− | + | else:--> |{{#switch:{{NAMESPACE:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}}} | |
− | -->{{#if:{{{1|}}}|{{#if:{{{ | + | | {{ns:0}} = {{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|{{PAGENAME}}}} |
− | + | | #default = {{#if:{{{1|}}}|{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME}}}} | |
− | -->{{#if:{{{braceinside|}}}|<nowiki> | + | }}}}<!-- |
− | + | -->{{!}}<!--(pipe between link and label, i.e. [[:link|label]]) | |
− | -->{{{alttext|{{{1|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME | + | -->}}<!-- |
− | + | -->{{#if:{{{braceinside|}}} |<nowiki>{</nowiki>}}<!-- | |
− | -->{{#if:{{{braceinside|}}}|<nowiki> | + | label / template name: |
− | + | -->{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}<!-- | |
− | -->{{#if:{{{ | + | -->{{#if:{{{braceinside|}}} |<nowiki>}</nowiki>}}<!-- |
− | + | -->{{#if:{{{nolink|}}} | |<!-- | |
− | -->{{#if:{{{bold|}}}|'''}}<!-- | + | -->{{!))}}<!--(end link) |
− | + | -->{{#if:{{{braceinside|}}} |<nowiki>}</nowiki>}}<!-- | |
− | -->{{#if:{{{italic|}}}|<span style="font-style: italic;">}}<!-- | + | -->}}<!-- |
− | + | -->{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}<!-- | |
− | -->{{#ifeq:{{{2|}}}| | + | -->{{#if:{{{nowrapname|}}} |</span>}}<!-- |
− | -->{{#ifeq:{{{3|}}}| | + | |
− | -->{{#ifeq:{{{4|}}}| | + | -->{{#if:{{{italic|{{{italics|}}}}}} |<span style="font-style:italic;">}}<!-- |
− | -->{{#ifeq:{{{5|}}}| | + | -->{{#ifeq:{{{2|¬}}}|¬ | ||{{#tag:nowiki|{{{2}}}}}}}<!-- |
− | -->{{#ifeq:{{{6|}}}| | + | -->{{#ifeq:{{{3|¬}}}|¬ | ||{{#tag:nowiki|{{{3}}}}}}}<!-- |
− | -->{{#ifeq:{{{7|}}}| | + | -->{{#ifeq:{{{4|¬}}}|¬ | ||{{#tag:nowiki|{{{4}}}}}}}<!-- |
− | -->{{#ifeq:{{{8|}}}| | + | -->{{#ifeq:{{{5|¬}}}|¬ | ||{{#tag:nowiki|{{{5}}}}}}}<!-- |
− | -->{{#ifeq:{{{9|}}}| | + | -->{{#ifeq:{{{6|¬}}}|¬ | ||{{#tag:nowiki|{{{6}}}}}}}<!-- |
− | -->{{#ifeq:{{{10|}}}| | + | -->{{#ifeq:{{{7|¬}}}|¬ | ||{{#tag:nowiki|{{{7}}}}}}}<!-- |
− | -->{{#ifeq:{{{11|}}}| | + | -->{{#ifeq:{{{8|¬}}}|¬ | ||{{#tag:nowiki|{{{8}}}}}}}<!-- |
− | -->{{#if:{{{12|}}}|| | + | -->{{#ifeq:{{{9|¬}}}|¬ | ||{{#tag:nowiki|{{{9}}}}}}}<!-- |
− | + | -->{{#ifeq:{{{10|¬}}}|¬ | ||{{#tag:nowiki|{{{10}}}}}}}<!-- | |
− | -->{{#if:{{{italic|}}}|</span>}}<!-- | + | -->{{#ifeq:{{{11|¬}}}|¬ | ||{{#tag:nowiki|{{{11}}}}}}}<!-- |
− | + | -->{{#if:{{{12|}}} ||…}}<!-- | |
− | -->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!-- | + | -->{{#if:{{{italic|{{{italics|}}}}}} |</span>}}<!-- |
− | + | ||
− | -->{{#if:{{{code|}}}{{{ | + | -->{{#if:{{{braceinside|}}} | |<nowiki>}}</nowiki>}}<!-- |
− | + | -->{{#if:{{{kbd|}}} |</kbd>}}<!-- | |
+ | -->{{#if:{{{code|{{{tt|}}}}}}{{{plaincode|}}} |</code>}}<!-- | ||
+ | -->{{#if:{{{nowrap|}}} |</span>}}<!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
− | |||
</noinclude> | </noinclude> |