Template:Function wrapped/component/item: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#switch: {{#explode:{{{list}}} |//| {{#expr:{{{1}}} + 1}} }}
<includeonly>
  |table = { {{Function_wrapped/component | {{#explode:{{{list}}} |//| {{#expr:{{{1}}} + 1}} }}
{{#switch: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }}
  |{{#ifexpr:{{#if:{{{1}}}|1|0}} or {{#if:{{{2}}}|1|0}}
  |table     = {{#ifexpr: {{#if: {{#explode: {{{list}}} |//| {{{1}}} }} | 1 | 0 }} or {{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | 1 | 0 }}
  |{{#if:{{{3|}}}|{{nbsp}}[|}}{{#if:{{{4|}}}|,|}}{{#if:{{{2}}}|{{nbsp|{{{4}}}}}{{{2}}}|}}{{#if:{{{1}}}|{{nbsp|{{{4}}}}}'''''{{{1}}}'''''|}}{{#if:{{{3|}}}|]|}}
              |{{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 2}} }} |{{nbsp}}[|}} {{
  |
                  #ifexpr: {{{1}}} > 0|,|}} {{
  }}
                  #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | {{nbsp}}{{{2}}} | }} {{
                  #if: {{#explode: {{{list}}} |//| {{{1}}} }} |{{nbsp}}{ {{Function_wrapped/component | list={{#explode: {{{list}}} |//| {{{1}}} }} }} }|}} {{
                  #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 2}} }} |[|}}
              |}}  
  | #default = {{#ifexpr: {{#if: {{#explode: {{{list}}} |//| {{{1}}} }} | 1 | 0 }} or {{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | 1 | 0 }}
              |{{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 2}} }} |{{nbsp}}[|}} {{
                  #ifexpr: {{{1}}} > 0|,|}} {{
                  #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | {{nbsp}}{{{2}}} | }} {{
                  #if: {{#explode: {{{list}}} |//| {{{1}}} }} |{{nbsp}}'''''{{#explode: {{{list}}} |//| {{{1}}} }}'''''|}} {{
                  #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 2}} }} |[|}}
              |}}
}}</includeonly>
}}</includeonly>

Revision as of 05:01, 7 April 2011