Difference between revisions of "Template:PSG"
From #openttdcoop wiki
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[PublicServer:Archive_-_Games_{{padleft:{{#expr:10*ceil( {{{1}}} /10)-9}}|2}}_-_{{#expr:10*ceil( {{{1}}} /10)}}#gameid_{{padleft:{{{1}}}|2}}|{{{2| | + | <onlyinclude><includeonly>[[PublicServer:Archive_-_Games_{{padleft:{{#expr:10*ceil( {{{1}}} /10)-9}}|2}}_-_{{#expr:10*ceil( {{{1}}} /10)}}#gameid_{{padleft:{{{1}}}|2}}|{{{2|PSG{{{1}}}}}}]]</includeonly></onlyinclude> |
+ | This template creates a link to the archive entry of a Public Server Game. The first parameter is the number of the game. The optional second parameter is the text of the link. Games with unusual numbering such as [[PublicServer:Archive_-_Games_01_-_10#gameid_062|PSG06.2]] do not work. | ||
+ | |||
+ | Examples: | ||
+ | *<tt><nowiki>{{PSG|2}}</nowiki></tt> generates {{PSG|2}} | ||
+ | *<tt><nowiki>{{PSG|03}}</nowiki></tt> generates {{PSG|03}} | ||
+ | *<tt><nowiki>{{PSG|10}}</nowiki></tt> generates {{PSG|10}} | ||
+ | *<tt><nowiki>{{PSG|11}}</nowiki></tt> generates {{PSG|11}} | ||
+ | *<tt><nowiki>{{PSG|22|Text}}</nowiki></tt> generates {{PSG|22|Text}} |
Latest revision as of 11:13, 18 November 2012
This template creates a link to the archive entry of a Public Server Game. The first parameter is the number of the game. The optional second parameter is the text of the link. Games with unusual numbering such as PSG06.2 do not work.
Examples: