Template:Selfref/doc: Difference between revisions
meta>SMcCandlish This actually has to do with NON-mirror re-use; true mirror sites of WP wouldn't need this, as non-mainspace links would work on them, too. |
meta>SMcCandlish →Usage: don't talk down to editors (and that character isn't called "bar" anyway) |
||
Line 17: | Line 17: | ||
{{Selfref|the self-referential text to display without reformatting|}} | {{Selfref|the self-referential text to display without reformatting|}} | ||
</pre> | </pre> | ||
or adding the | or adding the parameter {{para||inline}}: | ||
<pre> | <pre> | ||
{{Selfref|the self-referential text to display without reformatting|inline}} | {{Selfref|the self-referential text to display without reformatting|inline}} |
Revision as of 08:44, 26 August 2014
This is a documentation subpage for Template:Selfref. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
{{Selfref}}
is a template that is used to mark pieces of text and links that wouldn't make sense in reuses of Wikipedia article content elsewhere: see Wikipedia:Self-references to avoid.
In most cases, {{Selfref}} is used to create a disambiguation link to a page in the Wikipedia: namespace from article space; for instance, Objectivity 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}}
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 parameter |inline
:
{{Selfref|the self-referential text to display without reformatting|inline}}
This template should not be substituted.
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.|}} 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. |
See also
- Wikipedia:Self-references to avoid
- {{srlink}}, for the opposite case when you want a link to the Wikipedia: namespace that does show in mirrors without breaking (for instance when writing an article about Wikipedia or something connected to it).
- Wikipedia:Hatnote