Hatnote – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Useful for directing people immediately to alternative documentation. A kind of instant "see also" for ambiguous pages.)
 
m (lineReturn--)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{subst:#if:{{{1|}}}|<div class="dablink">{{{1}}}</div>|}}</includeonly><noinclude>
<includeonly><div class="dablink">ⓘ ''{{{1|-no text defined-}}}''</div>
===Usage===
----</includeonly><noinclude>
Place {{Inline code|<nowiki>{{Hatnote|This page is about Arma 2 functionality. For similar functionality in Arma 3, see [[This page]].}}</nowiki>}} at the top of a page, and the result will look a little like this (assume the next horizontal line is the top of a real page):
== Usage ==
<br>
{{<nowiki/>Hatnote|'''''message'''''}}
<br>
* message: text to be displayed
<br>
<br>
----
{{Hatnote|This page is about Arma 2 functionality. For similar functionality for Arma 3, see [[This page]]}}


{{Lorem}}
{| class="wikitable"
 
|+ Examples
==Main heading==
! Code
 
! Result
{{Lorem}}
|-
 
| <nowiki>{{Hatnote}}</nowiki>
etc...
| {{Hatnote}}
|-
| <nowiki>{{Hatnote|This page is about {{arma2}}. For similar functionality in {{arma3}}, see [[addAction]].}}</nowiki>
| {{Hatnote|This page is about {{arma2}}. For similar functionality in {{arma3}}, see [[addAction]].}}
|}


[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]</noinclude>

Latest revision as of 14:23, 10 December 2020

Usage

{{Hatnote|message}}

  • message: text to be displayed
Examples
Code Result
{{Hatnote}}
{{Hatnote|This page is about {{arma2}}. For similar functionality in {{arma3}}, see [[addAction]].}}