Help:Extension:Linter/fostered/ja

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Help:Extension:Linter/fostered and the translation is 11% complete.

Other languages:
English • ‎español • ‎polski • ‎日本語

The fostered error is triggered when some content is in a table structure but not where it can be visible. Specifically, content in tables can only be present in table cells, table headings, and captions.

Content inserted elsewhere gets moved before the table (content adopted by a foster parent, hence "fostering"). See example below.

Image showing fosterable content inside table markup on the left and its rendering in a browser on the right

The example above shows screenshots from a page on the English Wikipedia. On the left that shows wikitext markup, you see the bold header inside the table after a table row (|-) but outside a table cell (|). On the right that shows the rendering in a browser, you see that the header actually shows up before the table rather than inside it. In this example, it is clear that the intent of the author is for the heading to be outside the table. So, the markup should be fixed to move the heading markup outside the table as well.

In other examples, where the missing table cell markup (or heading or caption) is missing, it should be fixed by adding | or ! or |+ markup before it as appropriate.

The HTML5 spec calls this fostered content because the header is moved outside the table and is "adopted" by a different HTML element (its "foster parent").

関連項目