TopMenu – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Shows a horizontal menu (designed for only a few entries). | Shows a horizontal menu (designed for only a few entries). | ||
{{Feature | important | Links should be all on the same line to avoid unwanted | {{Feature | important | Links should be all on the same line to avoid unwanted {{hl|<p>}} tags leading to smaller anchor links mid-menu.}} | ||
== Usage == | == Usage == | ||
Line 16: | Line 16: | ||
| {{TopMenu}} | | {{TopMenu}} | ||
|- | |- | ||
| <nowiki>{{TopMenu|[https://google.com Google][[{{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][[{{arma3}}]][[Arma 3 Getting Started]]}} | | {{TopMenu|[https://google.com Google][[:Category:Arma 3|{{arma3}}]][[Arma 3: Getting Started]]}} | ||
|- | |- | ||
| <nowiki>{{ TopMenu | [https://google.com Google] [[{{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] [[{{arma3}}]] [[Arma 3 Getting Started]] }} | | {{ 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 10:32, 16 November 2021
Shows a horizontal menu (designed for only a few entries).
Usage
{{TopMenu|links}}
- links: Wiki links (internal or external)
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]] }} |