Template:Menu

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Usage[edit]

Examples[edit]

{{menu
|logo=[[File:Wikimedia-logo.svg|100px]]
|<hr>[http://wikimediafoundation.org Official website]
|{{menu/style|head}}[[Wikimedia committees|Committees]]
|[[Chapters committee|Chapters]]
|[[Communications committee|Communications]]
|[[Events committee|Events]]
|[[Fundraising committee|Fundraising]]
|[[Special projects committee|Special projects]]
|[[Trademarks committee|Trademarks]]
}}

Note that the content of the menu is passed in numbered parameters 1 to N for each row (in this example they are not named). If you need to insert code that contains equal signs (for example HTML elements with attributes for style, language or direction), and if you don't want to maintain explicit numbers for each row, you must protect them within templates generating the item (you may also use {{=}} to generate an isolated equal sign without having to create a specific template for the item).

{{menu
|dir=rtl
|logo=[[File:Wikimedia-logo.svg|100px]]
|<hr>[http://wikimediafoundation.org Official website]
|{{menu/style|head}}[[Wikimedia committees|Committees]]
|[[Chapters committee|Chapters]]
|[[Communications committee|Communications]]
|[[Events committee|Events]]
|[[Fundraising committee|Fundraising]]
|[[Special projects committee|Special projects]]
|[[Trademarks committee|Trademarks]]
}}