ފަންވަތް:Table cell templates/doc: Difference between revisions
Content deleted Content added
Created page with "<noinclude>{{Documentation subpage}}</noinclude> {{#ifeq:{{FULLPAGENAME}}|Template:BLACK|{{For|the text color template|Template:Black}}}} The templates in this series are desi..." |
އެންމެ ފަހުން ގެނެވުނު ބަދަލު 14:17, 19 އެޕްރީލް 2020 އުނިއިތުރު ގެންނަވާ ކުރީގެ ނުސްހާއަށް ބަދަލުކުރައްވާ Xqbot (ޚިޔާލު ސަފްޙާ | ޙިއްޞާ) m Bot: Replace deprecated <source> tag and "enclose" parameter; cosmetic changes |
||
ފޮޅުވަތް 1:
<noinclude>{{Documentation subpage}}</noinclude>
{{#ifeq:{{FULLPAGENAME}}|Template:BLACK|{{For|the text color template|Template:Black}}}}
The templates in this series are designed to be used in a [[
For example, {{Tlc|yes}} 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:
ފޮޅުވަތް 146:
To make a new table cell template you can use:
<syntaxhighlight lang
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>.
ފޮޅުވަތް 197:
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[
</includeonly>
|