Template:Development nav: Difference between revisions
From VNDev Wiki
m cleaning up new collapsible sections |
got semi-auto-uncollapsing sections working - i think? |
||
Line 20: | Line 20: | ||
* [[Marketing]] | * [[Marketing]] | ||
|navbar= off | |navbar= off | ||
|state={{#switch: {{{category|}}} | |||
| asset | |||
| assets | |||
| Asset | |||
| Assets =mw-uncollapsed | |||
| default mw-collapsed}} | |||
|bodystyle= width:100% | |bodystyle= width:100% | ||
|titlestyle= text-align:left; font-weight:normal; padding-left: 0.25em; font-size: 88% | |titlestyle= text-align:left; font-weight:normal; padding-left: 0.25em; font-size: 88% | ||
Line 85: | Line 93: | ||
* [[Accessibility]] | * [[Accessibility]] | ||
|navbar= off | |navbar= off | ||
|state={{#switch: {{{category|}}} | |||
| feature | |||
| features | |||
| Feature | |||
| Features =mw-uncollapsed | |||
| default mw-collapsed}} | |||
|bodystyle= width:100% | |bodystyle= width:100% | ||
|titlestyle= text-align:left; font-weight:normal; padding-left: 0.25em; font-size: 88% | |titlestyle= text-align:left; font-weight:normal; padding-left: 0.25em; font-size: 88% |
Revision as of 13:45, 18 December 2024
|
Usage
For most pages, simply transclude the template with no parameters: {{development nav}}
If a page is located in one of the collapsible sections (currently Assets and Features), add a "section" parameter to ensure that the appropriate section is made uncollapsed by default: {{development nav|section=assets}}
.
For editor convenience, accepted values for section
are:
asset
assets
Asset
Assets
feature
features
Feature
Features
The above documentation is transcluded from Template:Development nav/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |