Difference between revisions of "Template:Snapshot PVN"

From wiki.vg
Jump to navigation Jump to search
(Create template)
 
m (Use semicolon rather than comma after the word "Snapshot".)
 
Line 1: Line 1:
<includeonly><abbr title="Snapshot, add 0x40000000 to get true PVN of {{{1}}}">Snapshot {{#expr: {{{1}}} - 1073741824}}</abbr></includeonly><noinclude>{{Snapshot PVN/doc}}</noinclude>
+
<includeonly><abbr title="Snapshot; add 0x40000000 to get true PVN of {{{1}}}">Snapshot {{#expr: {{{1}}} - 1073741824}}</abbr></includeonly><noinclude>{{Snapshot PVN/doc}}</noinclude>

Latest revision as of 23:18, 4 February 2021

This template produced shortened protocol version numbers for recent snapshots. It is only meant to be used when the PVN is a large number (at least 1073741824 = 0x40000000); older snapshots that used the same PVN scheme as releases should not use it. {{Protocol version numbers/Entry}} automatically applies this template.

  • {{Snapshot PVN|1073741825}} produces Snapshot 1
  • {{Snapshot PVN|442}} produces Snapshot -1073741382 (don't do this)