T: Difference between revisions

From SL Pro Wrestling Wiki
/>Dinoguy1000-fduser
add whitespace to code; allow linking to non-Template-namespace pages (including pages in the main namespace, by including a colon at the beginning of the page's name)
/>Dinoguy1000-fduser
add a bit of padding between the brackets and the template name, and around the pipes if extra parameters are given
Line 1: Line 1:
{{ #if: {{{style|}}} | <code> }}<nowiki>{{</nowiki>{{ #if: {{{prefix|}}} | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : || {{ #if: {{NAMESPACE:{{{1}}}}} || {{ns:10}} }} }}:{{{1}}}|{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:{{{1}}}}} | {{ns:10}} | {{PAGENAME:{{{1}}}}} | {{{1}}} }}]]{{ #if: {{{2|}}}
{{ #if: {{{style|}}} | <code> }}<nowiki>{{</nowiki><span style="padding: 0 0.1em;">{{ #if: {{{prefix|}}} | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : || {{ #if: {{NAMESPACE:{{{1}}}}} || {{ns:10}} }} }}:{{{1}}}|{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : | : }}{{ #ifeq: {{NAMESPACE:{{{1}}}}} | {{ns:10}} | {{PAGENAME:{{{1}}}}} | {{{1}}} }}]]</span>{{ #if: {{{2|}}}
   | &#124;<span style="color:gray;">''{{{2}}}''</span> }}{{ #if: {{{3|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{2}}}''</span> }}{{ #if: {{{3|}}}
   | &#124;<span style="color:gray;">''{{{3}}}''</span> }}{{ #if: {{{4|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{3}}}''</span> }}{{ #if: {{{4|}}}
   | &#124;<span style="color:gray;">''{{{4}}}''</span> }}{{ #if: {{{5|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{4}}}''</span> }}{{ #if: {{{5|}}}
   | &#124;<span style="color:gray;">''{{{5}}}''</span> }}{{ #if: {{{6|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{5}}}''</span> }}{{ #if: {{{6|}}}
   | &#124;<span style="color:gray;">''{{{6}}}''</span> }}{{ #if: {{{7|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{6}}}''</span> }}{{ #if: {{{7|}}}
   | &#124;<span style="color:gray;">''{{{7}}}''</span> }}{{ #if: {{{8|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{7}}}''</span> }}{{ #if: {{{8|}}}
   | &#124;<span style="color:gray;">''{{{8}}}''</span> }}{{ #if: {{{9|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{8}}}''</span> }}{{ #if: {{{9|}}}
   | &#124;<span style="color:gray;">''{{{9}}}''</span> }}{{ #if: {{{10|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{9}}}''</span> }}{{ #if: {{{10|}}}
   | &#124;<span style="color:gray;">''{{{10}}}''</span> }}{{ #if: {{{11|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{10}}}''</span> }}{{ #if: {{{11|}}}
   | &#124;<span style="color:gray;">''{{{11}}}''</span> }}{{ #if: {{{12|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{11}}}''</span> }}{{ #if: {{{12|}}}
   | &#124;<span style="color:gray;">''{{{12}}}''</span> }}{{ #if: {{{13|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{12}}}''</span> }}{{ #if: {{{13|}}}
   | &#124;<span style="color:gray;">''{{{13}}}''</span> }}{{ #if: {{{14|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{13}}}''</span> }}{{ #if: {{{14|}}}
   | &#124;<span style="color:gray;">''{{{14}}}''</span> }}{{ #if: {{{15|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{14}}}''</span> }}{{ #if: {{{15|}}}
   | &#124;<span style="color:gray;">''{{{15}}}''</span> }}{{ #if: {{{16|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{15}}}''</span> }}{{ #if: {{{16|}}}
   | &#124;<span style="color:gray;">''{{{16}}}''</span> }}{{ #if: {{{17|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{16}}}''</span> }}{{ #if: {{{17|}}}
   | &#124;<span style="color:gray;">''{{{17}}}''</span> }}{{ #if: {{{18|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{17}}}''</span> }}{{ #if: {{{18|}}}
   | &#124;<span style="color:gray;">''{{{18}}}''</span> }}{{ #if: {{{19|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{18}}}''</span> }}{{ #if: {{{19|}}}
   | &#124;<span style="color:gray;">''{{{19}}}''</span> }}{{ #if: {{{20|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{19}}}''</span> }}{{ #if: {{{20|}}}
   | &#124;<span style="color:gray;">''{{{20}}}''</span> }}{{ #if: {{{21|}}}
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{20}}}''</span> }}{{ #if: {{{21|}}}
   | &#124;<span style="color:gray;">''{{{21}}}''</span> }}<nowiki>}}</nowiki>{{ #if: {{{style|}}} | </code> }}<noinclude>{{documentation}}</noinclude>
   | &#124;<span style="padding: 0 0.2em; color: gray;">''{{{21}}}''</span> }}<nowiki>}}</nowiki>{{ #if: {{{style|}}} | </code> }}<noinclude>{{documentation}}</noinclude>

Revision as of 04:38, 15 July 2016

{{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : || {{ #if: || Template }} }}:{{{1}}}|{{ #ifeq: {{ #sub: {{{1}}} | 0 | 1 }} | : | : }}{{ #ifeq: | Template | | {{{1}}} }}]]{{ #if:

 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }}Template:Documentation