Difference between revisions of "Template:Dsda"
From DoomWiki.org
m (use C template) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <span class="plainlinks">{{#if:{{{2|{{{id|}}}}}}|[http://doomedsda.us/wad{{{2|{{{id}}}}}}.html {{{1|{{{title|{{PAGENAME}}}}}}}}]{{#if:{{{linkonly|}}}|| at [ | + | <span class="plainlinks">{{#if:{{{2|{{{id|}}}}}}|[http://doomedsda.us/wad{{{2|{{{id}}}}}}{{#if:{{{mapid|}}}|m{{{mapid}}}|}}.html {{{1|{{{title|{{PAGENAME}}}}}}}}]{{#if:{{{linkonly|}}}|| at the [[Doomed Speed Demos Archive]]}}|Error: no id given, see [[Template:dsda|the instructions]] to use this template.}}</span><noinclude> |
<br><br><br> | <br><br><br> | ||
---- | ---- | ||
Line 7: | Line 7: | ||
This is used for linking to a file (usually a [[PWAD]]) at the [[Doomed Speed Demos Archive]], as: | This is used for linking to a file (usually a [[PWAD]]) at the [[Doomed Speed Demos Archive]], as: | ||
− | : ''' | + | : '''{{c|<nowiki>{{dsda|id=somenumber|title=somename}}</nowiki>}}''' |
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). | 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:'' | + | ''Example:'' {{c|<nowiki>{{dsda|id=1243|title=Suspended in Dusk}}</nowiki>}} becomes {{dsda|id=1243|title=Suspended in Dusk}} |
− | *The title can also be the first, unnamed parameter: | + | *The title can also be the first, unnamed parameter: {{c|<nowiki>{{dsda|Suspended in Dusk|id=1243}}</nowiki>}} becomes {{dsda|Suspended in Dusk|id=1243}}. |
− | *The id can also be the second unnamed parameter: | + | *The id can also be the second unnamed parameter: {{c|<nowiki>{{dsda|Suspended in Dusk|1243}}</nowiki>}} becomes {{dsda|Suspended in Dusk|1243}}. |
+ | *For WADs with multiple pages, a map number can be specified with the ''mapid'' parameter. This follows DSDA's URL format, e.g. "mapid=211" for MAP11 or "mapid=142" for E4M2. | ||
*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: {{ | + | *If no id is given, the template displays an error message: {{dsda}} |
− | *If the "<span class="plainlinks">at [http://doomedsda.us/ the Doomed Speed Demos Archive]</span>" bit is not desired, the linkonly parameter can be used: | + | *If the "<span class="plainlinks">at [http://doomedsda.us/ the Doomed Speed Demos Archive]</span>" bit is not desired, the ''linkonly'' parameter can be used: {{c|<nowiki>{{dsda|Suspended in Dusk|1243|linkonly=1}}</nowiki>}} becomes {{dsda|Suspended in Dusk|1243|linkonly=1}}. |
[[Category:External link templates]]</noinclude> | [[Category:External link templates]]</noinclude> |
Revision as of 12:54, 31 March 2017
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 Doomed Speed Demos Archive, as:
- {{dsda|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: {{dsda|id=1243|title=Suspended in Dusk}} becomes Suspended in Dusk (archived 🏛) at the Doomed Speed Demos Archive
- The title can also be the first, unnamed parameter: {{dsda|Suspended in Dusk|id=1243}} becomes Suspended in Dusk (archived 🏛) at the Doomed Speed Demos Archive.
- The id can also be the second unnamed parameter: {{dsda|Suspended in Dusk|1243}} becomes Suspended in Dusk (archived 🏛) at the Doomed Speed Demos Archive.
- For WADs with multiple pages, a map number can be specified with the mapid parameter. This follows DSDA's URL format, e.g. "mapid=211" for MAP11 or "mapid=142" for E4M2.
- If no title is given, the template uses the page title.
- If no id is given, the template displays an error message: Error: no id given, see the instructions to use this template.
- If the "at the Doomed Speed Demos Archive" bit is not desired, the linkonly parameter can be used: {{dsda|Suspended in Dusk|1243|linkonly=1}} becomes Suspended in Dusk (archived 🏛).