Template:Example: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Add a flag for no sandbox)
miraheze:dpl3>Unknown user
(Clean up remnant I forgot)
Line 2: Line 2:
{{#if:{{{nosandbox|}}}|<!-- has value don't display --><!-- otherwise display
{{#if:{{{nosandbox|}}}|<!-- has value don't display --><!-- otherwise display
-->|<div class="demo-viewpage">
-->|<div class="demo-viewpage">
[{{fullurl:Special:Mypage/Sandbox|action=edit}}&section=new&preloadtitle={{urlencode:{{{1}}}}}&preload={{#if:{{{base|}}}|{{{base}}}|{{urlencode:{{FULLPAGENAME}}}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter:_}}{{{1|}}}_(example{{#if:{{{eg|}}}|_{{{eg|}}}|_1}}) Test in sandbox]<!--
[{{fullurl:Special:Mypage/Sandbox|action=edit}}&section=new&preloadtitle={{urlencode:{{{1}}}}}&preload={{#if:{{{base|}}}|{{{base}}}|{{urlencode:{{FULLPAGENAME}}}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter:_}}{{{1|}}}_(example{{#if:{{{eg|}}}|_{{{eg|}}}|_1}}) Test in sandbox]
-- correct working URL (without params) --
[{{fullurl:Special:Mypage/Sandbox|action=edit}}&section=new&preloadtitle=New_Header&preload=Criteria for page selection/Example Test in sandbox]-->
</div>}}
</div>}}
<div class="demo-viewpage">
<div class="demo-viewpage">
Line 26: Line 24:
* Plain URL exampe:
* Plain URL exampe:
** [{{fullurl:Special:Mypage/Sandbox|action=edit}}&section=new&preloadtitle=New_Header&preload=Criteria_for_page_selection/Parameter:_category_(example_1) Test in sandbox]
** [{{fullurl:Special:Mypage/Sandbox|action=edit}}&section=new&preloadtitle=New_Header&preload=Criteria_for_page_selection/Parameter:_category_(example_1) Test in sandbox]

* {{urlencode:{{FULLPAGENAME}}}}
* {{urlencode:{{FULLPAGENAME}}}}
* {{PAGENAMEE}} -->
* {{PAGENAMEE}} -->

Revision as of 07:55, 7 April 2022

Tests

  1. {{example|category|base=Criteria for page selection|eg=2}} gives:


  1. {{example|category|base=Criteria for page selection|nosandbox=y}} gives:

  2. {{example|category|base=Criteria for page selection}} gives: