Difference between revisions of "Template:Idgames"

From DoomWiki.org

(Okay, finished.)
m (standard DW URL)
Line 1: Line 1:
<span class="plainlinks">{{#if:{{{2|{{{id|}}}}}}|[http://www.doomworld.com/idgames/?id={{{2|{{{id}}}}}} {{{1|{{{title|{{PAGENAME}}}}}}}}]{{#if:{{{linkonly{{!}}}}}||&nbsp;at [http://doomworld.com/idgames/ Doomworld/idgames]}}|Error: no id given, see [[Template:Idgames|the instructions]] to use this template.}}</span><noinclude>
+
<span class="plainlinks">{{#if:{{{2|{{{id|}}}}}}|[http://www.doomworld.com/idgames/?id={{{2|{{{id}}}}}} {{{1|{{{title|{{PAGENAME}}}}}}}}]{{#if:{{{linkonly{{!}}}}}||&nbsp;at [http://www.doomworld.com/idgames/ Doomworld/idgames]}}|Error: no id given, see [[Template:Idgames|the instructions]] to use this template.}}</span><noinclude>
 
<br><br><br>
 
<br><br><br>
 
----
 
----
Line 17: Line 17:
 
*If no title is given, the template uses the page title.
 
*If no title is given, the template uses the page title.
 
*If no id is given, the template displays an error message: {{idgames}}
 
*If no id is given, the template displays an error message: {{idgames}}
*If the "<span class="plainlinks">at [http://doomworld.com/idgames/ Doomworld/idgames]</span>" bit is not desired, the linkonly parameter can be used: <tt><nowiki>{{idgames|Eternity|1046|linkonly=1}}</nowiki></tt> becomes {{idgames|Eternity|1046|linkonly=1}}.
+
*If the "<span class="plainlinks">at [http://www.doomworld.com/idgames/ Doomworld/idgames]</span>" bit is not desired, the linkonly parameter can be used: <tt><nowiki>{{idgames|Eternity|1046|linkonly=1}}</nowiki></tt> becomes {{idgames|Eternity|1046|linkonly=1}}.
  
 
[[Category:External link templates]]</noinclude>
 
[[Category:External link templates]]</noinclude>

Revision as of 16:38, 10 February 2010

Error: no id given, see the instructions to use this template.




Usage

This is used for linking to a file (usually a PWAD) at the Doomworld/idgames mirror, as:

{{idgames|id=somenumber|title=somename}}

where somenumber is the file ID and somename is normally the file's title or description (although, like any hyperlink, it can say other things instead).

Example: {{idgames|id=1046|title=Eternity}} becomes Eternity at Doomworld/idgames

  • The title can also be the first, unnamed parameter: {{idgames|Eternity|id=1046}} becomes Eternity at Doomworld/idgames.
  • The id can also be the second unnamed parameter: {{idgames|Eternity|1046}} becomes Eternity at Doomworld/idgames.
  • If no title is given, the template uses the page title.
  • If no id is given, the template displays an error message: Error: no file or id given, see the instructions to use this template.
  • If the "at Doomworld/idgames" bit is not desired, the linkonly parameter can be used: {{idgames|Eternity|1046|linkonly=1}} becomes Eternity.