Jump to content

Template:Must log in/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This is a wrapper for {{If IP}} intended for processes that a user must be logged in to complete. It outputs nothing if viewed by a logged in user but a message to log in or create an account when viewed logged out. The links are structured such that the user will automatically return to the page once they're logged in.

Parameters

[edit]

No description.

Template parameters

ParameterDescriptionTypeStatus
11

The content shown only if logged in. Cannot handle normal line breaks; use {{parabr}} instead.

Contentsuggested
returnreturn

The page to automatically return to after the user completes registration. Must be URL encoded, which can be done via {{subst:urlencode:Name of the page}}.

Example
Template+talk%3ADid+you+know%23Instructions+for+nominators
Auto value
{{subst:FULLPAGENAMEE}}
Stringsuggested
extraextra

Additional instructions for logged out users. Cannot handle normal line breaks; use {{parabr}} instead.

Contentoptional