Anonymous user
Template:Example: Difference between revisions
m
I didn't anticipate needing a sandbox-only link, but I probably should have. Just found the one use-case for it.
(<templatestyles src="Example/style.css" /> and minor changes of →Tests) |
imported>FrozenPlum m (I didn't anticipate needing a sandbox-only link, but I probably should have. Just found the one use-case for it.) |
||
Line 5:
[{{fullurl:Special:Mypage/Sandbox|action=edit}}§ion=new&preloadtitle={{urlencode:{{{1}}}}}&preload={{#if:{{{base|}}}|{{anchorencode:{{{base}}}}}|{{urlencode:{{FULLPAGENAME}}}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter:_}}{{{1|}}}_(example{{#if:{{{eg|}}}|_{{{eg|}}}|_1}}) Test in sandbox]
</div>}}
{{#if:{{{noresult|}}}|<!-- has value don't display --><!-- otherwise display
-->|<div class="demo-viewpage">
[[{{#if:{{{base|}}}|{{anchorencode:{{{base}}}}}|{{FULLPAGENAME}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter: }}{{{1|}}} (example{{#if:{{{eg|1}}}| {{{eg|1}}}}})|View Result]]
</div>}}
</div><noinclude>
Line 18 ⟶ 19:
<li value="3"><code><nowiki>{{example|category|base=Criteria for page selection|eg=2}}</nowiki></code> gives: {{example|category|base=Criteria for page selection|eg=2|noresult=y}}</li>
</ol>
|