සැකිල්ල:Nowiki template demo/testcases
This is the template test cases page for the sandbox of සැකිල්ල:Nowiki template demo. Purge this page 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 with these links: |
This is the template test cases page for the sandbox of සැකිල්ල:Nowiki template demo. Purge this page 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 with these links: |
Default format
සංස්කරණය{{Nowiki template demo|code=<nowiki>{{ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}</nowiki>}}
- Main template {{Nowiki template demo}}
{{ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
- Sandbox template {{Nowiki template demo/sandbox}}
{{ombox|text=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
Inline format
සංස්කරණය{{Nowiki template demo|format=inline|code=<nowiki>{{3x|Lorem ipsum}}</nowiki>}}
{{3x|Lorem ipsum}}
→ Lorem ipsumLorem ipsumLorem ipsum
- <syntaxhighlight lang="wikitext" inline>{{3x|Lorem ipsum}}</syntaxhighlight> → Lorem ipsumLorem ipsumLorem ipsum
Inline with prefix=#
සංස්කරණය{{Nowiki template demo|format=inline|prefix=#|code=<nowiki>{{3x|Lorem ipsum}}</nowiki>}}
{{3x|Lorem ipsum}}
→ Lorem ipsumLorem ipsumLorem ipsum
- <syntaxhighlight lang="wikitext" inline>{{3x|Lorem ipsum}}</syntaxhighlight> → Lorem ipsumLorem ipsumLorem ipsum
Inline with prefix=:
සංස්කරණය{{Nowiki template demo|format=inline|prefix=:|code=<nowiki>{{3x|Lorem ipsum}}</nowiki>}}
{{3x|Lorem ipsum}}
→ Lorem ipsumLorem ipsumLorem ipsum
- <syntaxhighlight lang="wikitext" inline>{{3x|Lorem ipsum}}</syntaxhighlight> → Lorem ipsumLorem ipsumLorem ipsum
Inline with output=nowiki
සංස්කරණය{{Nowiki template demo|format=inline|output=nowiki|code=<nowiki>{{URL | 1= http://www.example.com/path?section=17 }}</nowiki>}}
{{URL | 1= http://www.example.com/path?section=17 }}
→ <span class="url">[http://www.example.com/path?section=17 example.com/path?section=17]</span>
- <syntaxhighlight lang="wikitext" inline>{{URL | 1= http://www.example.com/path?section=17 }}</syntaxhighlight> → <span class="url">[http://www.example.com/path?section=17 example.com/path?section=17]</span>
Inline with output=nowiki+
සංස්කරණය{{Nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{URL | 1= http://www.example.com/path?section=17 }}</nowiki>}}
{{URL | 1= http://www.example.com/path?section=17 }}
→ example.com/path?section=17<span class="url">[http://www.example.com/path?section=17 example.com/path?section=17]</span>
- <syntaxhighlight lang="wikitext" inline>{{URL | 1= http://www.example.com/path?section=17 }}</syntaxhighlight> → example.com/path?section=17
<span class="url">[http://www.example.com/path?section=17 example.com/path?section=17]</span>
Collapsible with default title
සංස්කරණය{{Nowiki template demo|collapsible=yes|code=<nowiki>{{URL | 1= http://www.example.com/path?section=17 }}</nowiki>}}
{{URL | 1= http://www.example.com/path?section=17 }}
{{URL | 1= http://www.example.com/path?section=17 }}
{{Nowiki template demo|collapsible=yes|template=URL|code=<nowiki>{{__TEMPLATENAME__ | 1= http://www.example.com/path?section=17 }}</nowiki>}}
{{URL | 1= http://www.example.com/path?section=17 }}
{{URL | 1= http://www.example.com/path?section=17 }}
Collapsible with "title" parameter
සංස්කරණය{{Nowiki template demo|collapsible=yes|title=Testing URL template|code=<nowiki>{{URL | 1= http://www.example.com/path?section=17 }}</nowiki>}}
{{URL | 1= http://www.example.com/path?section=17 }}
{{URL | 1= http://www.example.com/path?section=17 }}
Collapsible with "titlecode" parameter
සංස්කරණය{{Nowiki template demo|collapsible=yes|titlecode=yes|showcode=no|code=<nowiki>{{URL | 1= http://www.example.com/path?section=17 }}</nowiki>}}
See also
සංස්කරණය- Module:Template test case/testcases
- Template:Test case/testcases
- Template:Test case nowiki/testcases
- Template:Collapsible test case/testcases