Creating templates
Previous  Next

TradeControl uses custom scripting codes, to process templates.

TradeControl scans seperate lines in your template, and checks, if the tag '<TC_TRADE>' exists.

Everything within a <TC_TRADE> tag, will be parsed as one trade, if there arent any trades available, the text inside the tag will be made empty.

You can use any value of a trade in your toplist, by using the [TOPLIST_] code.

For example, if you want to show the domain name of a trade, include [TOPLIST_DOMAIN] in your template.

Some examples:-

Simple toplist containing 3 trades:-

<TC_TRADE><a href="[TOPLIST_SOURCEURL]" target="_blank">[TOPLIST_TITLE]</a></TC_TRADE>
<TC_TRADE><a href="[TOPLIST_SOURCEURL]" target="_blank">[TOPLIST_TITLE]</a></TC_TRADE>
<TC_TRADE><a href="[TOPLIST_SOURCEURL]" target="_blank">[TOPLIST_TITLE]</a></TC_TRADE>

Toplist in a table, containing 2 trades par cell, 4 trades

<table>
            <tr>
<TC_TRADE><td>[TOPLIST_NUMBER]. <a href="[TOPLIST_SOURCEURL]" target="_blank">[TOPLIST_TITLE]</a></td></TC_TRADE>

<TC_TRADE><td>[TOPLIST_NUMBER]. <a href="[TOPLIST_SOURCEURL]" target="_blank">[TOPLIST_TITLE]</a></td></TC_TRADE>
                                                                                                                                                </tr>
            <tr>
<TC_TRADE><td>[TOPLIST_NUMBER]. <a href="[TOPLIST_SOURCEURL]" target="_blank">[TOPLIST_TITLE]</a></td></TC_TRADE>

<TC_TRADE><td>[TOPLIST_NUMBER]. <a href="[TOPLIST_SOURCEURL]" target="_blank">[TOPLIST_TITLE]</a></td></TC_TRADE>
                                                                                                                                                </tr>
</table>

When TradeControl doesnt find enough trades, it will fill the fields with blank values.

Using niche data

Besides the [TOPLIST_] code, you can also display the data of a niche, by using the [METADATA_] code.

This code doesnt require the <TC_TRADE> tag.

Valid codes are:-

[METADATA_METANAME]