Template:Ttl

From Angelina Jordan Wiki

TikTok

Documentation

This template forms external links to TikTok. It can be used directly, but it's probably easier to use {{ttu}} for TikTok user pages and {{ttv}} for videos, both of which call this template.

The name of the template is based on the phrase "tiktok link".

Usage

  • {{ttl|path}}
  • {{ttl|path|text to be linked}}
  • {{ttl|path=|linktext=}}
  • {{ttl|path=|linktext=|protocol=http: or https: or nothing}}

Here "path" means everything after "tiktok.com/" in the URL of the TikTok page you want to link to. If the path contains an equals sign (which is very unlikely), you can either use the {{=}} template for that character or explicitly "name" the positional parameters 1= and 2= in your template call (if you are trying to use the first or second form above), or just use the explicitly-named parameters in the third or fourth form. Otherwise the equals sign will be interpreted as separating a parameter name from its value, resulting in a malformed link.

Note that protocol-relative URLs are formed by default, which means someone browsing the wiki in non-secure mode will get links using the http: protocol, and someone browsing in secure mode will get links using https:. (But note that currently this wiki can only be browsed in secure mode.) This behavior can be overridden by using the protocol parameter, the value of which must include the trailing colon, as seen in the example below.

Examples

Linking to https://www.tiktok.com/ :

Linking to https://www.tiktok.com/@angelinajordana :

Linking to https://www.tiktok.com/@angelinajordana/video/6969444148004883717 :

See also

Full list of similar templates:    [edit this list]

  • {{ttu}} – link to a TikTok user page
  • {{ttv}} – link to a TikTok video
  • {{ttp}} – link to a TikTok photo

These templates are "special cases" of the more general template (which they all call):

  • {{ttl}} – link to any page at TikTok

And that template in turn calls {{TTURL}} and {{xl}} to form the link itself.