Difference between revisions of "Template:ChangelogTop"

From Nookipedia, the Animal Crossing wiki
(Merging version and date columns (better for mobile experience))
(Convert table to styled class)
Line 1: Line 1:
<includeonly>{| class="unsortable roundCorners" align=center style="background: #5FB983; border: 4px solid #5FB983; {{#if: {{{fullwidth|}}}| width: 99%; | }} {{roundy|14px}}"
+
<includeonly>{| class="styled color-updates" style="margin: 0 auto; {{#if: {{{fullwidth|}}}| width: 99%; | }}"
 
|-
 
|-
! style="font-weight: normal; font-family: Coustard; color: #2f6a47; font-size: 1.2em; padding: 0px 5px; text-align:center; width:50px; background-color:#CAE8D6; {{roundytl|9px}}"| Version
+
! style="font-size: 1.2em;"| Version
! width=600px style="font-weight: normal; font-family: Coustard; color: #2f6a47; font-size: 1.2em; padding: 0px 5px; background-color:#CAE8D6; {{roundytr|9px}}"| Changelog</includeonly><noinclude>{{Documentation|Template:Changelog}}[[Category:Table templates]]</noinclude>
+
! width=600px style="font-size: 1.2em;"| Changelog</includeonly><noinclude>{{Documentation|Template:Changelog}}[[Category:Table templates]]</noinclude>

Revision as of 13:11, March 17, 2021

Template documentation (view)


This is a base template for changelog tables. It is to be used in conjunction with Template:ChangelogTop (place above any uses of Template:Changelog) and Template:ChangelogBottom (place below).

Code Function
version Version number for game update
date Release date for game update
changelog Full changelog, detailing all additions and modifications made by the update

By default, the table will only take up a portion of the browser's width. If you would like to save vertical space, you can add fullwidth=true to Template:ChangelogTop to make the table take the full width of the page.

Below is an example of usage, taken from Animal Crossing: Pocket Camp#Update History.

{{ChangelogTop}} {{Changelog |version = 0.9.0 |date = October 25, 2017 |changelog = * Initial release in {{wp|Australia}} }} {{ChangelogBottom}}