Difference between revisions of "Template:Tacgr"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
(Created page with '[http://tacgr.emuunlim.com/downloads/filedetail.php?recid={{{1}}} TACGR: {{{2}}}] <noinclude> This template needs two parameters: * File-ID of the game at tacgr.emuunlim.com (hav…')
 
(remove trailing newline)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://tacgr.emuunlim.com/downloads/filedetail.php?recid={{{1}}} TACGR: {{{2}}}]
+
[http://tacgr.emuunlim.com/downloads/filedetail.php?recid={{{1}}} ''{{{2|{{PAGENAME}}}}}''] at [http://tacgr.emuunlim.com/ The Amstrad CPC Games Resource]<noinclude>
<noinclude>
+
== Usage ==
This template needs two parameters:
+
 
* File-ID of the game at tacgr.emuunlim.com (have a look at the URL parameter 'recid')
+
To add a link in a CPCWiki article to a program on [http://tacgr.emuunlim.com/ The Amstrad CPC Games Resource] (also known as TACGR), use the following code:
* Link text
+
 
You can use it with { {Tacgr|1234|Link text}}.
+
<code><nowiki>{{Tacgr|1234|Name of program}}</nowiki></code>
 +
 
 +
The first parameter (<tt>1234</tt> in the above example) is the ID number of the program on TACGR. This can be obtained by examining the URL of the TACGR page; it is the number after the <tt>recid</tt> parameter.
 +
 
 +
The second parameter is optional, and specifies the name of the program to insert in the link. If it is omitted, the title of the CPCWiki article is displayed instead.
 +
 
 +
== Examples ==
 +
 
 +
Let's use the [[Amsoft]] game ''Roland on the Ropes'' as an example. The TACGR URL for ''Roland on the Ropes'' is [http://tacgr.emuunlim.com/downloads/filedetail.php?recid=764 http://tacgr.emuunlim.com/downloads/filedetail.php?recid=764], so the ID number of the game on TACGR is <tt>764</tt>.
 +
 
 +
Therefore, to add a link to ''Roland on the Ropes'' in a CPCWiki article, the following code can be used:
 +
 
 +
<code><nowiki>{{Tacgr|764|Roland on the Ropes}}</nowiki></code>
 +
 
 +
However, on the [[Roland on the Ropes|CPCWiki article for ''Roland on the Ropes'']], it is not necessary to explicitly specify the name of the game, so the following code can be used instead:
 +
 
 +
<code><nowiki>{{Tacgr|764}}</nowiki></code>
 +
[[Category:External link templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:02, 19 November 2013

Tacgr at The Amstrad CPC Games Resource

Usage

To add a link in a CPCWiki article to a program on The Amstrad CPC Games Resource (also known as TACGR), use the following code:

{{Tacgr|1234|Name of program}}

The first parameter (1234 in the above example) is the ID number of the program on TACGR. This can be obtained by examining the URL of the TACGR page; it is the number after the recid parameter.

The second parameter is optional, and specifies the name of the program to insert in the link. If it is omitted, the title of the CPCWiki article is displayed instead.

Examples

Let's use the Amsoft game Roland on the Ropes as an example. The TACGR URL for Roland on the Ropes is http://tacgr.emuunlim.com/downloads/filedetail.php?recid=764, so the ID number of the game on TACGR is 764.

Therefore, to add a link to Roland on the Ropes in a CPCWiki article, the following code can be used:

{{Tacgr|764|Roland on the Ropes}}

However, on the CPCWiki article for Roland on the Ropes, it is not necessary to explicitly specify the name of the game, so the following code can be used instead:

{{Tacgr|764}}