Templat:Table cell templates/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
(5 revisi perantara oleh 4 pengguna tidak ditampilkan) | |||
Baris 1:
<noinclude>{{Documentation subpage}}</noinclude>
The templates in this series are designed to be used in a [[
For example, <code>{{Tl|yes}}</code> makes a cell with a green background. The text in the cell is taken from the [[
If you want to use other attributes for the table cells, e.g. <code>colspan</code> or <code>rowspan</code>, they need to be put before the template call and there must be no vertical bar <code>|</code> in between them:
Baris 34:
|rowspan=5| <code>table-no</code> || {{Tl|no}} || {{no}} || {{Tlp|no|<nowiki>Customized [[Plain text|text]]</nowiki>}} || {{no|Customized [[Plain text|text]]}}
|-
| {{tl|na}} || {{
|-
| {{Tl|coming soon}} || {{coming soon}} || ||
Baris 147:
To make a new table cell template you can use:
<
You should leave out the <code>align</code> parameter and often the <code>class</code> parameter is unnecessary, too.
Add the new template to the table in the [[
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>.
Baris 166:
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[
<noinclude>
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</noinclude>
|