Template:IsValidPageName/doc

Usage
Returns "valid" if the first parameter is a valid pagename, otherwise the empty string.

This template is only to be used in other templates, mainly headword-line and inflection-table templates to allow wikilinking as default, but to allow several separate wikilinks when this is appropriate. The following is an example with on :

In :

This means that there is an automatic wikilink when  is a valid page name, but no wikilink when   is not a valid page name. In :

Which appears as:

Without isValidPageName:

octopus (plural [[octopuses, octopodes or octopi]])

This works because the string  is not a valid page name, due to the square brackets.