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

From Vendetta Lua
Jump to navigationJump to search
Undo revision 2021 by Draugath (Talk)
removed switch block (not needed) and removed checking for optional status in arguments (testing)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#switch: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }}
{{#ifexpr: {{#if: {{#explode: {{{list}}} |//| {{{1}}} }} | 1 | 0 }} or {{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | 1 | 0 }}
|tablee    = {{#ifexpr: {{#if: {{#explode: {{{list}}} |//| {{{1}}} }} | 1 | 0 }} or {{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | 1 | 0 }}
  |{{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 3}} }} |{{nbsp}}[|}} {{
              |{{#if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 2}} }} |{{nbsp}}[|}} {{
    #ifexpr: {{{1}}} > 0|,|}} {{
                  #ifexpr: {{{1}}} > 0|,|}} {{
    #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | {{nbsp}}{{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | }} {{
                  #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 1}} }} | {{nbsp}}{{{2}}} | }} {{
    #if: {{#explode: {{{list}}} |//| {{{1}}} }} |{{nbsp}}'''''{{#explode: {{{list}}} |//| {{{1}}} }}'''''|}} {{
                  #if: {{#explode: {{{list}}} |//| {{{1}}} }} |{{nbsp}}{ {{Function_wrapped/component | list={{#explode: {{{list}}} |//| {{{1}}} }} }} }|}} {{
    #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 3}} }} |]|}}
                  #if: {{#explode: {{{list}}} |//| {{#expr:{{{1}}} + 2}} }} |[|}}
|}}</includeonly>
              |}}  
  | #default = {{#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>

Revision as of 04:58, 18 October 2011