Abrir menu principal

Mudanças

Módulo:Redirect hatnote/doc

946 bytes adicionados, 10h47min de 17 de dezembro de 2019
Criação da Documentação do Módulo Redirect hatnote.
{{replace|{{replace||template|module}}|Template:|Module:|count=1}}
{{high-use| 34937 }}
{{Module rating|protected}}

This module produces a [[WP:HATNOTE|hatnote]] for disambiguating a page that is linked to by a given redirect. It implements the {{tl|redirect}} hatnote template.

== Usage from wikitext ==

This module cannot be used directly from wikitext. Please use the {{tl|redirect}} or {{tl|redirect2}} templates instead.

== Usage from Lua ==

To use this module from Lua, first load the module.

<source lang="lua">
local mRedirectHatnote = require('Module:Redirect hatnote')
</source>

The module can then be used with the following syntax:

<source lang="lua">
mRedirectHatnote._redirect(redirect, data, options, titleObj)
</source>

== See also ==
* [[Module:Redirect-distinguish]]

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Hatnote modules]]
}}</includeonly>