Koha Test Wiki MW Canasta on Koha Portainer

Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.

For the current Koha Wiki, visit https://wiki.koha-community.org .

Template:URL/testcases

From Koha Test Wiki MW Canasta on Koha Portainer
Jump to navigation Jump to search

Template:Template test cases notice

Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case Template:Collapsible test case

Warning examples

If the URL may contain equal signs, the parameters should be numbered explicitly to have the template work as expected (otherwise, parameter value overrides may occur) ; this is more problematic when an explicit display text is provided in parameter 2.

There's absolutely never any problem when the parameter 2 is explicitly passed, but in this case, using this template is not even needed, and standard Wiki link syntax will be fully equivalent and in fact simpler to edit and faster to compute on the server.

Code Result Sandbox Result
{{URL| http://www.ex=ample.com}} www.ex=ample.com www.ex=ample.com
{{URL| http://www.ex=ample.com | example }} example example
{{URL| 1=http://www.ex=ample.com | 2=example }} example example


Word wrapping test

Code Result Sandbox Result Manual invokation
{{URL| 1=www.adobe.com/devnet/pdf/pdf_reference_archive.html}} www.adobe.com/devnet/pdf/pdf_reference_archive.html www.adobe.com/devnet/pdf/pdf_reference_archive.html www.adobe.com/devnet/pdf/pdf_reference_archive.html
{{URL| 1=http://en.m.wikipedia.org/w/index.php?title=User:Codename_Lisa/sandbox&oldid=636147649}} en.m.wikipedia.org/w/index.php?title=User%3ACodename_Lisa%2Fsandbox&oldid=636147649 en.m.wikipedia.org/w/index.php?title=User%3ACodename_Lisa%2Fsandbox&oldid=636147649 en.m.wikipedia.org/w/index.php?title=User%3ACodename_Lisa%2Fsandbox&oldid=636147649
{{URL| 1=http://windows.microsoft.com/en-us/windows/turn-off-computer-faq#1TC=windows-vista}} windows.microsoft.com/en-us/windows/turn-off-computer-faq#1TC=windows-vista windows.microsoft.com/en-us/windows/turn-off-computer-faq#1TC=windows-vista windows.microsoft.com/en-us/windows/turn-off-computer-faq#1TC=windows-vista
{{URL| 1=http://vvv.some_domain_name.local/some_folder_name/yet.another.foldername/some-other-folder-name/}} vvv.some_domain_name.local/some_folder_name/yet.another.foldername/some-other-folder-name/ vvv.some_domain_name.local/some_folder_name/yet.another.foldername/some-other-folder-name/ vvv.some_domain_name.local/some_folder_name/yet.another.foldername/some-other-folder-name/
{{URL| 1=http://www.example.com/?some+request+with+plus+in+it}} www.example.com?some+request+with+plus+in+it www.example.com?some+request+with+plus+in+it www.example.com?some+request+with+plus+in+it
Code Result Sandbox Result Manual invokation
{{URL| 1=http://www.example.com |2=Supercalifragilistic__expialidocious}} Supercalifragilistic__expialidocious Supercalifragilistic__expialidocious Supercalifragilistic__expialidocious
{{URL| 1=http://www.example.com |2=Supercalifragilistic//expialidocious}} Supercalifragilistic//expialidocious Supercalifragilistic//expialidocious Supercalifragilistic//expialidocious
{{URL| 1=http://www.example.com |2=Supercalifragilistic..expialidocious}} Supercalifragilistic..expialidocious Supercalifragilistic..expialidocious Supercalifragilistic..expialidocious
{{URL| 1=http://www.example.com |2=Supercalifragilistic##expialidocious}} Supercalifragilistic##expialidocious Supercalifragilistic##expialidocious Supercalifragilistic##expialidocious