Difference between revisions of "Protocol version numbers/Entry"

From wiki.vg
Jump to navigation Jump to search
(Template to simplify common cases for Protocol version numbers)
 
(Fix template and also usage within the subpage (relative references only will work on the article))
Line 3: Line 3:
 
  | {{Minecraft Wiki|{{{1}}} }}
 
  | {{Minecraft Wiki|{{{1}}} }}
 
  | {{{2}}}
 
  | {{{2}}}
  |
+
  | {{#if: {{{3}}} | {{#ifeq: {{{3}}} | cur | [[{{#if: {{{snap}}} | Pre-release protocol | Protocol}}{{!}}page]] | [{{canonicalurl:{{#if: {{{snap}}} | Pre-release protocol | Protocol}}|oldid={{{3}}}}} page]}}}}
{{#if: {{{snap}}} | {{#ifeq: {{{snap}}} | cur | [[Pre-release protocol{{!}}page]] | [{{canonicalurl:Pre-release protocol|oldid={{{snap}}}}} page]}}}}
 
{{#if: {{{ver}}} | {{#ifeq: {{{ver}}} | cur | [[Protocol{{!}}page]] | [{{canonicalurl:Protocol|oldid={{{snap}}}}} page]}}}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
Used to generate the table for simple cases where the PVN is unique to a single version.
 
Used to generate the table for simple cases where the PVN is unique to a single version.
Line 40: Line 38:
 
  ! Version number
 
  ! Version number
 
  ! Last known documentation
 
  ! Last known documentation
{{/Entry|18w43c|442|cur|snap=1}}
+
{{:Protocol version numbers/Entry|18w43c|442|cur|snap=1}}
{{/Entry|18w43b|441|14397|snap=1}}
+
{{:Protocol version numbers/Entry|18w43b|441|14397|snap=1}}
{{/Entry|18w43a|440|snap=1}}
+
{{:Protocol version numbers/Entry|18w43a|440|snap=1}}
{{/Entry|1.13.2|404|cur}}
+
{{:Protocol version numbers/Entry|1.13.2|404|cur}}
 
  |-
 
  |-
 
  | {{Minecraft Wiki|1.13.2-pre2}}
 
  | {{Minecraft Wiki|1.13.2-pre2}}
Line 50: Line 48:
 
  |-
 
  |-
 
  | {{Minecraft Wiki|1.13.2-pre1}}
 
  | {{Minecraft Wiki|1.13.2-pre1}}
{{/Entry|1.13.1|401|14301}}
+
{{:Protocol version numbers/Entry|1.13.1|401|14301}}
 
  |}
 
  |}
  
 
The <code>REVISIONID</code> [[mw:help:Magic words|magic word]] can be subst'd in to help with entering for the previous snapshot (assuming that the version list is updated before the pre-release page is updated).
 
The <code>REVISIONID</code> [[mw:help:Magic words|magic word]] can be subst'd in to help with entering for the previous snapshot (assuming that the version list is updated before the pre-release page is updated).
 
</noinclude>
 
</noinclude>

Revision as of 22:37, 21 March 2019

Used to generate the table for simple cases where the PVN is unique to a single version.

Takes 3 arguments. The first is the version name (fed into template:Minecraft Wiki). The second is the PVN. The third specifies the page revision, which can be cur for current or blank if not present. An optional snap parameter can be set to indicate that Pre-release protocol should be used instead of Protocol.

Example usage (sample data is not 100% accurate):

{| class="wikitable"
 |-
 ! Release name
 ! Version number
 ! Last known documentation
{{/Entry|18w43c|442|cur|snap=1}}
{{/Entry|18w43b|441|14397|snap=1}}
{{/Entry|18w43a|440|snap=1}}
{{/Entry|1.13.2|404|cur}}
 |-
 | {{Minecraft Wiki|1.13.2-pre2}}
 |rowspan="2"| Some other version
 |rowspan="2"| [{{canonicalurl:Pre-release protocol|oldid=14359}} page]
 |-
 | {{Minecraft Wiki|1.13.2-pre1}}
{{/Entry|1.13.1|401|14301}}
 |}

which produces:

Release name Version number Last known documentation
18w43c 442 page


18w43b 441 page


18w43a 440 page


1.13.2 404 page
1.13.2-pre2 Some other version page
1.13.2-pre1
1.13.1 401 page

The REVISIONID magic word can be subst'd in to help with entering for the previous snapshot (assuming that the version list is updated before the pre-release page is updated).