Template:Template link with parameters: Difference between revisions

    From Nonbinary Wiki
    (Updating to work like {{tlf}}: Now takes 0-8 parameters, shows empty but defined parameters, and prevents line wraps. Tested in /sandbox. See also talk page.)
     
    (13 intermediate revisions by 7 users not shown)
    Line 1: Line 1:
    <span style="white-space:nowrap;">&#123;&#123;{{#if:{{{1|}}}
    <includeonly>{{#Invoke:Template link general|main|nowrap=yes}}</includeonly><noinclude>
    | [[{{ns:Template}}:{{{1}}}|{{{1}}}]] | tlp&#124;... }}<!--
    {{Documentation|1=Template:Tlg/doc
    -->{{#ifeq:{{{2|x}}}|{{{2|}}}| &#124;{{{2}}} }}<!--
    |content = {{tlg/doc|tlp}}
    -->{{#ifeq:{{{3|x}}}|{{{3|}}}| &#124;{{{3}}} }}<!--
    }}
    -->{{#ifeq:{{{4|x}}}|{{{4|}}}| &#124;{{{4}}} }}<!--
    <!-- Add categories to the /doc subpage, not here! -->
    -->{{#ifeq:{{{5|x}}}|{{{5|}}}| &#124;{{{5}}} }}<!--
    -->{{#ifeq:{{{6|x}}}|{{{6|}}}| &#124;{{{6}}} }}<!--
    -->{{#ifeq:{{{7|x}}}|{{{7|}}}| &#124;{{{7}}} }}<!--
    -->{{#ifeq:{{{8|x}}}|{{{8|}}}| &#124;{{{8}}} }}<!--
    -->{{#ifeq:{{{9|x}}}|{{{9|}}}| &#124;{{{9}}} }}<!--
    -->&#125;&#125;</span><noinclude>
     
    {{pp-template|small=yes}}
    {{documentation}}
    <!-- Add categories and interwikis to the /doc subpage, not here! -->
    </noinclude>
    </noinclude>

    Latest revision as of 11:40, 21 May 2021

    Template documentation[create]

    Template:Tlg/doc