Template:Selfref/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{distinguish|Template:Self-reference}} {{Documentation subpage}} {{High-use}} {{Commons Import}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE, AND INTERWIKIS TO WIKI..."
 
m Text replacement - "[[WP:" to "[[Wikipedia:WP:"
 
Line 5:
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE, AND INTERWIKIS TO WIKIDATA. -->
 
The {{tlf|Selfref|text}} template adds to a Wikipedia article a [[Wikipedia:WP:HAT|hatnote]] (in this case, merely: ''text'') that will ''not appear'' in any [[Wikipedia:WP:Reusing Wikipedia content|reuse of Wikipedia article content]]. In [[Wikipedia:WP:Glossary|Wikipedia terminology]], self-references in an article usually mention Wikipedia directly or tell readers to take an action that has to take place on Wikipedia, such as editing the article. Typically, self-references within Wikipedia articles to the Wikipedia project should be avoided. 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. Before using this template, make sure the self-reference that you're thinking of adding doesn't fall into one of the types listed at [[Wikipedia:Self-references to avoid]]. Most other hatnote templates, such as {{t|for}} and {{t|about}} support a {{para|selfref}} parameter which may be more convenient to use.
Line 12:
 
== Usage ==
This template should not be [[Wikipedia:WP:Template substitution|substituted]].
 
In most cases, {{tlf|Selfref}} is used to create a disambiguation link to a page in the "Wikipedia:" namespace from article-space; for instance, the page [[Objectivity (disambiguation)]] could have a self-referential "[[Wikipedia:WP:HATNOTE|hatnote]]" link at the top: <code><nowiki>{{Selfref|For Wikipedia's policy on avoiding bias, see [[Wikipedia:Neutral point of view]].}}</nowiki></code>.
 
When using {{tlf|Selfref}} in this way, use the following format:
Line 39:
Rarely, there is other, non-self-referential content which shouldn't appear in mirrors, print editions, or other off-Wikipedia reuses of Wikipedia content, and which shouldn't be italicized as a self-reference.
 
It is preferable to mark such unprintworthy content with the {{tl|Unprintworthy inline}} template (which includes the <code>noprint</code> CSS class, but not the <code>plainlinks</code> class, since links in such content will not be internal self-references). Although not all [[Wikipedia:WP:Mirrors and forks|mirror sites]] do so, the content in question can be removed by reusers of WP content, without any reformatting, by ignoring or removing content marked up by this template, or more accurately by the <code>selfreference</code> CSS class that it (and some other templates) use.
 
'''Note: The following syntax has been obsolete since 2008, and if you see it, replace it as described below.'''
Line 52:
! Code !! Page on Wikipedia !! Page on [some] mirrors
|-
| <code><nowiki>{{Selfref|For the Wikipedia Sandbox, see [[Wikipedia:WP:SAND]]}}</nowiki></code>
 
<code><nowiki>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.</nowiki></code>
| {{Selfref|For the Wikipedia Sandbox, see [[Wikipedia: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.