[Mediawiki-l] template parse problem
judi chen
judi_chen at yahoo.com
Fri Nov 18 12:26:00 UTC 2005
Thanks for your reply.
I agree with you that the distributed mediawiki 's
parse does not treat {{{para}}} within the
{{template}} call as a para.
But the paser, wikipedia.org used does treat the
{{{para}}} within the {{template}} call as a para.
Can someone share the info of {{{para}}} within the
{{template}} call as a para.
Or how to modify my parser to do that.
Thanks
jc
Message: 4
Date: Thu, 17 Nov 2005 17:28:16 -0800
From: Joshua Yeidel <yeidel at wsu.edu>
Subject: Re: [Mediawiki-l] yeidel at wsu.edu
To: mediawiki list <mediawiki-l at Wikimedia.org>
Message-ID: <BFA26E30.12F42%yeidel at wsu.edu>
Content-Type: text/plain; charset="US-ASCII"
On 11/17/05 4:26 PM, "judi chen" <judi_chen at yahoo.com>
wrote:
> Thanks for the reply.
>
> Is this the problem? Mediawiki should treat
> {{{parameter}}} as the parameter not part of the {{
> template }}
>
> How to fix this problem
> thanks
You _intend_ for Mediawiki to treat "{{{1}}}" as a
parameter value, and
not
as part of the template call, but it's not clear to me
that it _should_
do
that.
The notation "{{{1}}}" is used in a template _body_ as
a placeholder
for a
parameter value that will be passed in a template
_call_. You are
using it
as a parameter value within a template call, which (it
seems) was not
anticipated by the people who coded the parser.
Have you tried:
{{t2|<nowiki>{{{1}}}</nowiki>|a}}
This might prevent the interpretation of the "}}" as
closing the
template
call.
-- Joshua
>
>
>
> Message: 7
> Date: Thu, 17 Nov 2005 10:46:22 -0800
> From: Joshua Yeidel <yeidel at wsu.edu>
> Subject: Re: [Mediawiki-l] template problem, donot
> understand
> {{{name}}}
> To: mediawiki list <mediawiki-l at Wikimedia.org>
> Message-ID: <BFA20FFE.12EE0%yeidel at wsu.edu>
> Content-Type: text/plain; charset="US-ASCII"
>
> "{{" begins the template "call". It is ended by the
> first occurrence
> of
> "}}" -- in your case, immediately after "1".
> Everything after "1}}" is
> treated as plain text.
>
> -- Joshua
>
>
>
>
> On 11/16/05 7:39 PM, "judi chen"
<judi_chen at yahoo.com>
> wrote:
>
>> Hi,
>> Thanks for the reply. Here is my problem.
>>
>> I have a template: t2 with the following code
>> start-{{{1}}}-middle-{{{2}}}-end
>>
>> An if I do {{t2|{{{1}}}|a}} to call the Template:t2
>>
>> I suppose to get this as output,
>> start-{{{1}}}-middle-a-end
>>
>> But rather I got this on my wiki
>>
>> start-{{{1-middle-{{{2}}}-end}|a}}
>>
>> That is my problem
>>
>> Any suggestions
>> thanks
>> jc
>>
>>
>>
>
>
>
>
> __________________________________
> Yahoo! FareChase: Search multiple travel sites in
one click.
> http://farechase.yahoo.com
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
>
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
More information about the MediaWiki-l
mailing list