வார்ப்புரு:Table cell templates/doc
&lt;noinclude&gt;{{Documentation subpage}}&lt;/noinclude&gt;
 {{#ifeq:{{FULLPAGENAME}}|Template:BLACK|{{For|the text color template|Template:Black}}}}
 The templates in this series are designed to be used in a [[விக்கிப்பீடியா:வரிசைப் பட்டியல்|table]] to make a cell with text in that cell, with an appropriately colored background.  They are commonly used in [[:Category:Comparisons|comparison tables]].
 
 For example, {{Tlc|yes}} makes a cell with a green background. The text in the cell is taken from the [[Help:Template#Parameters|first parameter]]; &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;yes|Sure}}&lt;/code&gt; would output &quot;Sure&quot; otherwise it defaults to &quot;Yes&quot;. Most templates allow authors to override the default text in this way, some require text put after the template call and some also need a vertical bar in between: &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;''table cell template''}} ''text''&lt;/code&gt; or &lt;code&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;''table cell template''}} | ''text''&lt;/code&gt;. This information, the colors and default texts are found in the table below.
 
 If you want to use other attributes for the table cells, ''e.g.'' &lt;code&gt;colspan&lt;/code&gt; or &lt;code&gt;rowspan&lt;/code&gt;, they need to be put before the template call and there must be no vertical bar &lt;code&gt;|&lt;/code&gt; in between them:
 
 {| class=wikitable align=right
 !{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
 |-
 |colspan=2 {{Yes-No}}
 |}
 &lt;pre&gt;...
 !{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
 |-
 |colspan=2 {{Yes-No}}
 ...
 &lt;/pre&gt;
 
 == Templates ==
 &lt;div style=&quot;overflow:auto;&quot;&gt;
 {| class=&quot;wikitable&quot; style=&quot;text-align: left; width: auto;&quot;
 |+ Table cell templates
 ! Class&lt;ref name=&quot;table-cell-templates-table-css&quot;&gt;The HTML class of table cell templates may be referenced in a [[m:help:User style|user stylesheet]] to change appearance.&lt;/ref&gt; !! Default syntax !! Preview (default) !! Customized syntax !! Preview (customized)
 |-
 |rowspan=2| &lt;code&gt;table-rh&lt;/code&gt; || {{tl|rh}} {{!}} Row header&lt;ref name=&quot;table-cell-templates-table-after+pipe&quot; /&gt; || {{rh}} | Row header || {{tlp|rh|2=align=right}} {{!}} Row header || {{rh|align=right}} | Row header
 |-
 | {{tl|rh2}} {{!}} Row header&lt;ref name=&quot;table-cell-templates-table-after+pipe&quot;&gt;Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.&lt;/ref&gt; || {{rh2}} {{!}} Row header || {{tlp|rh2|2=align=right}} | Row header || {{rh2|align=right}} | Row header
 |-
 | &lt;code&gt;table-yes&lt;/code&gt; || {{tl|yes}} || {{yes}} || {{tlp|yes|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} ||{{yes|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-maybe&lt;/code&gt; || {{tl|maybe}} || {{maybe}} || {{tlp|maybe|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} ||{{maybe|Customized [[Plain text|text]]}}
 |-
 |rowspan=5| &lt;code&gt;table-no&lt;/code&gt; || {{tl|no}} || {{no}} || {{tlp|no|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{no|Customized [[Plain text|text]]}}
 |-
 | {{tl|eliminated}} || {{eliminated}} || {{tlp|eliminated|Dropped out}} || {{eliminated|Dropped out}}
 |-
 | {{tlp|active fire|12%}} || {{active fire|12%}} || ||
 |-
 | {{tl|lost}} || {{lost}} || {{tlp|lost|Missing}} || {{lost|Missing}}
 |-
 | {{tl|safe}} || {{safe}} || {{tlp|safe|Protected}} || {{safe|Protected}}
 |-
 | &lt;code&gt;table-active&lt;/code&gt; || {{tl|active}} || {{active}} || {{tlp|active|Lively}} || {{active|Lively}}
 |-
 |rowspan=2| &lt;code&gt;table-siteactive&lt;/code&gt; || {{tl|site active}} || {{site active}} || {{tlp|site active|Up}} || {{site active|Up}}
 |-
 | {{tl|coming soon}} || {{coming soon}} || {{tlp|coming soon|Second half of the year}} || {{coming soon|Second half of the year}}
 |-
 | &lt;code&gt;table-siteinactive&lt;/code&gt; || {{tl|site inactive}} || {{site inactive}} || {{tlp|site inactive|Down}} || {{site inactive|Down}}
 |-
 |rowspan=8| &lt;code&gt;table-yes2&lt;/code&gt; || {{tl|good}} || {{good}} || {{tlp|good|A}} || {{good|A}}
 |-
 | {{tl|yes2}} || {{yes2}} || {{tlp|yes2|Text}} || {{yes2|Text}}
 |-
 | {{tl|ya}} || {{ya}} || {{tlp|ya|text{{=}}Ya}} || {{ya|text=Ya}}
 |-
 | {{tlp|ya|Ya}} || {{ya|Ya}} || {{tlp|ya|text|link{{=}}WP:ALT}} || {{ya|text|link=WP:ALT}}
 |-
 | {{tl|won}} || {{won}} || {{tlp|won|text{{=}}white|color{{=}}darkblue}} || {{won|text=white|color=darkblue}}
 |-
 | {{tlp|won|place{{=}}1}} || {{won|place=1}} || {{tlp|won|place{{=}}Gold}} || {{won|place=Gold}}
 |-
 | {{tlp|won|place{{=}}2}} || {{won|place=2}} || {{tlp|won|place{{=}}Silver}} || {{won|place=Silver}}
 |-
 | {{tlp|won|place{{=}}3}} || {{won|place=3}} || {{tlp|won|place{{=}}Bronze}} || {{won|place=Bronze}}
 |-
 |rowspan=7| &lt;code&gt;table-no2&lt;/code&gt; || {{tl|no2}} || {{no2}} || {{tlp|no2|Text}} || {{no2|Text}}
 |-
 | {{tl|na}} || {{na}} || {{tlp|na|text{{=}}Na}} || {{na|text=Na}}
 |-
 | {{tlp|na|Na}} || {{na|Na}} || {{tlp|na|text|link{{=}}WP:ALT}} || {{na|text|link=WP:ALT}}
 |-
 | {{tl|nom}} || {{nom}} || {{tlp|nom|5}} || {{nom|5}}
 |-
 | {{tl|sho}} || {{sho}} || {{tlp|sho|Proposed}} || {{sho|Proposed}}
 |-
 | {{tl|longlisted}} || {{longlisted}} || {{tlp|longlisted|Rejected}} || {{longlisted|Rejected}}
 |-
 | {{tl|TBA}} || {{TBA}} || {{tlp|TBA|To be announced}} || {{TBA|To be announced}}
 |-
 | rowspan=2 |&lt;code&gt;table-success&lt;/code&gt; || {{tl|success}} || {{success}} || {{tlp|success|Mission complete}} || {{success|Mission complete}}
 |-
 | {{tl|operational}} || {{operational}} || {{tlp|operational|Returning data}} || {{operational|Returning data}}
 |-
 | &lt;code&gt;table-failure&lt;/code&gt; || {{tl|failure}} || {{failure}} || {{tlp|failure|Wrong orbit}} || {{failure|Wrong orbit}}
 |-
 | rowspan=16| &lt;code&gt;table-partial&lt;/code&gt; || {{tl|partial}} || {{partial}} || {{tlp|partial|Almost done}} ||{{partial|Almost done}}
 |-
 | {{tl|Regional}} || {{Regional}} || {{tlp|Regional|Uyghur}} || {{Regional|Uyghur}}
 |-
 | {{tl|MaybeCheck}} || {{MaybeCheck}} || {{tlp|MaybeCheck|text{{=}}Possibly}} || {{MaybeCheck|text=Possibly}}
 |-
 | {{tlp|MaybeCheck|Possibly}} || {{MaybeCheck|Possibly}} || {{tlp|MaybeCheck|text|link{{=}}WP:ALT}} || {{MaybeCheck|text|link=WP:ALT}}
 |-
 | {{tl|partial success}} || {{partial success}} || {{tlp|partial success|&lt;nowiki&gt;Reached orbit and returned pictures&lt;/nowiki&gt;}} || {{partial success|Reached orbit and returned pictures}}
 |-
 | {{tl|partial failure}} || {{partial failure}} || {{tlp|partial failure|&lt;nowiki&gt;[[Cubesat]] not deployed&lt;/nowiki&gt;}} || {{partial failure|[[Cubesat]] not deployed}}
 |-
 | {{tl|okay}} || {{okay}} || {{tlp|okay|C}} || {{okay|C}}
 |-
 | {{tl|Yes-No}} || {{Yes-No}} || {{tlp|Yes-No|Yes with an if; no with a but}} || {{Yes-No|Yes with an if; no with a but}}
 |-
 | {{tl|some}} || {{some}} || {{tlp|some|Many}} || {{some|Many}}
 |-
 | {{tl|nonpartisan}} || {{nonpartisan}} || {{tlp|nonpartisan|Impartial}} || {{nonpartisan|Impartial}}
 |-
 | {{tl|pending}} || {{pending}} || {{tlp|pending|Awaiting}} || {{pending|Awaiting}}
 |-
 | {{tl|unofficial}} || {{unofficial}} || {{tlp|unofficial|&lt;nowiki&gt;''De facto''&lt;/nowiki&gt;}} || {{unofficial|''De facto''}}
 |-
 | {{tl|unofficial2}} || {{unofficial2}} || {{tlp|unofficial2|&lt;nowiki&gt;''De facto''&lt;/nowiki&gt;}} || {{unofficial2|''De facto''}}
 |-
 | {{tl|usually}} || {{usually}} || {{tlp|usually|Commonly}} || {{usually|Commonly}}
 |-
 | {{tl|rarely}} || {{rarely}} || {{tlp|rarely|Seldom}}|| {{rarely|Seldom}}
 |-
 | {{tl|sometimes}} || {{sometimes}} || {{tlp|sometimes|Occasionally}} || {{sometimes|Occasionally}}
 |-
 | &lt;code&gt;table-any&lt;/code&gt; || {{tl|any}} || {{any}} || {{tlp|any|Anyone}}|| {{any|Anyone}}
 |-
 |rowspan=6| &lt;code&gt;table-na&lt;/code&gt; || {{tl|n/a}} || {{n/a}} || {{tlp|n/a|Unavailable}}|| {{n/a|Unavailable}}
 |-
 | {{tl|varies}} || {{varies}} || {{tlp|varies|Differs}}|| {{varies|Differs}}
 |-
 | {{tl|sdash}} || {{sdash}} || {{tlp|sdash|&lt;nowiki&gt;[[File:Dash.svg|13px|link=|dash icon]]&lt;/nowiki&gt;}}|| {{sdash|[[File:Dash.svg|13px|link=|dash]]}}
 |-
 | {{tl|BLACK}} || {{BLACK}} || {{tlp|BLACK|Banned}} || {{BLACK|Banned}}
 |-
 | {{tl|non-album single}} || {{non-album single}} || {{tlp|non-album single|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{non-album single|Customized [[Plain text|text]]}}
 |-
 | {{tl|unreleased}} || {{unreleased}} || {{tlp|unreleased|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{unreleased|Customized [[Plain text|text]]}}
 |-
 |rowspan=2| &lt;code&gt;table-unknown&lt;/code&gt; || {{tl|unknown}} || {{Unknown}} || {{tlp|unknown|?}} || {{unknown|?}}
 |-
 | {{tl|dunno}} || {{Dunno}} || {{tlp|dunno|Not sure}} || {{dunno|Not sure}}
 |-
 | &lt;code&gt;table-automatic&lt;/code&gt; || {{tl|perhaps}} || {{perhaps}} || {{tlp|perhaps|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{perhaps|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-depends&lt;/code&gt; || {{tl|depends}} || {{depends}} || {{tlp|depends|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{depends|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-included&lt;/code&gt; || {{tl|included}} || {{included}} || {{tlp|included|Incorporated}} || {{included|Incorporated}}
 |-
 |rowspan=2| &lt;code&gt;table-dropped&lt;/code&gt; || {{tl|dropped}} || {{dropped}} || {{tlp|dropped|Discontinued}} || {{dropped|Discontinued}}
 |-
 | {{tl|terminated}} || {{terminated}} || {{tlp|terminated|Fired}} || {{terminated|Fired}}
 |-
 | &lt;code&gt;table-beta&lt;/code&gt; || {{tl|beta}} || {{beta}} || {{tlp|beta|Preview}} || {{beta|Preview}}
 |-
 | &lt;code&gt;table-experimental&lt;/code&gt; || {{tl|table-experimental}} || {{table-experimental}} || {{tlp|table-experimental|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{table-experimental|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-free&lt;/code&gt; || {{tl|free}} || {{free}} || {{tlp|free|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{free|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-proprietary&lt;/code&gt; || {{tl|proprietary}} || {{proprietary}} || {{tlp|proprietary|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{proprietary|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-nonfree&lt;/code&gt; || {{tl|nonfree}} || {{nonfree}} || {{tlp|nonfree|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{nonfree|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-needs&lt;/code&gt; || {{tl|needs}} || {{needs}} || {{tlp|needs|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{needs|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-nightly&lt;/code&gt; || {{tl|nightly}} || {{nightly}} || {{tlp|nightly|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{nightly|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-release-candidate&lt;/code&gt; || {{tl|release-candidate}} || {{release-candidate}} || {{tlp|release-candidate|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{release-candidate|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;table-draw&lt;/code&gt; || {{tl|draw}} || {{draw}} || {{tlp|draw|Text}} || {{draw|Text}}
 |-
 | &lt;code&gt;table-planned&lt;/code&gt; || {{tl|planned}} || {{planned}} || {{tlp|planned|July 2018}} || {{planned|July 2018}}
 |-
 | &lt;code&gt;table-scheduled&lt;/code&gt; || {{tl|scheduled}} || {{scheduled}} || {{tlp|scheduled|3 March 2017}} || {{scheduled|3 March 2017}}
 |-
 | &lt;code&gt;incorrect&lt;/code&gt; || {{tl|incorrect}} || {{incorrect}} || {{tlp|incorrect|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{incorrect|Customized [[Plain text|text]]}}
 |-
 | &lt;code&gt;noresult&lt;/code&gt; || {{tl|no result}} || {{no result}} || {{tlp|no result|N.R.}} || {{no result|N.R.}}
 |-
 |rowspan=8| ''no class'' || {{tl|CMain}} || {{CMain}} || {{tlp|CMain|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{CMain|Customized [[Plain text|text]]}}
 |-
 | {{tl|CAlso starring}} || {{CAlso starring}} || {{tlp|CAlso starring|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{CAlso starring|Customized [[Plain text|text]]}}
 |-
 | {{tl|CRecurring}} || {{CRecurring}} || {{tlp|CRecurring|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{CRecurring|Customized [[Plain text|text]]}}
 |-
 | {{tl|CGuest}} || {{CGuest}} || {{tlp|CGuest|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{CGuest|Customized [[Plain text|text]]}}
 |-
 | {{tl|CNone}} || {{CNone}} || {{tlp|CNone|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{CNone|Customized [[Plain text|text]]}}
 |-
 | {{tl|nocontest}} || {{nocontest}} || {{tlp|nocontest|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{nocontest}}Customized [[Plain text|text]]
 |-
 | {{tl|not yet}} || {{not yet}} || {{tlp|not yet|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{not yet|Customized [[Plain text|text]]}}
 |-
 | {{tl|optional}} || {{optional}} || {{tlp|optional|&lt;nowiki&gt;Customized [[Plain text|text]]&lt;/nowiki&gt;}} || {{optional|Customized [[Plain text|text]]}}
 |}&lt;/div&gt;
 
 == Code ==
 Common code to most if not all the templates in this series:
 :&lt;code&gt;{{Table cell templates|class=''automatic''|text=''text''|bg=#''abcdef''}}&lt;/code&gt;
 
 Code specific to this template:
 :&lt;code&gt;{{ {{BASEPAGENAME}} }}&lt;/code&gt;
 
 To make a new table cell template you can use:
 &lt;syntaxhighlight lang=text enclose=&quot;div&quot;&gt;{{subst:Table cell templates|text= default text |bg= background color |class= a class name without prefix |align= standard horizontal alignment}}&lt;/syntaxhighlight&gt;
 
 You should leave out the &lt;code&gt;align&lt;/code&gt; parameter and often the &lt;code&gt;class&lt;/code&gt; parameter is unnecessary, too.
 
 Add the new template to the table in the [[Template:Table cell templates/doc|common documentation]] afterwards. Please consider reusing one of the other templates and please choose the color sensibly.
 
 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 &lt;code&gt;Dropped&lt;/code&gt;, change that to &lt;code&gt;&lt;nowiki&gt;{{{1|Dropped}}}&lt;/nowiki&gt;&lt;/code&gt;.
 
 style=&quot;background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}&quot; class=&quot;automatic table-automatic&quot;| {{{1|text}}}
 
 == TemplateData ==
 {{TemplateDataHeader}}
 &lt;templatedata&gt;{
 &quot;description&quot;: &quot;One of several templates for styling individual table cells with standard contents and colors.&quot;,
 &quot;params&quot;: {
 &quot;1&quot;: {
   &quot;label&quot;: &quot;text&quot;,
   &quot;description&quot;: &quot;text to be displayed instead of the default, if this doesn't work put the text after the template, possibly with a vertical bar | in between&quot;,
   &quot;type&quot;: &quot;string/line&quot;,
   &quot;default&quot;: &quot;(template dependent)&quot;,
   &quot;required&quot;: false
 },
 &quot;align&quot;: {
   &quot;label&quot;: &quot;horizontal align&quot;,
   &quot;description&quot;: &quot;text alignment inside the cell, either 'left', 'right', 'center' or 'justified'&quot;,
   &quot;default&quot;: &quot;center&quot;,
   &quot;inherits&quot;: &quot;1&quot; 
 },
 &quot;style&quot;: {
   &quot;label&quot;: &quot;style&quot;,
   &quot;description&quot;: &quot;a semicolon separated list of additional CSS rules to be applied to the table cell&quot;,
   &quot;default&quot;: &quot;&quot;,
   &quot;inherits&quot;: &quot;1&quot; 
 },
 &quot;color&quot;: {
   &quot;label&quot;: &quot;background color&quot;,
   &quot;description&quot;: &quot;a valid CSS color value or name to override the standard the cell background, only available with some templates&quot;,
   &quot;inherits&quot;: &quot;1&quot; 
 }
 }}&lt;/templatedata&gt;
 
 == See also ==
 * {{tl|change}}: Calculates, displays and color-codes changes between two values
 * {{tl|BSD-lic}}: Specialized redirect for {{tlf|free}}
 * {{tl|GPL-lic}}: Specialized redirect for {{tlf|free}}
 * {{tl|LGPL-lic}}: Specialized redirect for {{tlf|free}}
 
 == குறிப்புகள் ==
 {{reflist}}
 
 &lt;includeonly&gt;{{#switch:{{SUBPAGENAME}}|doc|sandbox=|#default=
 &lt;!-- ADD CATEGORIES BELOW THIS LINE --&gt;
 [[பகுப்பு:அட்டவணைக் கட்ட வார்ப்புருக்கள்]]