Brickipedia

READ MORE

Brickipedia
Advertisement

I wrote a new template (Template:Set header, look here for details). I intended it to be placed on top of set articles. It contains info about the set's context within the Lego product family and links to the sets with preceding/succeeding numbers (in this regard it's intended to replace Template:Reference). It could also show information about the articles quality (featured, good etc.). But this is just optional.

Feedback[]

  • Wow! I don't know about anyone else, but I really like it :) To me, it's compact, unintrusive but really helpful. However, there are just a couple of things I want ask about:
    • The automatic linking to the numbers before and after. This would mean that every set article would have to have a redirect page made for it, and also if we end up creating more articles on part numbers, we might have to have disambiuation pages made to point to the set or the part of that number.
    • User friendliness. How hard will this template be to use? While I would be happy to enter stuff into the template all the time, we want to keep templates fairly simple so anyone who edits here, nomatter how frequently or their experience with wiki code can use templates relatively easily.
    • The four items on the left (in the example LEGO>System>Castle>Dragon Masters. Would all four fields have to be used? If so, what about themes such as Pirates which have no subtheme? Would the template display LEGO>System>Pirates>{{{3}}} or something like this?
    • They were my main concerns about the template, but also wanted to ask- why are there three templates shown under "Set header template"? Were these just variants to test out?
    • Also, I don't know about the color scheme. It's a good idea, but for users who aren't frequently here would see the colors but not understand what they mean. Maybe just have a little logo to the right of the LEGO logo and link to what they are (like the current featured article template?). And replacing the title with this template doesn't sound like a good option to me either. The template doesn't actually contain the name of the article, and in the example on the page, it looks good under a title.

But apart from this, I'm all for this template being implemented :) NightblazeSaber 12:11, 30 April 2009 (UTC)

  • Also, I just noticed that the sidebar and top bars are smaller and in the wrong positions, probably by some fault of the code. Any way to fix this? NightblazeSaber 12:22, 30 April 2009 (UTC)
Nice, I recently created something like this for simpsons wiki, and it does make it easier to link to pages related. kingcjc 15:27, 5 May 2009 (UTC)


Answers[]

  • The automatic linking to the numbers before and after.
    • It's usually intended to let the user enter the pagetitles on his own ({{{before}}} and {{{after}}}) and that's what the numbers in the top right corner link to. However, the numbers themselves would have be entered by the user as well (As it is already the case in Template:Reference) but I intended these numbers to be automatically generated from the number of the set (user has tho enter {{{number}}} into the template) via the #expr parser function. A problem arises when the number of the preceding/next set is not exactly 1 lower/higher. This could be remedied by integrating the StringFunctions extension into this wiki which provides parser functions for strings. This way the numbers could be extracted directly from the pagetitles in {{{before}}}/{{{after}}} or even from the variable PAGENAME, which makes the usage of the template considerably easier. Witout the new extension, the numbers better be inserted conventionally by the user himself as in Template:Reference.
      • Also, I just wanted to check- for sets with numbers such as K1097 or similar, the string extraction doesn't stop when a non-digit character is entered but stops after the space right? NightblazeSaber 23:55, 30 April 2009 (UTC)
        • Yes, that's how I intended to do it. -LegOtaku 06:53, 1 May 2009 (UTC)
  • User friendliness.
    • The user has to know the pagetitles of the preceding and the next set (just as in Template:Reference) as well as the correct theme (in some cases also the subtheme, which most people who write this into the infobox already know as well) and he has to know if a set is System or Duplo or something else.
Due to the way the entries are integrated into wikilinks, the user has to enter only the pagetitle of the other sets. As soon as he enters them as links it doesn't work anymore. (same problem as in Template talk:Reference-test). The problem can be solved with the StringFunctions extension.
  • The four items on the left (in the example LEGO>System>Castle>Dragon Masters.
    • By using the #if-function (which is already in use in various infoboxes) for the fourth entry ({{{subtheme}}}), the template displays nothing at that point if the user doesn't enter a value for {{{subtheme}}}. So, only the first three fields would have to be used and since the first entry should be LEGO all the time the user only has to enter the second and third one.
  • why are there three templates shown under "Set header template"? Were these just variants to test out?
    • Yes, just ignore them. ;)
  • Maybe just have a little logo to the right of the LEGO logo and link to what they are (like the current featured article template?)
    • Yes, that's what I actually wanted. The colors are just placeholders. And when the logos are in place they would link to Brickipedia's Featured article page, or Good article page etc. But this feature can be added to the template afterwards when a rating system is finally established. --LegOtaku 13:58, 30 April 2009 (UTC)
  • Also, I just noticed that the sidebar and top bars are smaller and in the wrong positions, probably by some fault of the code. Any way to fix this?
    • I didn't see any problems.
      • Neither do I now. Sorry, must have just been me :) NightblazeSaber 23:55, 30 April 2009 (UTC)

I moved the code to the the template namespace (Template:Set header) and tested the template on the page 7774 Crab Crusher. Works as intended. (It also nicely illustrates what happens if the last field on the left is unused.) -LegOtaku 13:58, 30 April 2009 (UTC)

Examples[]

The template on the page 6082 Fire Breathing Fortress would be filled out like this:

{{Set header
|toyline= System
|supertheme= Castle
|subtheme= Dragon Master
|setwithsamenumber= ''empty, since there's no second set with the same number (6082)''
|setwithsamenumber2=
|before=6081 King's Mountain Fortress
|before2=
|before3=
|after=6083 Knight's Tournament
|after2=6083 Samurai Stronghold
|after3=
}}

which results in:

LEGO > System > Castle > Dragon Masters
6081 << 6082 >> 6083 (1, 2) 284px-LEGO logo.svg


The template on the page 6083 Samurai Stronghold would be filled out like this:

{{Set header
|toyline= System
|supertheme= Castle
|subtheme= Ninja
|setwithsamenumber= 6083 Knight's Tournament
|setwithsamenumber2=
|before=6082 Fire Breathing Fortress
|before2=
|before3=
|after=6085 Black Monarch's Castle ''this is the next set, since there's no set with the number 6084''
|after2=
|after3=
}}

which results in:

LEGO > System > Castle > Ninja
6082 << 6083 (Set2) >> 6085 284px-LEGO logo.svg


The template on the page 10001 Metroliner would be filled out like this:

{{Set header
|toyline= Legends
|supertheme= 
|subtheme= 
|setwithsamenumber= 
|setwithsamenumber2=
|before=10000 Guarded Inn
|before2=
|before3=
|after=10002 Railroad Club Car
|after2=
|after3=
}}

which results in:

LEGO > Legends
10000 << 10001 >> 10002 284px-LEGO logo.svg


The template on the page 4961 Fun Zoo would be filled out like this:

{{Set header
|toyline= Duplo
|supertheme= LEGO Ville
|subtheme= 
|setwithsamenumber= 
|setwithsamenumber2=
|before=4960 Giant Zoo
|before2=
|before3=
|after=4962 Baby Zoo
|after2=
|after3=
}}

which results in:

LEGO > Duplo > LEGO Ville
4960 << 4961 >> 4962 284px-LEGO logo.svg


The template in use[]

Any suggestions for the text used to signify the other sets. I'm not really happy with "Set 2". -LegOtaku 16:41, 30 April 2009 (UTC)

  • Sorry, I can't think of anything at the moment, but I'll keep thinking :)

Thought that this template should be formally voted on since, if passed this template is going to replace our 2nd/3rd most used template on the wiki ({{Reference}}):

Advertisement