[[Image:|60px]] | This user is a [[]] fan. |
How to add your favorite aircraft
NOTE: Jimbo is a copyrighted character, and fair use guidelines do not extend to userboxes, so don't actually add Jimbo to this box!
Here is an example: let's suppose you wanted to add Jimbo (no, not that Jimbo!).
We will replace the aircraft name with "Jimbo", the variable name (the parameter name you will use when putting the box in your userpage) will be "JMB" (could be anything else), and we will be using this picture:
Which is File:Jimbo_and_the_Jet_Set.jpg.
Right at the start of the template code, you have this:
{{userbox
| id = [[Image:{{#switch:{{{1}}}
|B707=John Travolas 707-138B (253799799).jpg
|B717=AirTran Airways B717-2BD (N969AT) at Baltimore–Washington International Airport.jpg
(... huge list ...)
|DHC=DeHavilland_Comet.jpg
}}|60px]]
| id-c = #{{#switch:{{{2}}}
Which is the list of images for each aircraft. We'll add our Jimbo picture there at the end, so it will look like this:
{{userbox
| id = [[Image:{{#switch:{{{1}}}
|B707=John Travolas 707-138B (253799799).jpg
|B717=AirTran Airways B717-2BD (N969AT) at Baltimore–Washington International Airport.jpg
(... huge list ...)
|DHC=DeHavilland_Comet.jpg
|JMB=NonFreeImageRemoved.svg
}}|60px]]
| id-c = #{{#switch:{{{2}}}
Now we need to add the name. A couple of lines below the previous list, you have another one:
| info = This user is a '''[[{{#switch:{{{1}}}
|B707=Boeing 707
|B717=Boeing 717
(... another huge list ...)
|DHC=De Havilland Comet
}}]]''' fan.
Which is the list of aircraft names. Again, add we will add Jimbo to the end so it will look like this:
| info = This user is a '''[[{{#switch:{{{1}}}
|B707=Boeing 707
|B717=Boeing 717
(... another huge list ...)
|DHC=De Havilland Comet
|JMB=Jimbo
}}]]''' fan.
And that's it. After adding Jimbo, putting the code
{{User:UBX/aircraft_fan|JMB}}
Would result in this userbox:
This user is a Jimbo fan. |
Replace the aircraft name, picture and variable name with whatever you want to add (and again, do not add Jimbo!).
Finally: To let everyone else know how can they put the new aircraft userbox on their page, we add it to this page's How to Use section and to the civilian aircraft or military aircraft (whichever is the case) Aviation userboxes catalogue section.
To add to this page's How to Use section: at the very end of the template code, you have this:
==How to Use==
{{usbktop}}
{{usbk|User:UBX/aircraft fan|B707|grey}}
{{usbk|User:UBX/aircraft fan|B707|red}}
(... yet another huge list ...)
{{usbk|User:UBX/aircraft fan|DHC}}
{{usbkbottom}}
Now add Jimbo by placing another line next to the last, so it will look like this:
==How to Use==
{{usbktop}}
{{usbk|User:UBX/aircraft fan|B707|grey}}
{{usbk|User:UBX/aircraft fan|B707|red}}
(... yet another huge list ...)
{{usbk|User:UBX/aircraft fan|DHC}}
{{usbk|User:UBX/aircraft fan|JMB}}
{{usbkbottom}}
At the wikipedia userbox catalogue you need to add the same line, and then you're all done.
How to Use
NOTE: Besides the aircraft type, you can add a second parameter to choose a color tone. Current options are red, green, blue, grey/gray or nothing, which gives a yellowish tone. You can combine any aircraft with any tone.