Jump to content

Template:Nrow/doc

From Meta, a Wikimedia project coordination wiki

This template gives the syntax for a table row containing parameter 1 if it is not empty, otherwise nothing. This allows optional rows in a table without causing empty rows causing empty space.

Usage

[edit]
  • "{{nrow|x}}" → "

|- |x" [1] (as the linked ExpandTemplate page shows, there is a newline at start so that the row header will be interpreted correctly, but not at the end)

  • "{{nrow|}}" → "" [2]
  • "{{nrow}}" → "

|- |{{{1}}}" [3]