Thread:Arno Mrnym/@comment-15636815-20150313021829

Arno Mrnym wrote: I see :D

Here is a short Example how it would look like with Name and Pic in one cell. The rows are usually 2 lines anyway. You wrote, "I see", but you didn't fix it. Even though users could find the locomotive page from the disambiguation ("dag" for short) page, a table like that should always link directly to the relevant article pages.

I fixed the input so it does link to the proper page. When I did so, I realized that perhaps you attempted to fix it but encountered unexpected behaviour. Whether you attempted to fix it or not, though, you'll need this info later.

The name parameter for that template accepts only the loco's name, which it then converts into a link. If you give it a link, it won't work. In this case, we need a piped link, like this:. However, if we specify, we have a problem. The template interprets the pipe character as the end of the parameter. The next thing it reads is "Nucleus", which doesn't make any sense to it.

To get around this problem, we use ! in place of the pipe character. The template can read the entire parameter that way. After reading it, it executes !, which inserts a single pipe character in the location. Then the template converts the entire name parameter into a link, just as it usually does. And voilà! Our page now shows a proper link to the proper place, showing the proper name. :-)

Generally, we would produce a sample page separately from a live page. Even though the change you made wasn't significant enough to cause a problem, it's still better to keep ideas on separate pages until it's time to implement them. Of course, a sample wouldn't have to be long. You could have used just the first few locos for your example, exactly as you did, and then closed the table.

The best place for a sample page is in your user space. To do that, create a new page with a title like this:

Concerning your sample work, I agree that on that table, everything looks fine. Your comment that the rows usually contain two lines is not entirely accurate, though. It's true for the rows you edited. Scroll down that same table, and you'll see many rows that contain only one line. If we remove or reformat the offer date information when we redesign the tables, maybe even the rows you edited will contain only one line. In other words, it's unwise to make a plan based on an assumption that may or may not always hold true.

In addition, look at the table at the top of the Maglev Locomotives page. Those images are taller than the ones in your sample. That makes a difference, too.

You're learning, and that's cool. I learn new stuff here all the time myself, and I've been here almost two years. Previously, you listed the columns that you think should be included in those tables. I encourage you to build a sample table with just that information. Then we can get a better idea of how the final product may look. :-)

Good job! 