Difference between revisions of "Template:Download"
Jump to navigation
Jump to search
sc4e>Warrior m (Changed slightly) |
m (43 revisions imported) |
||
(97 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>This template is designed to include a link to the appropriate download site | + | <noinclude>{{pp-template}}</noinclude><noinclude>This template is designed to include a link to the appropriate download site |
==Syntax== | ==Syntax== | ||
Line 5: | Line 5: | ||
|exchange = | |exchange = | ||
|id = | |id = | ||
+ | |vers = | ||
+ | |text = | ||
}}</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 - the version, so Mac or PC normally (optional) | ||
+ | |||
+ | If the download link doesn't have an exchange then simply type the address in the id. | ||
==Example== | ==Example== | ||
{{download}} | {{download}} | ||
Line 16: | Line 21: | ||
eg: <pre>| TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}}</pre> | eg: <pre>| TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}}</pre> | ||
− | </noinclude><includeonly>[{{ #switch: {{uc:{{{exchange|}}}}} | + | </noinclude><includeonly>[{{#switch:{{uc:{{{exchange|}}}}} |
+ | | N/A = | ||
| 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 22: | Line 28: | ||
| TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}} | | TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}} | ||
| 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}}} |
}} {{{text|Download {{#if:{{{exchange|}}}|from {{{exchange}}}|Here}}}}}{{#if:{{{vers|}}}| ({{{vers}}})}}]</includeonly> | }} {{{text|Download {{#if:{{{exchange|}}}|from {{{exchange}}}|Here}}}}}{{#if:{{{vers|}}}| ({{{vers}}})}}]</includeonly> |
Latest revision as of 00:50, 10 August 2019
This high-risk template has been protected from editing to prevent vandalism. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may ask an editor or a moderator to make the edit if it is supported by consensus. You may also request that this page be unprotected. |
This template is designed to include a link to the appropriate download site
Syntax
{{Download |exchange = |id = |vers = |text = }}
- 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 - the version, so Mac or PC normally (optional)
If the download link doesn't have an exchange then simply type the address in the id.
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:
| TPP = http://www.theplanningpages.com/community/downloads.php?do=file&id={{{id}}}