Jump to content

Help:Lint errors/deletable-table-tag/pl

From mediawiki.org
This page is a translated version of the page Help:Lint errors/deletable-table-tag and the translation is 35% complete.
Outdated translations are marked like this.

This linter category has been added to assist editors in fixing wikitext and templates to ensure that their pages render correctly with a HTML5-based tool like RemexHTML and Parsoid.

Przykład:

{| ← Tu zaczyna się tabela 1
| foo
|-
{| ← Tu zaczyna się tabela 2. Jeżeli następny wiersz miał należeć do tabeli 1, usuń ten kod.
|- ← Wiersz tabeli 2.
| bar
|} ← ten znacznik zamykający jest również niepotrzebny i powinien zostać usunięty
|}

In this example, the first table will be closed once the second table is opened, This may not be what editors intended. In most case, editors should fix the wikitext and remove Table 2. While the following row-tag need not be removed, we recommend removing it. Since the closing table tag is no longer needed, it should be removed as well.

Inne rozwiązania

Powodem, dla którego został wyprodukowany taki kod mogła być chęć zagnieżdżenia tabelki w tabelce. Jednak w tym przypadku zabrakło umieszczenia drugiej tabelki w znaczniku <td> pierwszej. W takim przypadku należy dodać
|
przed kodem otwierającym drugą tabelę.

Note that in some cases, the rendering may not necessarily be broken. In that case, it makes sense to explicitly close the first table.

So, the specific fix on a page is context-dependent.

Explanation

This linter category relates to a table being nested inside another table in a fosterable position (inside a ‎<tr> or |- tag, for example).

RemexHTML and Parsoid will preserve both table tags and will render two adjacent tables which might not be what the editor intended. In cases where the wikitext comes from a template, Linter will also tell you what template produced that output, but you will have to investigate the template source to identify the relevant piece of template code that produces that table tag and fix it. See example of a template fix.