Template:Tropes: Difference between revisions

Template page
(code issue)
m (Protected "Template:Tropes": Sensitive Page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[tropes:{{#replace:{{#replace:{{{1}}}|<nowiki> </nowiki>|<nowiki></nowiki>}}|-|<nowiki></nowiki>}}|{{{2|{{{1}}}}}}}}]]</includeonly><noinclude>
<includeonly>[[tropes:{{#replace:{{#replace:{{{1}}}|<nowiki> </nowiki>|<nowiki></nowiki>}}|-|<nowiki></nowiki>}}|{{{2|{{{1}}}}}}]]</includeonly><noinclude>
= Documentation =
= Documentation =



Latest revision as of 06:11, 22 April 2020

Documentation

As TV Tropes strips human-readable links to remove spaces and other characters in its URL, this template allows simple linkage to an article on TV Tropes without having to deal with [[tropes:ILied|I Lied]].

Usage

{{tropes|Train-Station Goodbye}}

Prints:

Train-Station Goodbye

The deployment of a second variable also allows the end user to re-write the text to be hyperlinked, thus:

{{tropes|Train-Station Goodbye|a farewell of star-crossed lovers}}

Prints:

a farewell of star-crossed lovers