Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tropes: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
code issue
Joe Beaudoin Jr. (talk | contribs)
rm errant }
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 =



Revision as of 04:56, 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}