Template:Navbar-table

From HandWiki
Revision as of 16:17, 11 April 2020 by imported>Schekanov (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Optional heading [ VisualEditor ] [view · talk · edit]

Template documentation

Navigation bar for table templates, positioned above the table.

Usage:

  • {{navbar-table|{{subst:PAGENAME}}}}
  • {{navbar-table|{{subst:PAGENAME}}|heading}}

Optionally you can also use named parameters:

  • {{navbar-table|template={{subst:PAGENAME}}}}
  • {{navbar-table|template={{subst:PAGENAME}}|heading=heading}}

Note: Popular table cell templates (e.g. yes, no, tba, n/a) can cause issues when using the VisualEditor. The reason is that these templates contain a pipe character to separate formatting and text, but the VisualEditor isn't aware of this. As a result, table operations which change the table structure, such as merging/splitting cells or inserting/deleting/moving rows or columns, may not work properly.

Possible work-arounds for this issue:

  • Using plain text instead of a table cell template (e.g. TBA). This could also be done temporarily until visual editing is complete.
  • Adding subst: in front of the template name (e.g. {{subst:tba}}), so the table cell formatting is inserted into the source. The downside of this method is that future changes to the table cell templates won't be applied.