TopMenu – Template

From Bohemia Interactive Community
m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
m (Add example)
 
Line 21: Line 21:
| <nowiki>{{ TopMenu | [https://google.com Google] [[:Category:Arma 3|{{arma3}}]] [[Arma 3: Getting Started]] }}</nowiki>
| <nowiki>{{ TopMenu | [https://google.com Google] [[:Category:Arma 3|{{arma3}}]] [[Arma 3: Getting Started]] }}</nowiki>
| {{ TopMenu | [https://google.com Google] [[:Category:Arma 3|{{arma3}}]] [[Arma 3: Getting Started]] }}
| {{ TopMenu | [https://google.com Google] [[:Category:Arma 3|{{arma3}}]] [[Arma 3: Getting Started]] }}
|-
| style="white-space: pre" | <nowiki>
{{TopMenu|
[https://google.com Google]
[[:Category:Arma 3|{{arma3}}]]
[[Arma 3: Getting Started]]
}}
</nowiki>
|
{{TopMenu|
[https://google.com Google]
[[:Category:Arma 3|{{arma3}}]]
[[Arma 3: Getting Started]]
}}
|}
|}


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

Latest revision as of 20:20, 2 March 2025

Shows a horizontal menu (designed for only a few entries).

Links should be all on the same line to avoid unwanted <p> tags leading to smaller anchor links mid-menu.

Usage

{{TopMenu|links}}

  • links: Wiki links (internal or external)
Examples
Code Result
{{TopMenu}}
-
{{TopMenu|[https://google.com Google][[:Category:Arma 3|{{arma3}}]][[Arma 3: Getting Started]]}}
{{ TopMenu | [https://google.com Google] [[:Category:Arma 3|{{arma3}}]] [[Arma 3: Getting Started]] }}
{{TopMenu| [https://google.com Google] [[:Category:Arma 3|{{arma3}}]] [[Arma 3: Getting Started]] }}