Intention:
Copy a table within an article to use as a template for a similar table with different data
Steps to Reproduce:
- Paste the following table into a page using the wikitext editor
{| class="wikitable" |+ Variables |- !colspan=2|Type||Mechanical variable||Analogous electrical variable |- |rowspan=2|Power conjugate pair||Effort variable||Force||Voltage |- |Flow variable||Velocity||Current |- |rowspan=2|Hamiltonian variables||Effort Hamiltonian||Momentum||Flux linkage |- |Flow Hamiltonian||Displacement||Charge |}
- Save the page and open VE
- Copy and paste the table to a new location. It is best to include in the selection a small amount of text before and after the table to guarantee that the whole table is selected.
- Save the page
- Examining the copy in the wikitext editor
Actual Results:
The copy of the table looks like this:
{| class="wikitable" |+ <nowiki> </nowiki>Variables ! colspan="2" | Type ! Mechanical variable ! Analogous electrical variable |- | rowspan="2" |Power conjugate pair |Effort variable |Force |Voltage |- |Flow variable |Velocity |Current |- | rowspan="2" |Hamiltonian variables |Effort Hamiltonian |Momentum |Flux linkage |- |Flow Hamiltonian |Displacement |Charge |}
Note the refactoring of one table line per row to one table cell per row. Note also the totally spurious nowiki tags in the table caption line.
Expected Results:
I expect copy paste to create an exact clone of the thing being copied. No refactoring or parsing of the selected code should take place at all.
This would not be so big an issue if there was zero change to the rendered page, but this is not the case; note the taller height of the cells in the title row.
Reproducible: Always
Version: unspecified
Severity: normal