Skip to content

Is it possible to use wikitextprocessor with Wikisource template? #412

@LeMoussel

Description

@LeMoussel

Wikisource has specific templates, for example {{T}}, {{c}}, ....
An example can be found on this page: Chapotot - L’Estomac et le Corset.djvu/3

{{T2|{{t|L’ESTOMAC et LE CORSET|140}}}}

Is it possible to process this Wikisource template with wikitextprocessor?

Is it necessary to generate a specific SQLite Database? If so, which dump should be used?

wtp = Wtp(
    db_path="fr_wikisource.db", lang_code="fr", project="wikisource"
)

# extract dump file then save pages to SQLite DB
process_dump(
    wtp,
   => Which dump should be used?,
    {0, 10, 110, 828},  # namespace id, can be found at the start of dump file
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions