User talk:Jimyoda/Fancy charts and graphs and stuff/reply (2)
Those colorful tables use the STDT (Standard Design Design Template) template.
{| {{STDT| wikitable c03}}
table code
|}
It's open to use whatever color you think looks best, but I generally avoid colors used for other type of items. I found that the colors below aren't used by anything else. (These tables look horrible on gray background, but will be fine on white.)
Refer to Templates for color codes.
Example[edit]
Drug info | |
---|---|
Addictiveness | 6.5% |
Market value | $80.00 |
Hit points | 50 |
Work to make | 10 |
Code
{| {{STDT| c_19}}
|-
!colspan="2" scope="col" style="text-align: left" | Drug info
|-
|Addictiveness || 6.5%
|-
|Market value || $80.00
|-
|Hit points || 50
|-
|Work to make || 10
|}
I'll work on a new drug template (similar to ones like Template:Medicine or Template:Raw_food) and adding parameters for drugs into the 'infobox main' template. That way each drug's page can have it's own nice infobox. And the Drugs page can list all the drugs with very little code, like it's done on Materials.
Drugs Summary[edit]
You can add a summary table at the bottom of the page.
Name | Addictiveness (%) | Market value | Hit points | Work to make |
---|---|---|---|---|
Go-juice | 6.5% | $80.00 | 50 | 10 |
Luciferium | 100% | $100.00 | 50 | N/A |
Code
{| class="sortable c_18 text-center table"
! Name !! Addictiveness (%) !! Market value !! Hit points !! Work to make
|- style="center-text"
| style="text-align: left;" | Go-juice|| 6.5% || style="text-align: center;" | $80.00 || 50 || 10
|-
| style="text-align: left;" | Luciferium || 100% || $100.00 || 50 || N/A
|}