Template:Code: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
mNo edit summary
default to no wordbreak and allow "wb" shorthand as well
 
(31 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{ #vardefine: delimiter | {{
<includeonly>{{#invoke:delimited tag|output|1={{{1|{{{code|}}}}}}|tag=code|wordbreak={{{wordbreak|{{{wb|}}}}}}}}</includeonly><noinclude>
  #switch: {{{delimiter|}}}{{{delimit|}}}{{{d|}}}
  | , | pretty = ,&nbsp;
  | and = &nbsp;and&nbsp;
  | &amp; = &nbsp;&amp;&nbsp;
  | or = &nbsp;or&nbsp;
  | to = &nbsp;to&nbsp;
  | newline = <br/>
  | list | list-newline | bullet | * = <br/>
{{{list-level|**}}}
  | none = <nowiki/>
  | #default = {{{delimiter|&nbsp;}}}
  }}
}}{{ #vardefine: finaldelimiter | {{ #ifeq: {{{delimiter}}}{{{delimit|}}}{{{d|}}} | pretty | ,&nbsp;and&nbsp; | {{ #var: delimiter }} }}
}}<code>{{{1}}}</code>{{ #if: {{{2|}}} | {{ #var: {{ #if: {{{3|}}} || final }}delimiter }}<code>{{{2}}}</code>
}}{{ #if: {{{3|}}} | {{ #var: {{ #if: {{{4|}}} || final }}delimiter }}<code>{{{3}}}</code>
}}{{ #if: {{{4|}}} | {{ #var: {{ #if: {{{5|}}} || final }}delimiter }}<code>{{{4}}}</code>
}}{{ #if: {{{5|}}} | {{ #var: {{ #if: {{{6|}}} || final }}delimiter }}<code>{{{5}}}</code>
}}{{ #if: {{{6|}}} | {{ #var: {{ #if: {{{7|}}} || final }}delimiter }}<code>{{{6}}}</code>
}}{{ #if: {{{7|}}} | {{ #var: {{ #if: {{{8|}}} || final }}delimiter }}<code>{{{7}}}</code>
}}{{ #if: {{{8|}}} | {{ #var: {{ #if: {{{9|}}} || final }}delimiter }}<code>{{{8}}}</code>
}}{{ #if: {{{9|}}} | {{ #var: {{ #if: {{{10|}}} || final }}delimiter }}<code>{{{9}}}</code>
}}{{ #if: {{{10|}}} | {{ #var: finaldelimiter }}<code>{{{10}}}</code>
}}<noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 12:42, 30 April 2024

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