Extension:Link Attributes/pl

Uwaga Uwaga: This extension is often confused with the similarly named Extension:LinkAttributes.
Category:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
Link Attributes
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Funkcja parsera Category:Parser function extensions/pl
Opis Adds support for the rel, rev and class attributes on links
Autor(zy) Toby Inkster, Dennis Roczek, Sam Wilson
Ostatnia wersja 1.1
MediaWiki >= 1.35.0
Zmiany w bazie danych Nie
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie Category:Extensions in Wikimedia version control/pl
Przetłumacz rozszerzenie Link Attributes jeżeli jest dostępne na translatewiki.net
Category:All extensions/pl

This extension adds support for the rel, rev and class attributes on external links:

  • relThe relationship of the linked URL as space-separated link types.
  • revSpecified a reverse link; the opposite of the rel attribute. Deprecated for being very confusing.
  • class – A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements.

Użycie

The syntax is a little unorthodox. To set the rel attribute, place one or more tokens in double-parentheses at the end of the link title. e.g.:

  [http://tobyinkster.co.uk/ My website((me home))]

The above would be converted to the following link:

  <a href="http://tobyinkster.co.uk/" rel="me home" class="external">My website</a>

To set the class attribute, the same syntax is used, but tokens which represent classes are prefixed with a dot:

  [http://tobyinkster.co.uk/ My website((me .class1 home .class2))]

Becomes:

  <a href="http://tobyinkster.co.uk/" rel="me home" class="external class1 class2">My website</a>

Similarly, prefixing with a tilde (~) sets the rev attribute.

Tokens may be prefixed by a minus sign (-) to indicate that you don't want to add the token, but remove it. For example:

  [http://tobyinkster.co.uk/ My website((me -.external home))]

Becomes:

  <a href="http://tobyinkster.co.uk/" rel="me home">My website</a>

The "nofollow" rel token is considered untouchable though.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie Link_Attributes w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Link_Attributes
    
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'Link_Attributes' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Zobacz też

Category:All extensions/pl Category:Extensions in Wikimedia version control/pl Category:GPL licensed extensions/pl Category:HtmlPageLinkRendererEnd extensions/pl Category:LinkerMakeExternalLink extensions/pl Category:Parser function extensions/pl Category:Stable extensions/pl