m (Add TemplateData) |
m (Support leading '/') |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>[https://tasvideos.org/{{{1}}} {{{2|TASVideos}}}]</includeonly></onlyinclude> | <onlyinclude><includeonly>[https://tasvideos.org{{#ifeq:{{#sub:{{{1}}}|0|1}}|/||/}}{{{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. | ||
Line 14: | Line 14: | ||
"type": "url", | "type": "url", | ||
"required": true, | "required": true, | ||
"description": "omit protocol+domain | "description": "omit protocol+domain", | ||
"example": "EmulatorResources" | "example": "EmulatorResources" | ||
}, | }, |
Revision as of 14:03, 30 October 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
| URL | required |
Label text | 2 | no description
| Line | optional |