Last modified: 2007-07-15 02:40:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10562 - Problem with lists in Template Parameter
Problem with lists in Template Parameter
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://de.wikipedia.org/wiki/Benutzer...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-13 09:48 UTC by blauerflummi
Modified: 2007-07-15 02:40 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description blauerflummi 2007-07-13 09:48:35 UTC
Hello,

When I use the template http://de.wikipedia.org/wiki/Vorlage:Infobox_Bahnhof, there is a problem with the usage of lists in template parameters. A good illustration of this problem is http://de.wikipedia.org/wiki/Benutzer:Blauerflummi/Testseite_Infobox_Bahnhof_2. As you can see, the list in the row labeled "Architekten" is not properly displayed. The first entry, Heinrich Reinhardt, is not displayed as a list item. Instead, the star, that is supposed to generate the list Item is visible. However, the the second entry, Georg Süßenguth, is displayed as a proper list item.

This problem occurs with all parameters, except the parameter "Strecken" at the bottom. My suggestion is, that this has something to do with the fact, that all rows consist of two columns except for "strecken", which streches across both columns. Any suggestions?
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-13 16:53:34 UTC
The * must be at the beginning of the line in order to display.  The template itself contains lines like

{{#if: {{{Architekt|}}} |
 ! {{#if: {{{Architekt_Bezeichnung|}}}|
    {{{Architekt_Bezeichnung|}}}|Architekt
  }}
  {{!}} {{{Architekt|}}}
}}

Which when substituted out look like

|
 ! Architekt
  | * [[Heinrich Reinhardt]]
* [[Georg Süßenguth]]

so the first item does not begin its line and so is not a valid list item.  You need an extra line break in the source somewhere, such as in the template code.
Comment 2 blauerflummi 2007-07-14 15:37:19 UTC
But how do I insert the extra line break, without destroying the layout? I created a copy of the template ( http://de.wikipedia.org/wiki/Benutzer:Blauerflummi/Infobox_Bahnhof_2 ), where I changed the source code to 

{{#if: {{{Architekt|}}} |
 ! {{#if: {{{Architekt_Bezeichnung|}}}|
    {{{Architekt_Bezeichnung|}}}|Architekt
  }} {{!}}
{{{Architekt|}}}
}} 

But now the caption "Architekten" in the first column disappears, and the two architects are listed in the first column. You can see this on http://de.wikipedia.org/wiki/Benutzer:Blauerflummi/Testseite_Infobox_Bahnhof_3

I also tried
{{#if: {{{Architekt|}}} |
 ! {{#if: {{{Architekt_Bezeichnung|}}}|
    {{{Architekt_Bezeichnung|}}}|Architekt
  }} {{!}} <br />{{{Architekt|}}}
}}

But I got the same wrong results.

Also, I tried to insert the <br /> in the parameter text, as you can see on http://de.wikipedia.org/wiki/Benutzer:Blauerflummi/Testseite_Infobox_Bahnhof_2

Now the result is a little bit better. The two architects are listed in the second column and the caption "Architekten" is displayed in the first column. However, due to the <br /> there is now an ugly line break visible, and the caption "Architekten" is one line above the the two architects.

Either there is a way to insert a line break that is not visible, or there is really a bug with the software.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 02:17:10 UTC
The header disappeared because you added a bug to the template when editing it.
Comment 4 blauerflummi 2007-07-15 02:30:29 UTC
First of all I want to thank you for investigating this problem!!!

But the original problem is still unsolved. If you look at http://de.wikipedia.org/wiki/Benutzer:Blauerflummi/Testseite_Infobox_Bahnhof_3 , then the list is still not working properly. The first architect is displayed with a star in front of him instead the usual square. Only the second architect is a proper list entry with a square.

To me it looks now, that one has to choose between two problems when trying to display a list in a template with several columns. Either the first list entry has a different list symbol (star instead of rectangle) or one has to insert an extra line break which is visible.
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 02:40:43 UTC
This is definitely not a bug in the software, regardless.  You can feel free to ask for template help in #mediawiki on FreeNode, or try busier places that are likely to have high numbers of template-proficient people, like #wikipedia, the English Wikipedia's technical village pump, etc.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links