Difference between revisions of "Template:Ig"

From DoomWiki.org

m (https, plainlink span as in idgames template)
m (reorder intro)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span class="plainlinks">[https://www.doomworld.com/idgames/?{{#if:{{{file|}}}|file={{{file}}}|{{#if:{{{id|}}}|id={{{id}}}|}}}} {{{1|{{{title|Doomworld/idgames}}}}}}]</span><noinclude>[[Category:External link templates]]</noinclude>
+
<span class="plainlinks">[https://www.doomworld.com/idgames/?{{#if:{{{file|}}}|file={{{file}}}|{{#if:{{{id|}}}|id={{{id}}}|}}}} {{{1|{{{title|Doomworld/idgames}}}}}}]</span><noinclude>
 +
<br><br><br>
 +
----
 +
<br>
 +
This template is used for linking to a file (usually a [[PWAD]]) at the [[Doomworld]]/[[Idgames archive|idgames]] interface (''without'' a reference to its frontpage).
 +
 
 +
<u>Usage</u>
 +
 
 +
: '''<tt><nowiki>{{ig|file=somepath|title=somename}}</nowiki></tt>'''
 +
: '''<tt><nowiki>{{ig|id=somenumber|title=somename}}</nowiki></tt>''' <span style="color: #ff0000; background-color: inherit;">(Deprecated usage)</span>
 +
 
 +
where ''somepath'' is the file's path in the archive or ''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).
 +
 
 +
''Examples:''
 +
:<tt><nowiki>{{ig|file=levels/doom/s-u/serenity|Serenity}}</nowiki></tt> becomes {{ig|file=levels/doom/s-u/serenity|Serenity}}
 +
:<tt><nowiki>{{ig|id=1033|title=Serenity}}</nowiki></tt> becomes {{ig|id=1033|title=Serenity}}
 +
 
 +
*The title can also be the first, unnamed parameter: <tt><nowiki>{{ig|Serenity|id=1033}}</nowiki></tt> becomes {{ig|Serenity|id=1033}}.
 +
*If no title is given, the template uses "Doomworld/idgames".
 +
*If no path or id is given, the template links to the inferface frontpage: {{ig}}
 +
*To include a reference to the inferface frontpage, use the {{tl|idgames}} template.
 +
 
 +
[[Category:External link templates]]</noinclude>

Latest revision as of 04:15, 12 August 2019

Doomworld/idgames




This template is used for linking to a file (usually a PWAD) at the Doomworld/idgames interface (without a reference to its frontpage).

Usage

{{ig|file=somepath|title=somename}}
{{ig|id=somenumber|title=somename}} (Deprecated usage)

where somepath is the file's path in the archive or 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).

Examples:

{{ig|file=levels/doom/s-u/serenity|Serenity}} becomes Serenity
{{ig|id=1033|title=Serenity}} becomes Serenity
  • The title can also be the first, unnamed parameter: {{ig|Serenity|id=1033}} becomes Serenity.
  • If no title is given, the template uses "Doomworld/idgames".
  • If no path or id is given, the template links to the inferface frontpage: Doomworld/idgames
  • To include a reference to the inferface frontpage, use the {{idgames}} template.