Manuel:Linker.php
Fichier MediaWiki : Linker.php | |
---|---|
Emplacement : | includes/ |
Code source : | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes : | MediaWiki\Linker\Linker |
The Linker class contains methods for creating links and related items.
Détails
Linker.php découpe certaines parties internes de Skin.php . Les fonctions de Linker sont utilisées principalement pour le contenu des pages : les liens, les images incluses, le sommaire.
Previous class name before MediaWiki 1.40: MovePageForm
(without namespace).
Public methods
Include:
- makeSelfLinkObj()
- getInvalidTitleDescription()
- Methods for images, media files
-
- makeExternalImage()
- makeImageLink()
- getImageLinkMTOParams()
- makeThumbLinkObj()
- makeThumbLink2()
- processResponsiveImages()
- makeBrokenImageLinkObj()
- makeMediaLinkObj()
- makeMediaLinkFile()
- TOC
-
- tocIndent()
- tocUnindent()
- tocLine()
- tocLineEnd()
- tocList()
- generateTOC()
- Rollback links
-
- generateRollback()
- getRollbackEditCount()
- buildRollbackLink()
- Other
-
- specialLink()
- makeExternalLink()
- userLink()
- userToolLinks()
- userToolLinksRedContribs()
- userTalkLink()
- blockLink()
- emailLink()
- revUserLink()
- getRevisionDeletedClass()
- revUserTools()
- expandLocalLinks()
- normalizeSubpageLink()
- formatRevisionSize()
- makeHeadline()
- splitTrail()
- formatHiddenCategories()
- titleAttrib()
- accesskey()
- getRevDeleteLink()
- revDeleteLink()
- revDeleteLinkDisabled()
- tooltipAndAccesskeyAttribs()
- tooltip()
Voir aussi
- Manual:LinkRenderer.php. Several methods - link(), linkKnown(), normaliseSpecialPage, etc. - are deprecated in favour of using LinkRenderer.
- Manual:CommentFormatter.php. Another class that has adopted some of Linker's methods.