Seunaleuëk:Navbox/doc: Bida antara revisi

Konten dihapus Konten ditambahkan
MerlIwBot (marit | peuneugöt)
b bot Membuang: gu:ઢાંચો:Navbox (deleted)
Baris6161TURK (marit | peuneugöt)
b Replacing old tags, i.e. tt --> code
Baréh 55:
:<code>state - </code>controls when a navbox is expanded or collapsed.
 
:<code>listclass - </code>a CSS class for the list cells, usually <ttcode>hlist</ttcode> for horizontal lists.
:<code>titlestyle - </code>a CSS style for the title-bar, such as: <code>background:gray;</code>
:<code>groupstyle - </code>a CSS style for the group-cells, such as: <code>background:#eee;</code>
Baréh 90:
: Often times, editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this:
:*In your intermediate template, create a parameter also named "state" as a pass-through like this:
:*<ttcode><nowiki>| state = {{{state<includeonly>|your_desired_initial_state</includeonly>}}}</nowiki></ttcode>
:*The <nowiki><includeonly>|</nowiki> will make the template expanded when viewing the template page by itself.
 
Baréh 210:
:; ''listclass''
:; ''belowclass''
:: This enables attaching a CSS class to group or list cells. The most common use for ''listclass'' is to give it the <ttcode>hlist</ttcode> class that will cause lists to render horizontally. All these parameters accept the <code>hlist</code> class, but if more than one parameter is used for <code>hlist</code>, use {{para|bodyclass|hlist}} instead.
 
:; ''titlegroup''