Difference between revisions of "Template:Function wrapped/component/item"
From Vendetta Lua
(removed switch block (not needed) and removed checking for optional status in arguments (testing)) |
|||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | + | {{#ifexpr: {{#if: {{#explode: {{{list}}} |//| {{{1}}} }} | 1 | 0 }} or {{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | 1 | 0 }} | |
− | + | |{{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 3}} }} |{{nbsp}}[|}} {{ | |
− | + | #ifexpr: {{{1}}} > 0|,|}} {{ | |
− | + | #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | {{nbsp}}{{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | }} {{ | |
− | + | #if: {{#explode: {{{list}}} |//| {{{1}}} }} |{{nbsp}}'''''{{#explode: {{{list}}} |//| {{{1}}} }}'''''|}} {{ | |
− | + | #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 3}} }} |]|}} | |
− | + | |}}</includeonly> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }}</includeonly> | + |