Skip to content

Truncation of Wikibooks data on Openings page #17957

@wilwend

Description

@wilwend

Hello, I would like to suggest changing this code:

'redirects&origin=*&action=query&prop=extracts&formatversion=2&format=json&exchars=1200&stable=1';

The exchars=1200 causes an awkward truncation (in the middle of sentences) of the introduction paragraph in longer Wikibooks entries being transcluded (the "..."), and does not prevent unnecessary later headers from being transcluded in shorter entries, like the "Theory table" (as the actual table does not show up unless you navigate to Wikibooks itself) and "References" section.

Image Image

As such, perhaps the truncation should be changed to look for the Theory table header itself (there are some entries without this, but they seem to all be short entries essentially consisting of only an intro, which works out with this proposed solution), or some other alternative besides character count? Even removing the truncation all together could work as well, as the textbox already starts collapsed for viewers.

Also, would it be possible to change the text of

"No description of the opening, yet. We're working on it!"
from "No description of the opening, yet. We're working on it!" to "No description of this opening yet." or "No description of this position yet."? The "We're working on it!" appears on every single possible page that could exist that doesn't already have a Wikibooks entry, even moves (e.g. blunders) that will never realistically have a page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions