Difference between revisions of "User talk:Galeandrews"

From Audacity Wiki
Jump to: navigation, search
(Note to Gale)
(Info on equal signs in template invocations)
Line 1: Line 1:
 
Hi!
 
Hi!
  
I think one of the problems with the [[Template:External]] (or, for that matter, any template reallly) is that it is not happy with equal signs. The equal sign has some kind of special interpretation when included in a template, and needs to be 'escped' somehow (I just haven't time to check it up right now).
+
Here is an update on the 'equal signs in URL' business:
  
// [[User:Suf|Suf]] 00:05, 29 August 2007 (PDT)
+
I have confirmed (by reading the {{External|[http://en.wikipedia.org/wiki/Help:Template manual]}} - ouch, that hurt...) that one of the problems with templates is that they are not immediately happy with equal signs in the parameters. The equal sign is used for assigning values to named parameters and/or in any order, but the effect can be overridden. Here is an example:
 +
 
 +
<nowiki>{{external|[http://youtube.com/results?search_query=audacity+tutorial&search=Search video tutorials on using Audacity]}}</nowiki>
 +
 
 +
includes equal signs, confusing the parser, and will produce the erroneous
 +
 
 +
:{{external|[http://youtube.com/results?search_query=audacity+tutorial&search=Search video tutorials on using Audacity]}}
 +
 
 +
While
 +
 
 +
<nowiki>{{external|1=[http://youtube.com/results?search_query=audacity+tutorial&search=Search video tutorials on using Audacity]}}</nowiki>
 +
 
 +
by starting the string with {{Menu|1=1=}} says something like 'set parameter one to the following string' and will produce
 +
 
 +
:{{external|1=[http://youtube.com/results?search_query=audacity+tutorial&search=Search video tutorials on using Audacity]}}
 +
 
 +
Likewise the pipe character is restricted, see the {{External|[http://en.wikipedia.org/wiki/Help:Template manual]}}
 +
 
 +
'''NB:''' that the same problem occured for the invocation of the ''Menu'' template above!
 +
 
 +
 
 +
// [[User:Suf|Suf]] 10:27, 2 September 2007 (PDT)

Revision as of 17:27, 2 September 2007

Hi!

Here is an update on the 'equal signs in URL' business:

I have confirmed (by reading the manual  - ouch, that hurt...) that one of the problems with templates is that they are not immediately happy with equal signs in the parameters. The equal sign is used for assigning values to named parameters and/or in any order, but the effect can be overridden. Here is an example:

{{external|[http://youtube.com/results?search_query=audacity+tutorial&search=Search video tutorials on using Audacity]}}

includes equal signs, confusing the parser, and will produce the erroneous

{{{1}}} 

While

{{external|1=[http://youtube.com/results?search_query=audacity+tutorial&search=Search video tutorials on using Audacity]}}

by starting the string with 1= says something like 'set parameter one to the following string' and will produce

video tutorials on using Audacity 

Likewise the pipe character is restricted, see the manual 

NB: that the same problem occured for the invocation of the Menu template above!


// Suf 10:27, 2 September 2007 (PDT)