Template:Xbs: Difference between revisions

From 2nd Book
Jump to navigationJump to search
No edit summary
No edit summary
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[{{{1}}} {{{2}}}:{{{3}}}-{{{4}}}]]


{{#vardefine:a|{{{1}}} }}
{{#vardefine:b|{{{2}}} }}
{{#vardefine:c|{{{3}}} }}
{{#vardefine:d|{{{4}}} }}
{{#vardefine:e|{{#expr: {{#var:d}} - {{#var:c}} + 1 }} }}
=1=
{{#for: {{#var:e}} | {{#var:a}} {{#var:b}} $n$ | $n$ }}
=2=
{{#for: {{#var:e}} | {{#vardefine:z$n$}} | $n$}}
{{#var:z$n$}}{{#var:z2}}{{#var:z3}}
=3=
{{#for: {{#var:e}} | {{#var:z$n$}} | $n$}}


{{for loop|&|call = spanbox
=4=
  |pv = font size
  |start=10|stop=52|by=8
  |postfix = px
  |pc1n = 1
  |pc1v = A
  |pc2n = background
  |pc2v = yellow
}}


{{#for: {{#var:e}} | {{#var:a}} {{#var:b}} | $n$ }}


{{#loop: i
| {{{3}}}
| {{#expr: {{{4}}}-{{{3}}}+1}}
| <nowiki />
BBB{{#var:i}}
}}




[[{{{1}}} {{{2}}}:{{{3}}}-{{{4}}}]]


{{#loop: varname
[[{{#var:a}} {{#var:b}}:{{#var:c}}-{{#var:d}}]]
| 4
| 4
| <nowiki />
* This is round {{#var: varname }} and we have {{#expr: 7 - {{#var: varname }} }} more to go
}}

Latest revision as of 18:10, 23 June 2022





1

2

3

4

[[{{{1}}} {{{2}}}:{{{3}}}-{{{4}}}]]

[[{{{1}}} {{{2}}}:{{{3}}}-{{{4}}}]]