Template:Td: Difference between revisions

From SprezzOSWiki
No edit summary
No edit summary
Line 18: Line 18:
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]][[]]
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]][[]]


[[as:Template:Td]]
[[et:Mall:Td]]
[[ja:Template:Td]]
[[sl:Predloga:Td]]
</includeonly>
</includeonly>

Revision as of 11:46, 8 February 2013

{{#ifeq: td | doc

 | 

{{

   #ifeq: show | show
   | {{
 {{#switch:
 {{#if: 
   | 
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox

}} | type = notice | image = | imageright = | class = | style = | textstyle = | text = This is a documentation subpage for Template:Td.
It contains usage information, categories, interlanguage links and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template |template page|article}}}}}}}}. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

   }}{{
   #if: 
   | 
   | {{#ifexist:Template:Td|[[Category:{{
     #switch: Template
     | Template  = Template
     | User      = User
     | #default  = Wikipedia
   }} documentation pages]]|}}
 }}

| }}

This is the {{td}} template.

It is used to insert an empty, 1px wide, table cell into an HTML table or wikitable. It can be used whenever an empty cell is required to balance a table, for instance when hardcoding mbox templates.

This template takes no parameters.

Technical details

Most browsers are not so picky about balancing the table. However some are. For instance in Safari you can get partly missing left or right border of the table if some table rows do not contain the right number of table cells.

See also