This is the template test cases page for the sandbox of Template:Transclude selected excerpt. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
This month
Evaluates to selected=4
{{Transclude selected excerpt|January|February|March|April|May|June|July|August|September|October|November|December|errors=1 |selected=4}}
{{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
Selection number too low
Should roll round to December
{{Transclude selected excerpt|January|February|March|April|May|June|July|August|September|October|November|December|errors=1 |selected=0}}
{{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
Selection number too high
Should roll round to March
{{Transclude selected excerpt|January|February|March|April|May|June|July|August|September|October|November|December|errors=1 |selected=123}}
{{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
Selection by string
Expecting Canada
{{Transclude selected excerpt|AF=Afghanistan |AZ=Azerbaijan |BE=Belgium |CA=Canada |DE=Germany |errors=1 |selected=CA}}
{{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
Parameter "more"
no parameter
|more=
{{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
|more=
(an empty value){{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
|more=Foobar
{{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
|more=0
{{Transclude selected excerpt}} | {{Transclude selected excerpt/sandbox}} |
---|---|
Excerpt error: No valid pages found |
Excerpt error: No valid pages found |
References
This section contains references and notes. It should be empty. If anything appears here then a template may need to be removed from the transcluded article.