Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Template issues

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


kelvSYC at shaw

Oct 8, 2009, 10:45 PM

Post #1 of 3 (629 views)
Permalink
Template issues

I'm trying out the navbox template at [[w:Wikipedia:WikiProject
Transwiki/Template:Navbox]], and I seem to hit a bug in the code there
and I want to see how I can fix it. In particular, when I do this:

{{Navbox
| group1 = Foo
| list1 = {{Navbox
| group1 = Foo1
| list1 = Bar1
| group2 = Foo2
| list2 = Bar2
}}
}}

That seems fine enough. However, if I do this,

{{Navbox
| group1 = Foo
| list1 = {{Navbox|child
| group1 = Foo1
| list1 = Bar1
| group2 = Foo2
| list2 = Bar2
}}
}}

I get messed up data - The row with Foo has four columns instead of
two (the second of which is the wikitext of the start of the table
that makes up the child navbox), and the Foo2 group in the child
navbox is manifesting itself as a second group in the main table.

Looking at the wikicode, it looks like something is up with the
{{#switch}} at the very top and bottom of the template. Any ideas on
how I can fix it?

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

Oct 9, 2009, 2:54 PM

Post #2 of 3 (560 views)
Permalink
Re: Template issues [In reply to]

Kelvin Chung wrote:
> Looking at the wikicode, it looks like something is up with the
> {{#switch}} at the very top and bottom of the template. Any ideas on
> how I can fix it?

To get {{#switch}} you need to install
http://www.mediawiki.org/wiki/Extension:ParserFunctions


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


kelvSYC at shaw

Oct 10, 2009, 7:47 AM

Post #3 of 3 (565 views)
Permalink
Re: Template issues [In reply to]

On Oct 9, 2009, at 3:54 PM, Platonides wrote:

> Kelvin Chung wrote:
>> Looking at the wikicode, it looks like something is up with the
>> {{#switch}} at the very top and bottom of the template. Any ideas on
>> how I can fix it?
>
> To get {{#switch}} you need to install
> http://www.mediawiki.org/wiki/Extension:ParserFunctions
>

Right, and I have ParserFunctions installed. This is evidenced by the
fact that the {{Navbox ... {{Navbox ...}} }} constructs works as
intended, as is {{subst:Navbox ... {{Navbox|child ... }} }}. However,
for some reason {{Navbox ... {{Navbox|child ...}} }} doesn't work as
intended.

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.