Template:ViewTest: Difference between revisions

no edit summary
imported>FrozenPlum
(Greatly simplified template (I was majorly overthinking how to do/preload examples before, going to simplify).)
imported>FrozenPlum
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3:
{{#if:{{{nosandbox|}}}|<!-- has value don't display --><!-- otherwise display
-->|<div class="demo-viewpage" style="margin-top:{{{margintop|}}};">
[{{fullurl:Special:Mypage/Sandbox|action=edit}}&section=new&preloadtitle={{urlencode:{{{1}}}/{{{2}}}|PATH}}&preload={{anchorencodeurlencode:{{{base|1}}}/{{{2|}}} }}} }} {{{3|Test in sandbox}}}]
</div>}}
{{#if:{{{noresult|}}}|<!-- has value don't display --><!-- otherwise display
-->|<div class="demo-viewpage" style="margin-top:{{{margin|}}};">
[[{{#ifurlencode:{{{base|{{{1|}}}}}}|/{{anchorencode:{{{base|{{{1|}}}}}2}}}|{{FULLPAGENAME}}}}/{{{2|}PATH}}|View Result]]
</div>}}
</div></includeonly><noinclude>
Anonymous user