Template:Navbox/doc: Difference between revisions
→Setup parameters: v • d • e ==> V • T • E
(remove cats and interwikis from sandbox) |
(→Setup parameters: v • d • e ==> V • T • E) |
||
| Line 75: | Line 75: | ||
=== Setup parameters === | === Setup parameters === | ||
:; ''name''<nowiki>*</nowiki> | :; ''name''<nowiki>*</nowiki> | ||
:: The name of the template, which is needed for the " | :: The name of the template, which is needed for the "V{{·}} T{{·}} E" ("View{{·}} Talk{{·}} Edit") links to work properly on all pages where the template is used. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></code> for this value as a shortcut. The name parameter is only mandatory if a <code>title</code> is specified, and the <code>border</code> parameter is not set. | ||
:; ''state''<nowiki>*</nowiki> <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span> | :; ''state''<nowiki>*</nowiki> <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span> | ||
:* Defaults to <code>autocollapse</code>. A navbox with <code>autocollapse</code> will start out collapsed if there are two or more tables on the same page that use other collapsible tables. Otherwise, the navbox will be expanded. For the technically minded, see [[MediaWiki:Common.js]]. | :* Defaults to <code>autocollapse</code>. A navbox with <code>autocollapse</code> will start out collapsed if there are two or more tables on the same page that use other collapsible tables. Otherwise, the navbox will be expanded. For the technically minded, see [[MediaWiki:Common.js]]. | ||
:* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. | :* If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. | ||
:* If set to <code>plain</code>, the navbox will always be expanded with no [hide] link on the right, and the title will remain centered (by using padding to offset the <small> | :* If set to <code>plain</code>, the navbox will always be expanded with no [hide] link on the right, and the title will remain centered (by using padding to offset the <small>V • T • E</small> links). | ||
:* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the right, but no padding will be used to keep the title centered. This is for advanced use only; the "plain" option should suffice for most applications where the [show]/[hide] button needs to be hidden. | :* If set to <code>off</code>, the navbox will always be expanded with no [hide] link on the right, but no padding will be used to keep the title centered. This is for advanced use only; the "plain" option should suffice for most applications where the [show]/[hide] button needs to be hidden. | ||
:*If set to anything other than <code>autocollapse</code>, <code>collapsed</code>, <code>plain</code>, or <code>off</code> (such as "uncollapsed"), the navbox will always start out in an expanded state, but have the "hide" button. | :*If set to anything other than <code>autocollapse</code>, <code>collapsed</code>, <code>plain</code>, or <code>off</code> (such as "uncollapsed"), the navbox will always start out in an expanded state, but have the "hide" button. | ||
| Line 97: | Line 97: | ||
:; ''navbar''<nowiki>*</nowiki> | :; ''navbar''<nowiki>*</nowiki> | ||
:: If set to <code>plain</code>, the <span style="font-size:88%;"> | :: If set to <code>plain</code>, the <span style="font-size:88%;">V • T • E</span> links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered. Use <code>off</code> to remove the <span style="font-size:88%;">V • T • E</span> links, but not apply padding (this is for advanced use only; the "plain" option should suffice for most applications where a navbar is not desired). It is highly recommended that one not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages. | ||
:; ''border''<nowiki>*</nowiki> | :; ''border''<nowiki>*</nowiki> | ||