> For the complete documentation index, see [llms.txt](https://docs.wiclax.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wiclax.com/en/other-features/export-variables.md).

# Export variables

Here is a complete reference for cases when you'll need to enter them in a raw fashion

## Variables for a participant

<table><thead><tr><th width="119">ID</th><th>Data</th></tr></thead><tbody><tr><td>21</td><td>Bib number</td></tr><tr><td>3</td><td>First name</td></tr><tr><td>2</td><td>Last name</td></tr><tr><td>4</td><td>Full name</td></tr><tr><td>68</td><td>Full name, initials for first name</td></tr><tr><td>8</td><td>Gender</td></tr><tr><td>5</td><td>Category - abbreviation</td></tr><tr><td>52</td><td>Category - full name</td></tr><tr><td>7</td><td>Team or Club</td></tr><tr><td>24</td><td>Team code</td></tr><tr><td>10</td><td>Birth year</td></tr><tr><td>37</td><td>Birth date</td></tr><tr><td>49</td><td>Age</td></tr><tr><td>12</td><td>Address line 1</td></tr><tr><td>13</td><td>Address lin 2</td></tr><tr><td>17</td><td>Zip code</td></tr><tr><td>18</td><td>Town</td></tr><tr><td>72</td><td>State or Province</td></tr><tr><td>14</td><td>Region</td></tr><tr><td>9</td><td>Nationality</td></tr><tr><td>61</td><td>Country name</td></tr><tr><td>16</td><td>Email</td></tr><tr><td>43</td><td>Phone number</td></tr><tr><td>15</td><td>License number</td></tr><tr><td>19</td><td>Race</td></tr><tr><td>39</td><td>Chip ID</td></tr><tr><td>60</td><td>Real bib number or Car number</td></tr><tr><td>1</td><td>UCI ID</td></tr><tr><td>82</td><td>Heat number</td></tr><tr><td>76</td><td>List of teammate names (when teams exported)</td></tr></tbody></table>

## Result variables

<table><thead><tr><th width="119">ID</th><th>Data</th></tr></thead><tbody><tr><td>22</td><td>Race time</td></tr><tr><td>23</td><td>Start time, individual</td></tr><tr><td>98</td><td>Scheduled start time, individual</td></tr><tr><td>80</td><td>Race start time</td></tr><tr><td>40</td><td>Chip time (vs Gun time)</td></tr><tr><td>74</td><td>Gun time (vs Chip time)</td></tr><tr><td>30</td><td>Rank</td></tr><tr><td>31</td><td>Rank in category</td></tr><tr><td>75</td><td>Rank in gender</td></tr><tr><td>88</td><td>Rank at general classification</td></tr><tr><td>47</td><td>Number of laps</td></tr><tr><td>83</td><td>Number of remaining laps</td></tr><tr><td>58</td><td>Best lap</td></tr><tr><td>34</td><td>Time diff to race leader</td></tr><tr><td>108</td><td>Time diff to predecessor</td></tr><tr><td>66</td><td>Time diff at general classification</td></tr><tr><td>29</td><td>Average speed</td></tr><tr><td>85</td><td>Points</td></tr><tr><td>28</td><td>Race distance</td></tr><tr><td>45</td><td>Time of day - for finish</td></tr><tr><td>48</td><td>Total distance completed</td></tr><tr><td>91</td><td>Race time at last split timed</td></tr><tr><td>92</td><td>Rank at last split timed</td></tr><tr><td>93</td><td>Name of last split point timed</td></tr><tr><td>55</td><td>List of split times (format "<code>time_split1 (rank)|time_split2 (rank)|...</code>")</td></tr><tr><td>56</td><td>List of segment times (format "<code>time_segment1 (rank)|time_segment2 (rank)|...</code>")</td></tr><tr><td>89</td><td>List of lap times (format "<code>time_lap1|time_lap2|...</code>")</td></tr><tr><td>96</td><td>Lap average speed</td></tr><tr><td>81</td><td>Number of participants in the race (excl. non starters)</td></tr><tr><td>77</td><td>Number of participants in the gender (excl. non starters)</td></tr><tr><td>78</td><td>Number of participants in the category (excl. non starters)</td></tr><tr><td>94</td><td>Number of finishers in the category</td></tr><tr><td>38</td><td>Number of finishers in the race</td></tr><tr><td>200,201,202, ...</td><td>Net split time for first, second, ... split point. Numbering valid for all the event splits</td></tr><tr><td>300, 301, 302, ...</td><td>Segment time for first, second, ... segment. Numbering valid for all the event segments</td></tr><tr><td>400, 401, 402, ...</td><td>Time of day for first, second, ... split point. Numbering valid for all the event splits</td></tr><tr><td>500, 501, 502, ...</td><td>Rank for first, second, ... split point. Numbering valid for all the event splits</td></tr><tr><td>600, 601, 602, ...</td><td>Rank for first, second, ... segment. Numbering valid for all the event segments</td></tr></tbody></table>

## Custom data fields

<table><thead><tr><th width="119">ID</th><th>Data</th></tr></thead><tbody><tr><td>xxx</td><td>Where xxx is simply the name of the custom data in the Wiclax event. For example <code>[%Dog name%]</code>. Case insensitive.</td></tr></tbody></table>

## Race variables

<table><thead><tr><th width="119">ID</th><th>Data</th></tr></thead><tbody><tr><td>9013</td><td>Event name</td></tr><tr><td>9017</td><td>Event organizer</td></tr><tr><td>9000</td><td>Race title</td></tr><tr><td>9014</td><td>Report title</td></tr><tr><td>9001</td><td>Number of starters</td></tr><tr><td>9002</td><td>Number of ranked</td></tr><tr><td>9025</td><td>Number of finishers</td></tr><tr><td>9022</td><td>Winner race time</td></tr><tr><td>9003</td><td>Winner average speed</td></tr><tr><td>9004</td><td>Event date</td></tr><tr><td>9005</td><td>Race commissaires</td></tr><tr><td>9006</td><td>Race distance</td></tr><tr><td>9007</td><td>Stage name</td></tr><tr><td>9057</td><td>Stage number</td></tr><tr><td>9024</td><td>Race start time</td></tr><tr><td>9008</td><td>Best lap</td></tr><tr><td>9018</td><td>Best lap holder, full name</td></tr><tr><td>9019</td><td>Best lap holder, last name</td></tr><tr><td>9020</td><td>Best lap holder, full name with initials</td></tr><tr><td>9023</td><td>Number of laps to complete</td></tr><tr><td>9011</td><td>Number of laps completed</td></tr><tr><td>9012</td><td>Number of laps remaining</td></tr><tr><td>9021</td><td>Total number of laps completed (all participants)</td></tr><tr><td>9015</td><td>Number of DNF participants</td></tr><tr><td>9016</td><td>Number of OTF participants (out of time limit)</td></tr><tr><td>9059</td><td>List of all split points, comma separated</td></tr><tr><td>9060</td><td>List of all segments, comma separated</td></tr><tr><td>xxx</td><td>Where xxx is simply the name of a <a href="/pages/Blw1n82iAoHWXVjKNjlX">custom variable</a> in the Wiclax event. For example <code>[%Water temperature%]</code>. Case insensitive.</td></tr></tbody></table>

## Stage or Lap specifiers

For multi-stage events, the stage index used for a variable is by default the stage of the export.

A variable ID - or tag - can be completed by a specifier to ensure the variable is calculated for a specific stage number or a specific lap number. Both indexes start at 1.

Examples:

<table><thead><tr><th width="202">ID</th><th>Data</th></tr></thead><tbody><tr><td>[%23,stage=2%]</td><td>Gives the participant start time (23) for stage 2</td></tr><tr><td>[%600,lap=1%]</td><td>Gives the participant's 1st segment time for lap 1</td></tr></tbody></table>

## Teammate variables

Variable tags can be formed around variable #2000, which indicates you want a participant data for a specific teammate, when the export is itself a team ranking or a team list.

The tag format is as follows:&#x20;

`2000,<teammate-index>,<invididual-data-ID>,<team-sorting>`

Where team-sorting value can be `reg` for the order of registration or `res` for the ranking order.

Teammate index starting at 0.

Example:

<table><thead><tr><th width="202">ID</th><th>Data</th></tr></thead><tbody><tr><td> [%2000,0,3,res%]</td><td>Gives the first-name (var 3) of the 1st ranked teammate</td></tr></tbody></table>

## Variable formatting

For specific contexts like exporters or scoreboards, some format flags can be specified in this way:

```
[%var=30;fixedW=3;maxW=3;align=right;trailing=.%] 
```

In this case the whole block has to start with `var=`, followed by the variable ID and then a list of format specifiers separated by a semicolon. Here is the list of specifiers allowed:

<table data-header-hidden><thead><tr><th valign="top"></th><th></th></tr></thead><tbody><tr><td valign="top">fixedW</td><td>a fixed number of chars for the field, value is completed with padding chars if necessary</td></tr><tr><td valign="top">maxW</td><td>a maximum number of chars for the field, value is truncated if necessary</td></tr><tr><td valign="top">paddingChar</td><td>a character to use for padding when necessary, space by default</td></tr><tr><td valign="top">align</td><td>alignment for the value when fixedW is set, value left, right or center (left by default)</td></tr><tr><td valign="top">trailing</td><td>a suffix string to append when the value is not empty</td></tr><tr><td valign="top">leading</td><td>a prefix string to insert before the value when the value is not empty</td></tr><tr><td valign="top">timeFormat</td><td>a mask for time values, following reference <a href="https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings">https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings</a></td></tr></tbody></table>

## Special characters

Also specific to exporters/scoreboards. To output any (non printable) special character based on its ASCII code, insert it like this:

```
{char:xx}
```

Where *xx* is the code.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wiclax.com/en/other-features/export-variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
