Zum Inhalt springen

Vorlage:Shortcut: Unterschied zwischen den Versionen

Aus Flora von Bayern
imported>Entlinkt
Wirkungslose style-Anweisung entfernt, absolut positionierte Elemente wissen nicht, was um sie herum passiert
imported>Iris Leininger
K 1 Version
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><div id="shortcut" class="shortcut">[[Wikipedia:Shortcuts|Abkürzung]]: {{{1}}}</div></onlyinclude>{{Dokumentation}}
<table class="shortcutbox noprint" style="float: right; border: 1px solid #aaa; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; text-align: center;"><tr><th style="border: none; background: transparent;"><!--
Putting anchors on page:
-->{{#if:{{{1|}}}|<span id="{{{1|}}}"></span> }}{{#if:{{{2|}}}|<span id="{{{2|}}}"></span> }}{{#if:{{{3|}}}|<span id="{{{3|}}}"></span> }}{{#if:{{{4|}}}|<span id="{{{4|}}}"></span> }}{{#if:{{{5|}}}|<span id="{{{5|}}}"></span> }}<!--
Adding the shortcut links:
--><small>[[Wikipedia:Shortcut|Shortcut{{#if:{{{2|}}}|s}}]]: {{#if:{{{1|}}}|<br> [[{{{1}}}]] }}{{#if:{{{2|}}}|<br> [[{{{2}}}]] }}{{#if:{{{3|}}}|<br> [[{{{3}}}]] }}{{#if:{{{4|}}}|<br> [[{{{4}}}]] }}{{#if:{{{5|}}}|<br> [[{{{5}}}]] }}</small></th></tr></table><!--
Reporting if the first parameter is not a valid non-bracketed shortcut name:
-->{{#if:{{{1|}}}
| {{#ifexist:{{{1|}}}
  |
  | [[Category:Wikipedia shortcut box first parameter needs fixing|{{PAGENAME}}]]
  }}
}}<noinclude>
 
{{pp-template|small=yes}}
{{Documentation}}
</noinclude>

Aktuelle Version vom 12. November 2013, 11:00 Uhr

Shortcut:
[Bearbeiten] [Aktualisieren] Dokumentation der Vorlage

This is the documentation for {{shortcut}} and its sister templates.

{{shortcut-l}} flows to the left of the page and {{shortcut}} flows to the right.

Usage

These templates are mainly used on pages and talk pages in the Wikipedia, Help and Portal namespaces. These templates inform about the shortcuts available to the page they are on. For example, WP:SHORT redirects to Wikipedia:Shortcut and therefore Wikipedia:Shortcut has a shortcut box listing WP:SHORT.

The point of these templates is not to list every single redirect (indeed, that's what Special:WhatLinksHere is for); for any given page, instead they should list only one or two common and easily-remembered redirects.

These templates can take up to 5 shortcuts as parameters.

For policy pages you can use {{policy shortcut}} which takes up to 10 shortcuts as parameters.

Examples

Code Result
{{Shortcut|WP:SHORT}}
Shortcut:
WP:SHORT
{{Shortcut|WP:V|WP:VERIFY|WP:SOURCE}}
Shortcuts:
WP:V
WP:VERIFY
WP:SOURCE

Anchors

These boxes automatically adds anchors. If a shortcut box with the shortcut 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.

For instance, try this link: #WP:SHORT

Thus if you make a shortcut for a section of a page then you can use the anchor in the shortcut redirect. Like this:

#REDIRECT [[Pagename#WP:SHORT]] {{R from shortcut}}

See also

  • Wikipedia:Shortcut – The how-to guide and guideline about how and when to create shortcuts and shortcut boxes. A must-read for anyone handling shortcuts.