item_id required default (none - required)Long id (32 hex chars) of the item whose history you want to read. Required - an empty or missing item_id raises a fatal error, so always pass a real long id (often 3161cf1bc90504c8688af6551535f0d1 for the current item).
field_id required default (none - required)Field id (slice column selector, e.g. headline........ or status_code.....) to read from the item history. Required - passing the item id alone, with no field_id, raises a fatal error. A field that has no recorded change returns an empty string.
time optional default -1 (last value before the current one)Selects which revision. A negative integer is a step back: -1 (the default) is the last value before the current one, -2 the value before that, and so on; stepping past the oldest record returns empty. A positive integer is a Unix timestamp - it returns the value in force at that time, or the current value if no change is recorded at/after it. Any non-integer string (for example a single bar) is treated as a delimiter and joins ALL historical values of the field into one string.
format optional default _#val (the bare value)Template applied to each returned value, using the placeholders _#val (the value), _#date (change time as Y-m-d H:i:s), _#user (numeric user id who made the change) and _#timestamp (Unix seconds). With a delimiter time, the format is applied to every value before they are joined. Only _#val is deterministic across installs; _#date/_#user/_#timestamp depend on when and by whom the edit was made.
[{history:5726c2c6b035d7aab450d1794e9e90d7:status_code.....}]
[{history:5726c2c6b035d7aab450d1794e9e90d7:headline........}]
[{history:5726c2c6b035d7aab450d1794e9e90d7:status_code.....:-2}]
[{history:5726c2c6b035d7aab450d1794e9e90d7:status_code.....:-3}]
[{history:5726c2c6b035d7aab450d1794e9e90d7:status_code.....:|}]
{history:5726c2c6b035d7aab450d1794e9e90d7:status_code.....:|:[_#val]}
{history:5726c2c6b035d7aab450d1794e9e90d7:status_code.....:-1:_#val on _#date by user _#user}
[{history:5726c2c6b035d7aab450d1794e9e90d7:status_code.....:4000000000}]
[{history:00000000000000000000000000000000:status_code.....}]