Jump to content

Template:Ghat and Template:Ghat/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
directly call the module to reduce WP:PEIS. We must pass selfref=yes to replicate the behavior when selfref isn't passed to the template.
 
add ability to import pre-existing hatnotes; will need inline style to override their indentation; may need to fork into actual hatnote (selfref) and on-page crossref (printworthy) versions
 
Line 1: Line 1:
<p class="glossary-hatnote"><noinclude><!--We are using p not div here for a reason.--></noinclude>{{#invoke:hatnote inline|hatnoteInline|1={{{1}}}|selfref=yes}}<noinclude><!--Passing selfref=yes to Module:Hatnote_inline is equivalent to not passing selfref to Template:Hatnote_inline.--></noinclude></p><noinclude>
<p class="glossary-hatnote" style="{{#if:{{{import}}}||}}><!--We are using p not div here for a reason.-->{{#if:{{{import|}}}|{{{import}}}|{{hatnote-inline|1={{{1}}}}}<!--We are not passing the selfref parameter for a reason.-->}}</p><noinclude>
{{documentation}}<!--Categories go on the /doc subpage, and interwikis go on WikiData.-->
{{documentation}}<!--Categories go on the /doc subpage, and interwikis go on WikiData.-->
</noinclude>
</noinclude>