Difference between revisions of "Template:Download"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Warrior
(Undo revision 3398 by Warrior (Talk))
sc4e>Warrior
Line 5: Line 5:
 
|exchange =
 
|exchange =
 
|id =
 
|id =
 +
|vers=
 
}}</pre>
 
}}</pre>
 
*exchange - the name of the exchange. Can be; LEX, STEX, TPP or PLEX.
 
*exchange - the name of the exchange. Can be; LEX, STEX, TPP or PLEX.
 
*id - the id of the lot on that exchange if Exchange isnt specified, ID is the full URL.
 
*id - the id of the lot on that exchange if Exchange isnt specified, ID is the full URL.
 +
*vers - what version the download is, normally PC or Mac, it is optional.
 
==Example==
 
==Example==
 
{{download}}
 
{{download}}
Line 17: Line 19:
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
[{{ #switch: {{uc:{{{exchange|}}}}}
+
[{{ #switch: {{uc:{{{exchange|}}}}}  
 
| LEX = http://www.sc4devotion.com/csxlex/lex_filedesc.php?lotGET={{{id}}}
 
| LEX = http://www.sc4devotion.com/csxlex/lex_filedesc.php?lotGET={{{id}}}
 
| STEX = http://www.simtropolis.com/stex/index.cfm?id={{{id}}}
 
| STEX = http://www.simtropolis.com/stex/index.cfm?id={{{id}}}
Line 24: Line 26:
 
| STMOD = http://www.simtropolis.com/modding/index.cfm?p=details&id={{{id}}}
 
| STMOD = http://www.simtropolis.com/modding/index.cfm?p=details&id={{{id}}}
 
| {{{id|}}}
 
| {{{id|}}}
}} Download Here]
+
}} Download Here ({{{exchange}}}{{#if:{{{vers|}}}|<nowiki>|</nowiki>{{{vers}}}}})]
 +
 
 
</includeonly>
 
</includeonly>

Revision as of 02:41, 31 August 2008

This template is designed to include a link to the appropriate download site

Syntax

{{Download
|exchange =
|id =
|vers=
}}
  • exchange - the name of the exchange. Can be; LEX, STEX, TPP or PLEX.
  • id - the id of the lot on that exchange if Exchange isnt specified, ID is the full URL.
  • vers - what version the download is, normally PC or Mac, it is optional.

Example

[ Download Here ({{{exchange}}})]


To add an Exchange

  • Get the url to a file on the exchange (for example: http://www.theplanningpages.com/community/downloads.php?do=file&id=15 is a link to a file on TPP) and remove the unique identifier (usualy prefixed by id= ) with {{{id}}}.
  • Find/make an acronym for that exchange that is unique.
  • Add this before (}} Download Here]) in the <includeonly> section:
    | acronym = link-with-id

eg:

| TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}}