Difference between revisions of "Protocol version numbers/Entry"
(Fix template and also usage within the subpage (relative references only will work on the article)) |
(Use {{Snapshot PVN}}) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly> |- |
− | + | | {{#if: {{{snap|}}} | {{Minecraft Wiki|{{{1}}} }} | '''{{Minecraft Wiki|Java Edition {{{1}}}|{{{1}}}}}'''}} | |
− | | {{Minecraft Wiki|{{{1}}} }} | + | | {{#ifexpr: {{{2}}} >= 1073741824 | {{Snapshot PVN|{{{2}}}}} | {{{2}}} }} |
− | | {{{2}}} | + | | {{#if: {{{3|}}} | {{#ifeq: {{{3}}} | cur | [[{{#if: {{{snap|{{{pre_release_doc|}}}}}} | Pre-release protocol | Protocol}}{{!}}page]] | [{{canonicalurl:{{#if: {{{snap|{{{pre_release_doc|}}}}}} | Pre-release protocol | Protocol}}|oldid={{{3}}}}} page]}}}}</includeonly><noinclude> |
− | | {{#if: {{{3}}} | {{#ifeq: {{{3}}} | cur | [[{{#if: {{{snap}}} | Pre-release protocol | Protocol}}{{!}}page]] | [{{canonicalurl:{{#if: {{{snap}}} | Pre-release protocol | Protocol}}|oldid={{{3}}}}} page]}}}} | ||
− | </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. | ||
− | 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]] | + | 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 <code>snap</code> parameter can be set to indicate that the version is a snapshot and should not be bolded; an optional <code>pre_release_doc</code> parameter indicates that the documentation is on [[Pre-release protocol]] instead of [[Protocol]] (which is implied if <code>snap</code> is set). |
Example usage (sample data is not 100% accurate): | Example usage (sample data is not 100% accurate): | ||
Line 17: | Line 15: | ||
! Version number | ! Version number | ||
! Last known documentation | ! Last known documentation | ||
− | {{/Entry| | + | {{/Entry|20w51a|1073741833|cur|snap=1}} |
+ | {{/Entry|1.16.4-pre1|1073741825|16071|snap=1}} | ||
+ | {{/Entry|1.16.2|751|16001|pre_release_doc=1}} | ||
{{/Entry|18w43b|441|14397|snap=1}} | {{/Entry|18w43b|441|14397|snap=1}} | ||
{{/Entry|18w43a|440|snap=1}} | {{/Entry|18w43a|440|snap=1}} | ||
Line 23: | Line 23: | ||
|- | |- | ||
| {{Minecraft Wiki|1.13.2-pre2}} | | {{Minecraft Wiki|1.13.2-pre2}} | ||
− | |rowspan="2"| | + | |rowspan="2"| Something |
|rowspan="2"| [{{canonicalurl:Pre-release protocol|oldid=14359}} page] | |rowspan="2"| [{{canonicalurl:Pre-release protocol|oldid=14359}} page] | ||
|- | |- | ||
Line 38: | Line 38: | ||
! Version number | ! Version number | ||
! Last known documentation | ! Last known documentation | ||
− | {{ | + | {{../Entry|20w51a|1073741833|cur|snap=1}} |
− | {{ | + | {{../Entry|1.16.4-pre1|1073741825|16071|snap=1}} |
− | {{ | + | {{../Entry|1.16.2|751|16001|pre_release_doc=1}} |
− | {{ | + | {{../Entry|18w43b|441|14397|snap=1}} |
+ | {{../Entry|18w43a|440|snap=1}} | ||
+ | {{../Entry|1.13.2|404|cur}} | ||
|- | |- | ||
| {{Minecraft Wiki|1.13.2-pre2}} | | {{Minecraft Wiki|1.13.2-pre2}} | ||
− | |rowspan="2"| | + | |rowspan="2"| Something |
|rowspan="2"| [{{canonicalurl:Pre-release protocol|oldid=14359}} page] | |rowspan="2"| [{{canonicalurl:Pre-release protocol|oldid=14359}} page] | ||
|- | |- |
Latest revision as of 19:47, 16 December 2020
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 the version is a snapshot and should not be bolded; an optional pre_release_doc
parameter indicates that the documentation is on Pre-release protocol instead of Protocol (which is implied if snap
is set).
Example usage (sample data is not 100% accurate):
{| class="wikitable" |- ! Release name ! Version number ! Last known documentation {{/Entry|20w51a|1073741833|cur|snap=1}} {{/Entry|1.16.4-pre1|1073741825|16071|snap=1}} {{/Entry|1.16.2|751|16001|pre_release_doc=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"| Something |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 |
---|---|---|
20w51a | Snapshot 9 | page |
1.16.4-pre1 | Snapshot 1 | page |
1.16.2 | 751 | page |
18w43b | 441 | page |
18w43a | 440 | |
1.13.2 | 404 | page |
1.13.2-pre2 | Something | 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).