Difference between revisions of "Template:Download"
Jump to navigation
Jump to search
sc4e>JoeST m (syntax fix) |
sc4e>JoeST m |
||
Line 6: | Line 6: | ||
|id = | |id = | ||
}}</pre> | }}</pre> | ||
− | *exchange - the name of the exchange. Can be; LEX, STEX or PLEX. | + | *exchange - the name of the exchange. Can be; LEX, STEX, TPP or PLEX. |
− | *id - the id of the lot on that exchange | + | *id - the id of the lot on that exchange if Exchange isnt specified, ID is the full URL. |
− | + | ==Example== | |
+ | {{download}} | ||
+ | ==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 <nowiki>{{{id}}}</nowiki>. | ||
+ | *Find/make an acronym for that exchange that is unique. | ||
+ | *Add this before (<nowiki>}} Download Here]) in the <includeonly> section</nowiki>:<pre>| acronym = link-with-id | ||
+ | eg:<pre>| TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}}</pre> | ||
</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}}} | ||
| PLEX = http://simpeg.com/forum/index.php?action=tpmod;dl=item{{{id}}} | | PLEX = http://simpeg.com/forum/index.php?action=tpmod;dl=item{{{id}}} | ||
+ | | TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}} | ||
+ | | {{{id}}} | ||
}} Download Here] | }} Download Here] | ||
</includeonly> | </includeonly> |
Revision as of 11:42, 29 July 2008
This template is designed to include a link to the appropriate download site
Syntax
{{Download |exchange = |id = }}
- 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.
Example
[{{{id}}} Download Here]
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:<pre>| TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}}