This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20369 - Cannot add a YouTube link inside a note
Summary: Cannot add a YouTube link inside a note
Status: RESOLVED FIXED
Alias: None
Product: webplatform.org
Classification: Unclassified
Component: content (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Chris Mills
QA Contact: public-webplatform-bugs list
URL: http://docs.webplatform.org/wiki/tuto...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-12 22:55 UTC by Luz Caballero
Modified: 2012-12-13 17:48 UTC (History)
1 user (show)

See Also:


Attachments

Description Luz Caballero 2012-12-12 22:55:45 UTC
Tried to add the following YouTube link:

http://www.youtube.com/watch?v=me3BviH3nZc

inside a note, using the following mark-up:

{{Note|[http://www.youtube.com/watch?v=me3BviH3nZc Watch Erik's entire WebGL video tutorial] for free on YouTube. Over 2 and a half hours of WebGL tuition! }}

But I just got something that looked like {{{1}}} instead of my note.
Comment 1 David Kirstein (Frozenice) 2012-12-12 23:06:55 UTC
The problem is the equals sign inside the URL, as this is a special character for template calls (separating parameter name and value).

You'd either have to replace every = with {{=}} like this:
{{Note|[http://www.youtube.com/watch?v{{=}}me3BviH3nZc Watch Erik's entire WebGL video tutorial] for free on YouTube. Over 2 and a half hours of WebGL tuition! }}

or (easier for editors) prefix the note-text with 1= like this:
{{Note|1=[http://www.youtube.com/watch?v=me3BviH3nZc Watch Erik's entire WebGL video tutorial] for free on YouTube. Over 2 and a half hours of WebGL tuition! }}

This should probably be mentioned in the style guide or some other place.
Comment 2 JuleeAtAdobe 2012-12-13 17:48:17 UTC
Added the following note to http://docs.webplatform.org/wiki/WPD:Style_Guide/Gotchas:


=URL containing special characters in notes or other tags=

Certain links contain special characters, such as the equal sign (=) in a link to a YouTube video (for example, http://www.youtube.com/watch?v=me3BviH3nZc). When these links are inside other wiki references, such as the Note tag, the special character needs to be escaped. Two ways to do so are:

* Replace every = with {{=}}, as in:
<syntaxhighlight>
{{Note|[http://www.youtube.com/watch?v{{=}}me3BviH3nZc Watch Erik's entire WebGL video tutorial] for free on YouTube. Over 2 and a half hours of WebGL tuition! }}
</syntaxhighlight>

OR

* Prefix the note-text with 1=, as in:
<syntaxhighlight>
{{Note|1=[http://www.youtube.com/watch?v=me3BviH3nZc Watch Erik's entire WebGL video tutorial] for free on YouTube. Over 2 and a half hours of WebGL tuition! }}
</syntaxhighlight>