90,866
edits
(Created page with "<noinclude>{{Documentation subpage}}</noinclude> The templates in this series are designed to be used in a table to make a cell with text in that cell, with an ap…") |
No edit summary |
||
Line 29: | Line 29: | ||
To make a new table cell template you can use: | To make a new table cell template you can use: | ||
<source lang=text>{{ | <source lang=text>style="background: background color; color: black; vertical-align: middle; text-align: <nowiki>{{{align|</nowiki>standard horizontal alignment<nowiki>}}}</nowiki>; <nowiki>{{{style|}}}</nowiki>" class="a class name without prefix table-a class name without prefix"| <nowiki>{{{1|</nowiki>default text<nowiki>}}}</nowiki></source> | ||
You should leave out the <code>align</code> parameter and often the <code>class</code> parameter is unnecessary, too. | You should leave out the <code>align</code> parameter and often the <code>class</code> parameter is unnecessary, too. | ||
Line 36: | Line 36: | ||
If you find a table cell template that does not take a parameter and you want to be able to change the text in the cell, ''do not'' duplicate the template! Instead, edit the template and change the text to a default parameter substitution. For example, if a template's text is <code>Dropped</code>, change that to <code><nowiki>{{{1|Dropped}}}</nowiki></code>. | If you find a table cell template that does not take a parameter and you want to be able to change the text in the cell, ''do not'' duplicate the template! Instead, edit the template and change the text to a default parameter substitution. For example, if a template's text is <code>Dropped</code>, change that to <code><nowiki>{{{1|Dropped}}}</nowiki></code>. | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> |
edits