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}}} + | {{#switch: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | ||
|{{#ifexpr:{{#if:{{{1}}}|1|0}} or {{#if:{{{ | |table = {{#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}}{ {{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> |