Editing Template:Navbox/doc
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 207: | Line 207: | ||
:; ''innerstyle'' | :; ''innerstyle'' | ||
:: A very advanced parameter to be used ''only'' for advanced meta-templates employing the navbox. Internally, the navbox uses an outer table to draw the border, and then an inner table for everything else (title/above/groups/lists/below/images, etc.). The ''style''/''bodystyle'' parameter sets the style for the outer table, which the inner table inherits, but in advanced cases (meta-templates) it may be necessary to directly set the style for the inner table. This parameter provides access to that inner table so styles can be applied. Use at your own risk. | :: A very advanced parameter to be used ''only'' for advanced meta-templates employing the navbox. Internally, the navbox uses an outer table to draw the border, and then an inner table for everything else (title/above/groups/lists/below/images, etc.). The ''style''/''bodystyle'' parameter sets the style for the outer table, which the inner table inherits, but in advanced cases (meta-templates) it may be necessary to directly set the style for the inner table. This parameter provides access to that inner table so styles can be applied. Use at your own risk. | ||
+ | |||
+ | ====Microformats==== | ||
+ | ;bodyclass : This parameter is inserted into the "class" attribute for the infobox as a whole. | ||
+ | ;titleclass : This parameter is inserted into the "class" attribute for the infobox's title caption. | ||
+ | |||
+ | This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a navbox as containing [[hCard]] information about a person, for example, add the following parameter: | ||
+ | |||
+ | <pre> | ||
+ | |bodyclass = vcard | ||
+ | </pre> | ||
+ | |||
+ | ''and'' | ||
+ | |||
+ | <pre> | ||
+ | |titleclass = fn | ||
+ | </pre> | ||
+ | |||
+ | ''or'' (for example): | ||
+ | |||
+ | <pre><nowiki> | ||
+ | |title = The books of <span class="fn">[[Iain Banks]]</span> | ||
+ | </nowiki></pre> | ||
+ | |||
+ | ...and so forth. | ||
== Layout of table == | == Layout of table == |