Module:Hatnote inline/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
No edit summary
(clarify)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{replace|{{replace||template|module}}|Template:|Module:|count=1}}
{{module rating|<!-- Insert rating or delete if not needed. Values: "pre-alpha", "alpha", "beta", "release" or "protected". -->beta}}
{{module rating|<!-- Insert rating or delete if not needed. Values: "pre-alpha", "alpha", "beta", "release" or "protected". -->release|note=Could be merged into Module:Hatnote, if templates that invoke it called a particular function.}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->


This module produces hatnote-style links and links to related articles, but inside a <nowiki><span></nowiki>, instead of the <nowiki><div></nowiki> used by Module:Hatnote. It implements the {{tlx|hatnote-inline}} meta-template.
This module produces hatnote-style notes ≠ [[WP:SELFREF|self-references and notes-to-reader]] – usually to related articles or a section/anchor at the same page. It does this inside a {{tag|span}}, instead of the {{tag|div}} used by Module:Hatnote. It implements the {{tlx|hatnote inline}} meta-template.


== Usage ==
== Usage ==


&#123;{#invoke:{{BASEPAGENAME}}|''function_name''}}
&#123;{#invoke:{{BASEPAGENAME}}|''hatnote''|''text''}}


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

}}</includeonly>
}}</includeonly>

Latest revision as of 03:22, July 14, 2018

Template:Replace


This module produces hatnote-style notes ≠ self-references and notes-to-reader – usually to related articles or a section/anchor at the same page. It does this inside a <span>...</span>, instead of the <div>...</div> used by Module:Hatnote. It implements the {{hatnote inline}} meta-template.

Usage

{{#invoke:Hatnote inline|hatnote|text}}