Difference between revisions of "Template:PSG"

From #openttdcoop wiki

Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>[[PublicServer:Archive_-_Games_{{padleft:{{#expr:10*ceil( {{{1}}} /10)-9}}|2}}_-_{{#expr:10*ceil( {{{1}}} /10)}}#gameid_{{padleft:{{{1}}}|2}}|{{{2|Archive entry for PSG{{{1}}}}}}]]</includeonly></onlyinclude>
+
<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. The games with unusual numbering such as [[PublicServer:Archive_-_Games_01_-_10#gameid_062|PSG06.2]] do not work.
+
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:
 
Examples:
 
*<tt><nowiki>{{PSG|2}}</nowiki></tt> generates {{PSG|2}}
 
*<tt><nowiki>{{PSG|2}}</nowiki></tt> generates {{PSG|2}}
*<tt><nowiki>{{PSG|2}}</nowiki></tt> generates {{PSG|03}}
+
*<tt><nowiki>{{PSG|03}}</nowiki></tt> generates {{PSG|03}}
 
*<tt><nowiki>{{PSG|10}}</nowiki></tt> generates {{PSG|10}}
 
*<tt><nowiki>{{PSG|10}}</nowiki></tt> generates {{PSG|10}}
 
*<tt><nowiki>{{PSG|11}}</nowiki></tt> generates {{PSG|11}}
 
*<tt><nowiki>{{PSG|11}}</nowiki></tt> generates {{PSG|11}}
 
*<tt><nowiki>{{PSG|22|Text}}</nowiki></tt> generates {{PSG|22|Text}}
 
*<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:

  • {{PSG|2}} generates PSG2
  • {{PSG|03}} generates PSG03
  • {{PSG|10}} generates PSG10
  • {{PSG|11}} generates PSG11
  • {{PSG|22|Text}} generates Text
Powered by MediaWiki
  • This page was last modified on 18 November 2012, at 11:13.