Changes

Template:Tacgr

1,157 bytes added, 00:02, 20 November 2013
remove trailing newline
[http://tacgr.emuunlim.com/downloads/filedetail.php?recid={{{1}}} ''{{{2|{{PAGENAME}}}}}''] at [http://tacgr.emuunlim.com/ The Amstrad CPC Games Resource]<noinclude>== Usage ==
<noinclude>This template needs two parametersTo add a link in a CPCWiki article to a program on [http:* File-ID of the game at //tacgr.emuunlim.com / The Amstrad CPC Games Resource] (have a look at the URL parameter 'recid'also known as TACGR)* Link textYou can , use it with {{Tacgr|1234|Link text}}.</noinclude>the following code:
<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>
1,544
edits