Template:Version History

From Calamity Mod Wiki
(Redirected from Template:Vh)
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for Templates to learn more.
See Template:Version History/l10n for the localization of this template.
Lua.svg
This template uses Module:Version History, a script written in the Lua programming language. Please see wikipedia:Lua and mw:Extension:Scribunto to learn more about Lua.
Template-info.svg Documentation The documentation below is transcluded from Template:Version History/doc. (edit | history)

This is a shortcut template that transcludes history subpages onto their respective main page. If no such page exists, the template will produce a redlink.

If the section is getting large, some version entities will be collapsed. The rules are:

  • Collapse will not start inside a version entry, it will always start at the beginning of a version entity.
  • If the number of lines reaches T1 in (n)th version entry, collapse will start at (n+1)th version entry. (Expect to show T1 lines or slightly more.)
    • However, if in (n)th version entry the number of lines further reaches T2, collapse will start earlier at (n)th version entry. (If (n)th entity happens to be fairly long, also collapse it.)
  • The first version entry is never collapsed, no matter how long it is.

By default, T1=10 and T2=15, and can be changed via |showlines= and |maxshowlines= parameters respectively.