Template:Example: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
No edit summary
imported>FrozenPlum
mNo edit summary
 
Line 2: Line 2:
--><includeonly><div class="demo-inputbox-wrapper">
--><includeonly><div class="demo-inputbox-wrapper">
{{#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" style="margin-top:{{{margin|}}};">
[{{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}}}]
[{{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
-->|<div class="demo-viewpage">
-->|<div class="demo-viewpage" style="margin-top:{{{margin|}}};">
[[{{#if:{{{base|}}}|{{anchorencode:{{{base}}}}}|{{FULLPAGENAME}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter:&nbsp;}}{{{1|}}} (example{{#if:{{{eg|1}}}|&nbsp;{{{eg|1}}}}})|View Result]]
[[{{#if:{{{base|}}}|{{anchorencode:{{{base}}}}}|{{FULLPAGENAME}}}}/{{#if:{{{noparam|}}}|<!-- not empty -->|Parameter:&nbsp;}}{{{1|}}} (example{{#if:{{{eg|1}}}|&nbsp;{{{eg|1}}}}})|View Result]]
</div>}}
</div>}}
Line 22: Line 22:




<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>
<li value="4"><code><nowiki>{{example|category|base=Criteria for page selection|Link Text|eg=2|noresult=y|margin=.5em}}</nowiki></code> gives: {{example|category|base=Criteria for page selection|Link Text|eg=2|noresult=y|margin=.5em}}</li>
</ol>
</ol>



Latest revision as of 00:52, 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|margin=.5em}} gives: Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").