From WikiChip
Difference between revisions of "WikiChip:styling"
Line 8: | Line 8: | ||
* {{template|expand section}} | * {{template|expand section}} | ||
* {{template|empty section}} | * {{template|empty section}} | ||
+ | |||
+ | == Inc/Dec == | ||
+ | * {{^|inc}} - <nowiki>{{^|inc}}</nowiki> | ||
+ | * {{^|dec}} - <nowiki>{{^|dec}}</nowiki> | ||
+ | * {{^}} - <nowiki>{{^}}</nowiki> | ||
== Multi-Columns == | == Multi-Columns == |
Revision as of 14:01, 9 August 2017
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}} |} |
|