Template:Example: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Fix wanted page)
imported>FrozenPlum
No edit summary
Line 3: Line 3:
{{#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|}}}|{{anchorencode:{{{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|}}}|{{anchorencode:{{{base}}}}}|{{urlencode:{{FULLPAGENAME}}}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter:_}}{{{1|}}}_(example{{#if:{{{eg|}}}|_{{{eg|}}}|_1}}) {{{2|Test in sandbox}}}]
</div>}}
</div>}}
{{#if:{{{noresult|}}}|<!-- has value don't display --><!-- otherwise display
{{#if:{{{noresult|}}}|<!-- has value don't display --><!-- otherwise display
Line 20: Line 20:


<li value="3"><code><nowiki>{{example|category|base=Criteria for page selection|eg=2|noresult=y}}</nowiki></code> gives: {{example|category|base=Criteria for page selection|eg=2|noresult=y}}</li>
<li value="3"><code><nowiki>{{example|category|base=Criteria for page selection|eg=2|noresult=y}}</nowiki></code> gives: {{example|category|base=Criteria for page selection|eg=2|noresult=y}}</li>


<li value="4"><code><nowiki>{{example|category|base=Criteria for page selection|Link Text|eg=2|noresult=y}}</nowiki></code> gives: {{example|category|base=Criteria for page selection|Link Text|eg=2|noresult=y}}</li>
</ol>
</ol>



Revision as of 00:49, 2 October 2022

Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

Tests

  1. {{example|category|base=Criteria for page selection|eg=2}} gives: Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

  2. {{example|category|base=Criteria for page selection|eg=2|nosandbox=y}} gives: Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

  3. {{example|category|base=Criteria for page selection|eg=2|noresult=y}} gives: Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

  4. {{example|category|base=Criteria for page selection|Link Text|eg=2|noresult=y}} gives: Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").