Jump to content

Template:Usertalk other

From Wikiquote


Documentation icon Template documentation[view] [edit] [history] [purge]

This template detects whether the page it is used on is a user talk page, and outputs different content accordingly.

Basic usage

[edit]

The template takes two parameters, one containing the wikicode to output if used on a user's talkpage, the other containing the wikicode to output if used in any other page. This template can be used to prevent message and warning templates being used on pages other than user talk pages.

{{Usertalk other|result if on a user talk page|result if anywhere else}}

Demospace parameter

[edit]

The "demospace" parameter can be used to force the template to display the output it would produce on a user talk or other page, regardless of the type of page it is actually used on.

{{Usertalk other|result if on a user talk page|result if anywhere else|demospace=user talk}}

Will force the template to display result if on a user talk page, regardless of which namespace it is actually in.