Template:PacketList/doc

This template is used to simplify creation the table of contents / packet changes on Pre-release protocol.

Usage
This template is always used within a table, to add an entry to the table. A simple usage would be like this:

which produces

The headers in the in the table of contents must always be provided;  is used to add a row to the table but does not generate the rest of the table. For the remainder of this page the table start will be omitted to keep example code short, but it is still needed.

Basic usage
The simplest usage is merely writing. This will automatically produce a link to the current and pre-release documentation for the given packet.

Removed packets
For representing packets that have been removed in a pre-release, add a  parameter. This will mark that packet as removed and remove the link to the current version. Note that you will need to manually indicate changes to the following packet IDs, if they changed.

Packets that changed IDs and data
To indicate a packet ID that changed, use the  template to create a diff on the packet ID. Packets should be ordered by the order of the new packet ID, not the old one.

Packets that only changed IDs
If a packet changed its ID but did not change its content,  should be used but   should also be added. This makes it clear that the packet did not get modified in the version, only renumbered.

New packets
If a packet was added, add the parameter.