Difference between revisions of "Template:Testslash"

From TestWiki
Jump to: navigation, search
(Try a variable with / in and a tag that doesn't do anything particularly clever (I don't think).)
(Oops - show_source doesn't work if argument is not on white-list!)
Line 8: Line 8:
 
</repeat>
 
</repeat>
  
<show_source>{{{arg3/arg3}}}</show_source>
+
<php>
 +
$arg1 = "{{{arg1}}}"
 +
$arg2 = "{{{arg2}}}"
 +
$arg3 = "{{{arg3/arg3}}}"
 +
</php>
  
 
== Result ==
 
== Result ==
Line 14: Line 18:
 
</repeat>
 
</repeat>
  
<show_source>{{{arg3/arg3}}}</show_source>
+
<php>
 +
$arg1 = "{{{arg1}}}"
 +
$arg2 = "{{{arg2}}}"
 +
$arg3 = "{{{arg3/arg3}}}"
 +
</php>
  
<small>(show_source is a tag which doesn't do anything particularly clever with its inputs - I want to see if it handles the argument differently)</small>
+
<small>(code is a tag which doesn't do anything particularly clever with its inputs - I want to see if it handles the argument differently)</small>

Revision as of 10:17, 9 March 2012

Inputs

  • {{{arg1}}}: {{{arg1}}}
  • {{{arg2}}}: {{{arg2}}}
  • {{{arg3/arg3}}}: {{{arg3/arg3}}}

Markup

<repeat table="Slash" criteria="stage={{{arg1}}},department={{{arg2}}}"> </repeat>

<php> $arg1 = "{{{arg1}}}" $arg2 = "{{{arg2}}}" $arg3 = "{{{arg3/arg3}}}" </php>

Result

department stage


$arg1 = "{{{arg1}}}"
$arg2 = "{{{arg2}}}"
$arg3 = "{{{arg3/arg3}}}"

(code is a tag which doesn't do anything particularly clever with its inputs - I want to see if it handles the argument differently)