User:UBX/aircraft fan
| [[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:
<source lang="xml"> {{userbox | id = [[Image:|60px]] | id-c = #{{#switch:{{{2}}} </source>
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:
<source lang="xml"> {{userbox | id = [[Image:|60px]] | id-c = #{{#switch:{{{2}}} </source>
Now we need to add the name. A couple of lines below the previous list, you have another one:
<source lang="xml"> | info = This user is a [[]] fan. </source>
Which is the list of aircraft names. Again, add we will add Jimbo to the end so it will look like this:
<source lang="xml"> | info = This user is a [[]] fan. </source>
And that's it. After adding Jimbo, putting the code
<source lang="xml">
| [[Image:|60px]] | This user is a [[]] fan. |
</source>
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:
<source lang="xml">
How to Use
(... yet another huge list ...)| Code | Result | |||
|---|---|---|---|---|
| {{User:UBX/aircraft fan|B707|grey}} |
|
Usage | ||
| {{User:UBX/aircraft fan|B707|red}} |
|
Usage | ||
| {{User:UBX/aircraft fan|DHC}} |
|
Usage |
</source>
Now add Jimbo by placing another line next to the last, so it will look like this:
<source lang="xml">
How to Use
(... yet another huge list ...)| Code | Result | |||
|---|---|---|---|---|
| {{User:UBX/aircraft fan|B707|grey}} |
|
Usage | ||
| {{User:UBX/aircraft fan|B707|red}} |
|
Usage | ||
| {{User:UBX/aircraft fan|DHC}} |
|
Usage | ||
| {{User:UBX/aircraft fan|JMB}} |
|
Usage |
</source>
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.