Template:Shortcut/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{Template shortcut|Shc|Short|Shorthand}} {{High-use}} {{Lua|Module:Shortcut..."
 
m Text replacement - "[[WP:" to "[[Wikipedia:WP:"
Line 22:
*{{tl|Ombox/shortcut}} – ''shortcut'' that embeds into message boxes
 
This template should not be used for articles in the main namespace, because the graphic produces an unavoidable [[Wikipedia:WP:SELF|self-reference]].
 
# Insert the shortcut template.
Line 30:
 
'''Notes'''
Shortcuts are used mainly on user pages and talk pages in reference to the Wikipedia, Help, and Portal namespaces. These templates inform about the shortcuts available to the page they are on. For example, [[Wikipedia:WP:SHORT]] redirects to [[Wikipedia:Shortcut]] and therefore, Wikipedia:Shortcut renders a shortcut box listing WP:SHORT. It is a self-reference that is normally avoided in the main article namespace.
 
The point of these templates is not to list every single redirect for a page (indeed, that's what [[Special:WhatLinksHere]] is for). Instead, they should list the most common and easily remembered redirects.
Line 61:
== Anchors ==
 
These templates automatically add an [[HTML element#Anchor|anchor]] for each shortcut name parameter. For example, if a shortcut box with the shortcut [[Wikipedia:WP:SHORT]] is placed on the page [[Wikipedia:Shortcut]], then the link [[Wikipedia:Shortcut#WP:SHORT]] will take you to the position in the page where that shortcut box is placed.
 
Examples: [[#WP:SHORT]], and [[MOS:MATH#TONE]]