Template:Selfref: Difference between revisions
meta>Kevinkor2 I do not believe this template can be used to notify about general list issues |
meta>Iamunknown add spaces around headings |
||
| Line 1: | Line 1: | ||
{{{2|:<span class="plainlinks selfreference">''}}}{{{1}}}{{{2|''</span>}}}<noinclude> | {{{2|:<span class="plainlinks selfreference">''}}}{{{1}}}{{{2|''</span>}}}<noinclude> | ||
==Usage== | |||
== Usage == | |||
<nowiki>{{selfref}}</nowiki> is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of Wikipedia: see [[Wikipedia:Avoid self-references]]. | <nowiki>{{selfref}}</nowiki> is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of Wikipedia: see [[Wikipedia:Avoid self-references]]. | ||
| Line 20: | Line 22: | ||
This template should not be [[WP:SUBST|substituted]]. | This template should not be [[WP:SUBST|substituted]]. | ||
==See also== | == See also == | ||
*[[Wikipedia:Avoid self-references]] | *[[Wikipedia:Avoid self-references]] | ||
*{{tl|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). | *{{tl|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). | ||
Revision as of 03:30, 30 April 2007
- {{{1}}}
Usage
{{selfref}} is a template that is used to mark pieces of text and links that wouldn't make sense on mirrors of Wikipedia: see Wikipedia:Avoid self-references.
In most cases, {{selfref}} is used to create a disambiguation link to a page in the Wikipedia: namespace from article space; for instance, Objectivity (journalism) has 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|}}
This template should not be substituted.
See also
- Wikipedia:Avoid self-references
- {{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).