m (Use a nicer-looking arrow) |
m (Add to category) Tag: 2017 source edit |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>[https://tasvideos.org | <onlyinclude><includeonly>[https://tasvideos.org{{{1}}} {{{2|TASVideos}}}]</includeonly></onlyinclude> | ||
Link to TASVideos.org. <code><nowiki>{{TASVideos|EmulatorResources|click here}}</nowiki></code> ⟶ {{TASVideos|EmulatorResources|click here}} | |||
Link to TASVideos.org. <code><nowiki>{{TASVideos|/EmulatorResources|click here}}</nowiki></code> ⟶ {{TASVideos|/EmulatorResources|click here}} | |||
Label defaults to "TASVideos" if omitted. Don't forget to use explicit <code>1=</code> and <code>2=</code> if the path contains an '='. The first argument isn't escaped automatically, as that wouldn't preserve '/'; you can use the [[mw:Help:Magic_words#urlencode|<code>{{<nowiki/>urlencode}}</code> magic word]] if necessary. | Label defaults to "TASVideos" if omitted. Don't forget to use explicit <code>1=</code> and <code>2=</code> if the path contains an '='. The first argument isn't escaped automatically, as that wouldn't preserve '/'; you can use the [[mw:Help:Magic_words#urlencode|<code>{{<nowiki/>urlencode}}</code> magic word]] if necessary. | ||
{{related templates TASVideos}} | {{related templates TASVideos}} | ||
{{TemplateData preamble}}<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "URI", | |||
"type": "url", | |||
"required": true, | |||
"description": "omit protocol+domain but include the leading '/'", | |||
"example": "EmulatorResources" | |||
}, | |||
"2": { | |||
"label": "Label text", | |||
"type": "line", | |||
"example": "click here", | |||
"default": "TASVideos" | |||
} | |||
}, | |||
"description": "Link to TASVideos.org.", | |||
"paramOrder": [ | |||
"1", | |||
"2" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
[[Category:General-use_inline_templates]] |
Latest revision as of 07:00, 4 November 2023
Link to TASVideos.org. {{TASVideos|/EmulatorResources|click here}}
⟶ click here
Label defaults to "TASVideos" if omitted. Don't forget to use explicit 1=
and 2=
if the path contains an '='. The first argument isn't escaped automatically, as that wouldn't preserve '/'; you can use the {{urlencode}}
magic word if necessary.
All templates for linking to TASVideos.org:
- {{TASVideos}}
- {{TASVideosFP}}—forum post
- {{TASVideosFT}}—forum topic (thread)
- {{TASVideosG}}—game hub
- {{TASVideosM}}—publication (movie)
- {{TASVideosPF}}—platform
- {{TASVideosU}}—user
- {{TASVideosUF}}—userfile
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
Link to TASVideos.org.
Parameter | Description | Type | Status | |
---|---|---|---|---|
URI | 1 | omit protocol+domain but include the leading '/'
| URL | required |
Label text | 2 | no description
| Line | optional |