EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...
    • Render a single tradecraft / artifact card. Mirrors the structure used on political-intelligence.html so the visual vocabulary stays consistent (same .pi-card-grid, .pi-card, .pi-card__icon, .pi-card__body, .pi-card__title, .pi-card__desc, .pi-card__cta class hooks).

      The .pi-card__path filename row that the political-intelligence page emits is intentionally omitted here — inside an article body the curated title plus the curated description already convey the artifact's purpose, and the raw analysis/.../foo.md filename adds visual noise without providing reader-relevant context. Readers who need the path can hover the card link or click through.

      The CTA is kind-aware ("View methodology" for the Methodologies sub-section, "View artifact template" for the Artifact templates sub-section) — the older generic "View on GitHub" leaked workflow jargon into a reader-facing surface and provided no context about what the link targets.

      Parameters

      • link: ExtractedLink

        Extracted link with absolute href + repo-relative path

      • lang: LanguageCode

        Target language code for title/description lookup

      • ctaLabel: string

        Pre-resolved localised CTA text (kind-aware)

      Returns string

      HTML fragment for one <li class="pi-card">…</li> element