13,212
edits
m (→Basics: class="wikidata" → class="wikitable") |
(→Templates for comparison tables etc: New section) |
||
Line 119: | Line 119: | ||
|- | |- | ||
| Cell five || Cell six || Cell seven | | Cell five || Cell six || Cell seven | ||
|} | |||
== Templates for comparison tables etc == | |||
For templates with a lot of cells with similar text, for example tables with comparisons of features or compatibility there are three small helpful templates, {{tl|yes}}, {{tl|no}} and {{tl|n/a}}. They can have an optional text instead of the default one if needed. Below is what they look like in use: | |||
{| class="wikitable" | |||
! Template !! Default text !! Template !! With optional text | |||
|- | |||
| <code><nowiki>{{yes}}</nowiki></code> || {{yes}} || <code><nowiki>{{yes|Yep!}}</nowiki></code> || {{yes|Yep!}} | |||
|- | |||
| <code><nowiki>{{no}}</nowiki></code> || {{no}} || <code><nowiki>{{no|Nope!}}</nowiki></code> || {{no|Nope!}} | |||
|- | |||
| <code><nowiki>{{n/a}}</nowiki></code> || {{n/a}} || <code><nowiki>{{n/a|Huh?}}</nowiki></code> || {{n/a|Huh?}} | |||
|} | |} | ||