User:Davidgothberg/Test21
From Wikipedia, the free encyclopedia
Contents |
[edit] Testing {{main talk other}}
No parameter: ++other++
Demospace = MAIN: ++main++
1 = MM: ++++
1 = MM, 2 = "", 3 = "": ++++
1 = "", 2 = "", 3 = "": ++other++
1 = MM, 2 = TT: ++++
1 = MM, 2 = TT, 3 = OO: ++OO++
ifeq:talk: ++It is not talk!++
ifeq:other: ++It is other!++
1 = M M, 2 = T T, 3 = O O: ++O
O++
Testing with tables:
++
| O1 | O2 |
++
Testing ifeq+tables:
main: ++++
talk: ++++
other:
++
| C1 | C2 |
++
Testing ifeq+wikitables:
other: ++
| C1 | C2 |
++
[edit] Testing hardcoded
Testing ifeq+NAMESPACE+TALKSPACE:
main: ++Not main space.++
talk: ++Not talk space.++
main talk other: ++Other space.++
main talk other, with tables, 01:
++
| C1 | C2 |
++
main: ++Not main space.++
main talk other, with tables, 02:
++
| C1 | C2 |
++
main talk other, 03: other
[edit] Testing {{main talk other flex}}
No parameter: ++other++
Demospace = MAIN: ++main++
1 = MM: ++++
1 = MM, 2 = TT: ++++
1 = MM, 2 = TT, 3 = OO: ++OO++
[edit] Testing if etc
If: b
Ifeq: b
If with escaped wikitable 01:
| C1 | C2 |
If with non-escaped wikitable 02: {
Switch with non-escaped wikitable 01: {
If with HTML table 01:
| C1 | C2 |
Testing with tables:
| O1 | talk |
Testing with numbers: Three
Testing with ambox:
| test |
Numbered but empty parameters: other
Escaped wikitable as numbered parameter:
| O1 | O2 |
[edit] Conclusion
Other if, ifeq, switch and templates do work inside if, ifeq and switch and can be fed as parameters to a template.
Unescaped wikitables do not work inside if, ifeq, switch and not as parameters to a template.
Escaped wikitables work and fail same as HTML tables.
HTML tables work inside if, ifeq and switch.
HTML tables that do not contain any "=" work as parameters to a template.
HTML tables that do contain "=" can be fed as numbered parameters to templates. Note that all parameters then should be numbered.
[edit] Testing demo messagebox
[edit] Testing {{main talk category other}}
No parameter: ++other++
Demospace = CATEGORY: ++category++
1 = MM: ++++
1 = MM, 2 = TT: ++++
1 = MM, 2 = TT, 3 = CC: ++++
1 = MM, 2 = TT, 3 = CC, 4 = OO: ++OO++
[edit] Testing {{User:Davidgothberg/Test22}}
No parameter: ++other++
Demospace = MAIN: ++main++
1 = MM: ++++
1 = MM, |||: ++++
1 = MM, 2 = TT: ++++
1 = MM, 2 = TT, ||: ++++
1 = MM, 2 = TT, 3 = "": ++++
1 = MM, 2 = TT, 3 = CC: ++CC++
1 = MM, 2 = TT, 3 = CC, 4 = OO: ++CC++
Demospace = MAIN, 1 = MM, 2 = TT, 3 = CC, 4 = OO: ++MM++
2 = TT: ++++
1 = |, 2 = TT: ++++
1 = |, 2 = TT, 3 = |, 4 = |: ++++
3 = CC: ++CC++
4 = OO: ++other++
2 = TT, 4 = CC: ++++

