TopMenu – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
m (Text replacement - "\[\[Arma 3 ([^ACHJKLMTZ|])([^|]+)\]\]" to "Arma 3: $1$2")
Line 16: Line 16:
| {{TopMenu}}
| {{TopMenu}}
|-
|-
| <nowiki>{{TopMenu|[https://google.com Google][[{{arma3}}]][[Arma 3 Getting Started]]}}</nowiki>
| <nowiki>{{TopMenu|[https://google.com Google][[{{arma3}}]][[Arma 3: Getting Started]]}}</nowiki>
| {{TopMenu|[https://google.com Google][[{{arma3}}]][[Arma 3 Getting Started]]}}
| {{TopMenu|[https://google.com Google][[{{arma3}}]][[Arma 3: Getting Started]]}}
|-
|-
| <nowiki>{{ TopMenu | [https://google.com Google] [[{{arma3}}]] [[Arma 3 Getting Started]] }}</nowiki>
| <nowiki>{{ TopMenu | [https://google.com Google] [[{{arma3}}]] [[Arma 3: Getting Started]] }}</nowiki>
| {{ TopMenu | [https://google.com Google] [[{{arma3}}]] [[Arma 3 Getting Started]] }}
| {{ TopMenu | [https://google.com Google] [[{{arma3}}]] [[Arma 3: Getting Started]] }}
|}
|}


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

Revision as of 19:30, 7 April 2021

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][[{{arma3}}]][[Arma 3: Getting Started]]}}
{{ TopMenu | [https://google.com Google] [[{{arma3}}]] [[Arma 3: Getting Started]] }}