Template:Example: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Thought I had fixed this, but maybe I didn't save as I thought I had, or made some other error while doing it (likely) hopefully this remedies)
(<templatestyles src="Example/style.css" /> and minor changes of →‎Tests)
Line 1: Line 1:
<templatestyles src="Example/style.css" /><!--
<div class="demo-inputbox-wrapper">
--><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">
Line 10: Line 11:


==Tests==
==Tests==
<ol>
# <code><nowiki>{{example|category|base=Criteria for page selection|eg=2}}</nowiki></code> gives: {{example|category|base=Criteria for page selection|eg=2}}
<li><code><nowiki>{{example|category|base=Criteria for page selection|eg=2}}</nowiki></code> gives: {{example|category|base=Criteria for page selection|eg=2}}</li>




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



Revision as of 15:14, 17 April 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}} gives: Page Template:Example/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").