Difference between revisions of "Template:Plainlink"

From otp22 db
Jump to: navigation, search
(Using equals signs)
Line 13: Line 13:
 
<pre>{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t=36166|Unfiction thread}}</pre>
 
<pre>{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t=36166|Unfiction thread}}</pre>
  
You can however Encode the equals-sign to pass it appropriately.
+
 
 +
You can however Encode the equals-sign to pass it appropriately, or use a template to transclude the raw equals-sign.
 +
See the following examples:
 +
 
 +
{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t{{eq}}36166|Unfiction thread}}
 +
<pre>{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t{{eq}}36166|Unfiction thread}}</pre>
  
 
{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t{{#urldecode:%3D}}36166|Unfiction thread}}
 
{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t{{#urldecode:%3D}}36166|Unfiction thread}}

Revision as of 23:29, July 13, 2013


http://google.com/

{{Plainlink|http://google.com/}}

Boogle

{{Plainlink|http://google.com/|Boogle}}

Using equals signs

Because of the nature of templates, using an equals sign in an URL will produce an erroneous link:

Unfiction thread

{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t=36166|Unfiction thread}}


You can however Encode the equals-sign to pass it appropriately, or use a template to transclude the raw equals-sign. See the following examples:

Unfiction thread

{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t{{eq}}36166|Unfiction thread}}

Unfiction thread

{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t{{#urldecode:%3D}}36166|Unfiction thread}}

Unfiction thread

{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t & # 61 ; 36166|Unfiction thread}}

Unfiction thread

{{Plainlink|http://forums.unfiction.com/forums/viewtopic.php?t%3D36166|Unfiction thread}}