Difference between revisions of "Template:Test2"
From Gunsopedia
(14 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
{{test2 | {{test2 | ||
|1= one | |1= one | ||
|2= | |2= | ||
− | |3= | + | |3= three |
|4= four | |4= four | ||
}} | }} | ||
− | |||
:'' See also: [[template:test]] and [[sandbox]] | :'' See also: [[template:test]] and [[sandbox]] | ||
Line 21: | Line 21: | ||
'''Test output:''' | '''Test output:''' | ||
− | {{#if{{{1}}}|'''1 and 4''' are {{{1}}} {{{4}}}|}} | + | * {{#if:{{{1|}}} {{{4|}}}|'''1 and 4''' are {{{1}}} and {{{4}}}|1 or 4 is missing}} |
+ | * {{#if:{{{1|}}} {{{2|}}}|'''1 and 2''' are {{{1}}} and {{{2}}}|1 or 2 is missing}} | ||
+ | * | ||
+ | <!-- {{ #expr: {{{1|}}} and {{{4|}}} }} --> | ||
</includeonly> | </includeonly> |
Latest revision as of 22:06, 19 October 2016
Test output:
- 1 and 4 are one and four
- 1 and 2 are one and
- See also: template:test and sandbox
Trying to use some php to redesign the catagorizing template for gun pages. This:
Layer 7 {{#if:{{{1|}}}| {{#if:{{{2|}}}| {{#if:{{{3|}}}| {{#if:{{{4|}}}| {{#if:{{{5|}}}| {{#if:{{{6|}}}| {{#if:{{{7|}}}| [[category:{{{1}}} {{{2}}} {{{3}}} {{{4}}} {{{5}}} {{{6}}} {{{7}}}]]}}}}}}}}}}}}}} {{#if:{{{Nationality|}}}| {{#if:{{{Caliber|}}}| {{#if:{{{Operation|}}}| {{#if:{{{Subaction|}}}| {{#if:{{{Action|}}}| {{#if:{{{Subtype|}}}| {{#if:{{{Type|}}}| [[category:{{{Nationality}}} {{{Caliber}}} {{{Operation}}} {{{Subaction}}} {{{Action}}} {{{Subtype}}} {{{Type}}}s]]}}}}}}}}}}}}}}
is getting cumbersome