Template:Development nav/doc: Difference between revisions

From VNDev Wiki
allow using subcategories instead of always using category:Development
→‎Usage: updated
 
Line 2: Line 2:


==Usage==
==Usage==
If the page is about development but doesn't fit one of the existing subcategories:<div style="margin-left: 1em; margin-top: 0; padding-left: 1em; border-left: solid medium #fea;">{{tl|development nav}}</div>
For most pages, simply transclude the template with no parameters: <code><nowiki>{{development nav}}</nowiki></code>


If it does fit a subcategory, such as [[:Category:Marketing|Marketing]], add <code>|category=</code> and the name of the category, like this:<div style="margin-left: 1em; margin-top: 0; padding-left: 1em; border-left: solid medium #fea;"> {{tl|development nav|{{!}}category{{=}}Marketing}}</div>
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: <code><nowiki>{{development nav|section=assets}}</nowiki></code>.
 
For editor convenience, accepted values for <code>section</code> are:  
*<code>asset</code>
*<code>assets</code>
*<code>Asset</code>
*<code>Assets</code>
*<code>feature</code>
*<code>features</code>
*<code>Feature</code>
*<code>Features</code>


<includeonly>
<includeonly>
[[Category:Navigation templates]]
[[Category:Navigation templates]]
</includeonly>
</includeonly>

Latest revision as of 13:58, 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