This page documents some of the styling that has been added to WikiChip for various purposes:
Contents
Templates/Warning
- {{unknown features}} - Preliminary Data for a chip
- {{future information}} - Preliminary Data for an article
- {{leaked info}} - Chip articles that rely on leaked info/could be fake/wrong
- {{expand list}}
- {{expand section}}
- {{empty section}}
Inc/Dec
- - {{^|inc}}
- - {{^|dec}}
- - {{^}}
Multi-Columns
To break down a list, we have the wiki-ul-col##
class where ##
is the number of columns, for example:
<div class="wiki-ul-col3"> * AA * BB * CC * DD * EE * FF </div> |
|
We have a {{collist}} template which wraps this class for you.
Tables
Table Text alignment
In order to alight an entire column of a table, we have tl##
, tc##
, and tr##
classes for (left, center, and right respectively) where ##
is the column's number.
For example, the following table as the tl1 tc2 tr3 tl4
classes added to the <table>
tag:
A | B | C | D |
---|---|---|---|
AAA | BB | C | DD |
A | B | CCCC | DDDDD |
AA | BBBB | C | DDD |
AAAAAA | B | CCCCCC | DDDDDD |
AA | B | C | DD |
Yes/No/Blank
For Yes/No, use {{tchk}}, for blank use {{tblnk}}:
{| class="wikitable" ! Foo !! Bar !! Baz |- | A || {{tchk|yes}} || {{tchk|no}} |- | B || {{tchk|no}} || {{tchk|yes}} || {{tblnk}} || {{tblnk}} || {{tchk|yes}} |- | C || {{tchk|no|nah}} || {{tchk|yea|Yeh}} |} |
|
Comparison Table
Our comparison tables have undergone a good half-dozen iterations before getting to where it is today. There's no problem with the older iterations, but they are outdated and should eventually be replaced with the new style. Below is the general style:
<!-- NOTE: This table is generated automatically from the data in the actual articles. If a microprocessor is missing from the list, an appropriate article for it needs to be created and tagged accordingly. Missing a chip? please dump its name here: https://en.wikichip.org/wiki/WikiChip:wanted_chips --> {{comp table start}} <table class="comptable sortable tc4 tc5"> {{comp table header|main|5:List of Sandy Bridge-based Processors}} {{comp table header|main|5:Main processor}} {{comp table header|cols|Price|Launched|Cores|%Frequency}} {{#ask: [[Category:microprocessor models by intel]] [[microarchitecture::Skylake]] |?full page name |?model number |?release price |?first launched |?core count |?base frequency#GHz |format=template |template=proc table 3 |userparam=6 |mainlabel=- |limit=2 |searchlabel=- }} {{comp table count|ask=[[Category:microprocessor models by intel]] [[microarchitecture::Skylake]]}} </table> {{comp table end}}
Which will generate the following table:
Note that "5:Main processor" just means that the cell "Main processor" will span 5 columns. The "%" in "%Frequency" means the column should be treated as a number when sorting. This is important for things such as frequency/TDP/memory because otherwise the sorting feature will assume you're sorting text and will sort it alphanumerically instead (e.g. "1 GHz, 12 GHz, 2 GHz, 21 GHz" instead of "1 GHz, 2 GHz, 12 GHz, 21 GHz).