Template:Code: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Undo revision 1766163 by Thejoaqui777 (talk) Error, I was porting it to another wiki. Sorry.
Line 1: Line 1:
<includeonly>{{ #vardefine: delimiter | {{
<includeonly>{{#invoke:delimited tag|output|tag=code}}</includeonly><noinclude><noinclude>
  #switch: {{{delimiter|}}}{{{d|}}}
  | , = ,&nbsp;
  | and = &#32;and&nbsp;
  | &amp; = &nbsp;&amp;&nbsp;
  | or = &#32;or&nbsp;
  | to = &#32;to&nbsp;
  | newline | br = <br/>
  | list | list-newline | bullet | * = <br/>
{{{list-level|**}}}
  | and-list = &#32;and<br/>
{{{list-level|**}}}
  | comma-list = ,<br/>
{{{list-level|**}}}
  | none = <nowiki/>
  | #default = {{{delimiter|&nbsp;}}}
  }}
}}{{
  #vardefine: mid-delimiter | {{
    #switch: {{{delimiter|}}}{{{d|}}}
    | and | &amp; | or = ,&#32;
    | and-list = ,<br>
{{{list-level|**}}}
    | #default = {{#var: delimiter}}
  }}
}}{{
  #vardefine: serial | {{
    #switch: {{{delimiter|}}}{{{d|}}}
    | and | or | and-list = ,
  }}
}}<span style="word-break: break-word;"><code>{{{1}}}</code>{{
    #if: {{{2|}}} | {{ #if: {{{3|}}} |{{#var: mid-delimiter}} | {{#var: delimiter}} }}<code>{{{2}}}</code>
}}{{ #if: {{{3|}}} | {{ #if: {{{4|}}} |{{#var: mid-delimiter}} | {{#var:serial}}{{#var: delimiter}} }}<code>{{{3}}}</code>
}}{{ #if: {{{4|}}} | {{ #if: {{{5|}}} |{{#var: mid-delimiter}} | {{#var:serial}}{{#var: delimiter}} }}<code>{{{4}}}</code>
}}{{ #if: {{{5|}}} | {{ #if: {{{6|}}} |{{#var: mid-delimiter}} | {{#var:serial}}{{#var: delimiter}} }}<code>{{{5}}}</code>
}}{{ #if: {{{6|}}} | {{ #if: {{{7|}}} |{{#var: mid-delimiter}} | {{#var:serial}}{{#var: delimiter}} }}<code>{{{6}}}</code>
}}{{ #if: {{{7|}}} | {{ #if: {{{8|}}} |{{#var: mid-delimiter}} | {{#var:serial}}{{#var: delimiter}} }}<code>{{{7}}}</code>
}}{{ #if: {{{8|}}} | {{ #if: {{{9|}}} |{{#var: mid-delimiter}} | {{#var:serial}}{{#var: delimiter}} }}<code>{{{8}}}</code>
}}{{ #if: {{{9|}}} | {{ #if: {{{10|}}}|{{#var: mid-delimiter}} | {{#var:serial}}{{#var: delimiter}} }}<code>{{{9}}}</code>
}}{{ #if: {{{10|}}}| {{#var:serial}}{{ #var: delimiter }}<code>{{{10}}}</code>
}}{{  #if: {{{11|}}}|<span style="color:red">'''Error:''' Too many parameters (maximum: 10)</span>[[Category:Error with code template]]
}}</span></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude></noinclude>

Revision as of 03:50, 5 December 2020

[create] [refresh]Documentation
This template has no documentation. If you know how to use this template, please create it.