Jump to content

Template:Update history navbox: Difference between revisions

From Bconomy Wiki
Avoid stale category counts in automatic update navigation
Tag: Manual revert
Replace the flat update list with automatically discovered year categories
Line 1: Line 1:
<includeonly><div style="clear:both;"></div>
<includeonly><div class="bc-navbox" style="clear:both;" role="navigation" aria-label="Bconomy version history">
<div class="bc-navbox mw-collapsible" role="navigation" aria-label="Bconomy version history">
<div class="bc-navbox-title">[[Version history|Bconomy version history]]</div>
<div class="bc-navbox-title">[[{{{index|{{#ifexist:Version history|Version history|Draft:Version history}}}}}|Bconomy version history]]</div>
<div class="mw-collapsible-content">
{| class="bc-navbox-table"
{| class="bc-navbox-table"
|-
|-
! Updates
! Browse by year
|
|
{{#categorytree:{{{category|Game updates}}}|mode=pages|namespaces=0|depth=1|hideroot=on|showcount=off}}
{{#categorytree:Game updates|mode=categories|depth=1|hideroot=on|showcount=off}}
|-
|-
! Browse
! Full archive
| [[{{{index|{{#ifexist:Version history|Version history|Draft:Version history}}}}}|Version history]] · [[:Category:{{{category|Game updates}}}|All update articles]]
| [[Version history|Chronological index]] · [[:Category:Game updates|All update articles]]
|}
|}
</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
Reusable version-history navigation for update articles.
Browse updates by year. The list updates automatically as year categories are added to [[:Category:Game updates]]. The chronological index lists individual releases.
 
== 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>
</noinclude>

Revision as of 21:54, 3 November 2026

Browse updates by year. The list updates automatically as year categories are added to Category:Game updates. The chronological index lists individual releases.