Wikipedia:Manual of Style/Self-references to avoid: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Mobile edit Mobile web edit
No edit summary
Tags: Reverted Mobile edit Mobile web edit
Line 60:
==Self-reference tools==
{{Shortcut|WP:ITSELF}}
The self-reference template, {{tlx|selfref}}, is used to mark pieces of text and links that wouldn't make sense on copies of Wikipedia. This gives the ability to programmatically remove all such references or transform them into external links. Thus, the end product can have all of its self-references removed automatically for users, such as forks and mirrors. This template is most often used as a [[Wikipedia:Hatnote|hatnote template]] to help guide editors from an article to a related Wikipedia policy or guideline page in the [[Wikipedia:Project namespace|Wikipedia project namespace]].
 
Many hatnote templates that ''do'' contain helpful preset text and linking, such as {{t|for}} and {{t|about}}, support a {{para|selfref}} parameter that gives them the same functionality as {{tlf|Self reference}}, making them better options in most circumstances.
 
In cases where a Wikipedia page should link to Wikipedia itself (for instance, at [[Wikipedia]]) and this link should be kept on mirrors, the format {{tlx|srlink|link}} can be used to write the link as external, rather than internal when outside of Wikipedia, to prevent it breaking in mirrors. For instance: {{srlink|Main Page|Wikipedia's Main Page}} (made by <code><nowiki>{{srlink|Main Page|Wikipedia's Main Page}}</nowiki></code>) as opposed to [[Main Page|Wikipedia's Main Page]] (<code><nowiki>[[Main Page|Wikipedia's Main Page]]</nowiki></code>).
 
==See also==