Jump to content

Template:Update history navbox: Difference between revisions

From Bconomy Wiki
Add reusable category-populated version history navigation
 
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="clear:both;"></div>
<templatestyles src="Bconomy navbox/styles.css" /><templatestyles src="Update history navbox/styles.css" />
<div class="bc-navbox mw-collapsible" role="navigation" aria-label="Bconomy version history">
<div class="bc-navbox bc-navbox-panel mw-collapsible {{#ifeq:{{FULLPAGENAME}}|Main Page|mw-collapsed}}" data-expandtext="Show" data-collapsetext="Hide" role="navigation" aria-label="Bconomy update history">
<div class="bc-navbox-title">[[{{{index|{{#ifexist:Version history|Version history|Draft:Version history}}}}}|Bconomy version history]]</div>
<div class="bc-navbox-title">[[Update history|Update History]]</div>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{| class="bc-navbox-table"
{{#invoke:Update history navbox|render}}
|-
<div class="bc-navbox-archive">[[Update history|Chronological index]] · [[:Category:Game updates|All update articles]]</div>
! Updates
</div>
|
{{#categorytree:{{{category|Game updates}}}|mode=pages|namespaces=0|depth=1|hideroot=on|showcount=off}}
|-
! Browse
| [[{{{index|{{#ifexist:Version history|Version history|Draft:Version history}}}}}|Version history]] · [[:Category:{{{category|Game updates}}}|All update articles]]
|}
</div>
</div>
</div></includeonly><noinclude>
Reusable version-history navigation for update articles.
== Usage ==
<pre>{{Version history navbox}}</pre>
The update list is populated by the installed CategoryTree extension from main-namespace members of '''[[:Category:Game updates]]'''. Add the category to an update article; no release list is copied into this template or its callers. Draft, user and template pages are excluded. The separate Version history index provides release chronology.
The list follows category sort keys and MediaWiki's normal category/cache updates. CategoryTree has a configured display limit; the '''All update articles''' link opens the paginated category, and '''Version history''' opens the full chronological index.
The optional <code>index</code> and <code>category</code> parameters select a different index or category. The index defaults to Version history when published, otherwise Draft:Version history.
{{Version history navbox}}
</noinclude>

Latest revision as of 15:03, 4 November 2026