Template:Path/testcases

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is the template test case page for Template:Path and its sandbox version. You may have to purge this page to update the examples.

Correct

One unnamed parameter
Wiki code {{Path|/etc/fstab}}

Main version /etc/fstab
Sandbox version /etc/fstab
Parameter: link (any value)
Wiki code {{Path|/etc/fstab|link=y}}

Main version /etc/fstab
Sandbox version /etc/fstab

Incorrect

No parameter
Wiki code {{Path}}

Main version
Sandbox version
Multiple unnamed parameters (not supported)
Wiki code {{Path|/etc/fstab|link}}

Main version /etc/fstab
Sandbox version /etc/fstab
Parameter: link (no value)
Wiki code {{Path|/etc/fstab|link=}}

Main version /etc/fstab
Sandbox version /etc/fstab