Template:Selfref

From Marxists-en
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

The {{Selfref}} template adds a {{hatnote}} to an article that will not appear in any reuse of the wiki article (transclusion, printing...). Self-references in an article usually mention the wiki directly or tell readers to take an action that has to take place on the wiki, such as editing the article. Reading such information off-site would only cause confusion.

With this template, you can safely make a self-reference where needed, but that need is rare, because the main templates that display self-references ({{See also}}...) already avoid displaying off-site.

Usage

When using {{Selfref}} in this way, use the following format:

{{Selfref|The self-referential notice to display, including links.}}

which produces:

When using {{Selfref}} in this way, the text will be indented slightly, italicized (Wikipedia house style for self-referential notes), and both preceded and followed by a linebreak.

Template {{Selfref}} also has the parameter |inline:

{{Selfref|the self-referential text to display, including links|inline}}

but it does not always function properly as of early 2019, and may cause a line break under some circumstances.

Example

Code Page on Wikipedia Page on [some] mirrors
{{Selfref|For the Wikipedia Sandbox, see [[WP:SAND]]}}

The Wikipedia Sandbox is a page on Wikipedia. {{Selfref|(You can edit it by clicking "edit" on the page.)|inline}} It has been edited many times.

The Wikipedia Sandbox is a page on Wikipedia. It has been edited many times. The Wikipedia Sandbox is a page on Wikipedia. It has been edited many times.