Template:Selfref/doc
This is a documentation subpage for Template:Selfref. It contains usage information, categories and other content that is not part of the original template page. |
- This article uses content from the Wikipedia article on Template:Selfref/doc (edition) under the terms of the CC-by-SA 3.0 license.
Usage
{{Selfref}} is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of Mises Wiki: see Wikipedia:Self-references to avoid.
In most cases, {{Selfref}} is used to create a disambiguation link to a page in the Mises Wiki: namespace from article space; for instance, Objectivity (journalism) could have a selfref link '{{Selfref|For Wikipedia's policy on avoiding bias, see [[Wikipedia:Neutral point of view]].}}'. When using {{Selfref}} in this way, use the following format:
{{Selfref|the self-referential notice to display, including links}}
If the text of the notice contains any = characters, you have to escape it like this:
{{Selfref|1=the self-referential notice to display, including links}}
(This is needed with all templates, not just {{Selfref}}.) When using {{Selfref}} in this way, the text will be indented slightly and put in italics.
{{Selfref}} can also be used for any other text which shouldn't appear in mirrors (the mirrors can remove it by blanking {{Selfref}} in their copy, although not all of them do), without reformatting; to use it like this, place an extra vertical bar at the end of the template inclusion, like this:
{{Selfref|the self-referential text to display without reformatting|}}
or adding the word "inline" after a bar, like this:
{{Selfref|the self-referential text to display without reformatting|inline}}
This template should not be substituted.
Example
Code | Page on Mises Wiki | Page on some mirrors |
---|---|---|
{{Selfref|For the Mises Wiki Sandbox, see [[MisesWiki:Sandbox]]}} The Mises Wiki Sandbox is a page on Mises Wiki. {{Selfref|You can edit it by clicking "edit" on the page.|}} It has been edited many times. |
For the Mises Wiki Sandbox, see MisesWiki:Sandbox
The Mises Wiki Sandbox is a page on Mises Wiki. You can edit it by clicking "edit" on the page. It has been edited many times. |
The Mises Wiki Sandbox is a page on Mises Wiki. It has been edited many times. |
See also
- Wikipedia:Self-references to avoid
- {{srlink}}, for the opposite case when you want a link to the Mises Wiki: namespace that does show in mirrors without breaking (for instance when writing an article about Mises Wiki or something connected to it).
- Template:Otheruses templates - list of hatnotes