|
| Admin only
|}
== Display access keys ==
By modifying [[Special:Mypage/common.css|your user CSS file]], access key shortcuts can be displayed before internal links on any Wikipedia page.
{{hidden|CSS with shortcuts shown on hover|headerstyle=background:#ccccff|content=
[[File:Access_keys_shortcut_display_on_hover.webm|thumb|right|x90px|Play the video to see how this CSS snippet works. The skin used here is Vector, but this will work for any skin.]]
<syntaxhighlight lang="css">a:hover[accesskey]:before {
content: " " attr(accesskey) " ";
text-transform: uppercase;
white-space: pre;
font-family: sans-serif;
margin-right: 0.5ex;
color: black;
}
</syntaxhighlight>
}}
{{hidden|CSS with shortcuts shown always|headerstyle=background:#ccccff|content=
[[File:Access_keys_shortcut_display_with_no_box.png|thumb|right|900px|Adding this code displays the access keys on every Wikipedia page, as shown in this picture.]]
<syntaxhighlight lang="css">a[accesskey]:before {
content: " " attr(accesskey) " ";
text-transform: uppercase;
white-space: pre;
font-family: sans-serif;
margin-right: 0.5ex;
color: black;
}
</syntaxhighlight>
}}
{{hidden|CSS with shortcuts shown always with a box|headerstyle=background:#ccccff|content=
[[File:Access_keys_shortcut_display_with_box.png|thumb|right|900px|This is identical to the above code except the access keys are displayed with boxes around them.]]
<syntaxhighlight lang="css">
a[accesskey]:before {
content: " " attr(accesskey) " ";
text-transform: uppercase;
white-space: pre;
border: thin solid;
font-family: sans-serif;
text-decoration: underline overline;
margin-right: 0.5ex;
color: black;
}
</syntaxhighlight>
}}
{{strong|This will not work in [[Internet Explorer]] versions lower than 8.0, since those browsers do not support the CSS selector used in these examples.}}
{{strong|This also will not display the accesskeys provided by the VisualEditor (or the [[mw:2017 wikitext editor]]), such as '<kbd>s</kbd>' to publish the page, as those accesskeys are implemented differently.}}
== Accessibility of access keys ==
|