Content deleted Content added
m change source to syntaxhighlight |
GKNishimoto (talk | contribs) No edit summary |
||
(9 intermediate revisions by 8 users not shown) | |||
Line 1:
{{used in system|in [[MediaWiki:Wantedpages-summary]]}}
{{module rating|protected}}
{{Lua|Module:Yesno|Module:Arguments|Module:Format link}}
{{Uses TemplateStyles|Module:Hatnote/styles.css}}
This is a meta-module that provides various functions for making [[Wikipedia:Hatnote|hatnotes]]. It implements the {{tl|hatnote}} template, for use in hatnotes at the top of pages
== Use from wikitext ==
Line 28:
* <var>options.extraclasses</var> - a string of extra classes to provide
* <var>options.selfref</var> - if this is not nil or false, adds the class "selfref", used to denote self-references to Wikipedia (see [[Template:Selfref]]))
The CSS of the hatnote class is defined in [[
; Example 1
Line 53:
Displayed as:
{{hatnote|This is a hatnote.|extraclasses=boilerplate seealso|selfref=true}}
=== Find namespace id ===
Line 116 ⟶ 82:
== Examples ==
For an example of how this module is used in other Lua modules, see [[Module:
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
Line 122 ⟶ 88:
[[Category:Modules that add a tracking category]]
}}</includeonly><noinclude>
[[Category:Module documentation pages]]
</noinclude>
|