Difference between revisions of "Template:Test2"

From Gunsopedia
Jump to: navigation, search
Line 1: Line 1:
{{test}}<noinclude>
+
{{test
:'' See also: [[template:test]] and [[sandbox]]</noinclude>
+
|1= one
 +
|2=
 +
|3=
 +
|4= four
 +
}}
 +
 
 +
<noinclude>
 +
:'' See also: [[template:test]] and [[sandbox]]
 +
 
 +
Trying to use some php to redesign the [[:template:categorize gun|catagorizing template]] for gun pages.  This:
 +
<pre>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]]}}}}}}}}}}}}}}</pre>
 +
is getting cumbersome</noinclude>
 +
 
 +
<includeonly>
 +
'''Test output:'''
 +
 
 +
{{#if{{{1}}} {{{4}}}|'''1 and 4''' are {{{1}}} {{{4}}}|}}
 +
</includeonly>

Revision as of 22:24, 19 October 2016


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


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox