From 493541d0c4720fdd6f43cbfc214ad2e739ba3660 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Fri, 30 Jan 2026 00:09:25 +0100 Subject: [PATCH] feat: added train category expanders for cp --- content/operator/cp/index.de.md | 114 +++++++++++++++++++----------- content/operator/cp/index.en.md | 118 ++++++++++++++++++++------------ content/operator/cp/index.fr.md | 114 +++++++++++++++++++----------- 3 files changed, 224 insertions(+), 122 deletions(-) diff --git a/content/operator/cp/index.de.md b/content/operator/cp/index.de.md index 66ff44c3..fccf3f33 100644 --- a/content/operator/cp/index.de.md +++ b/content/operator/cp/index.de.md @@ -28,41 +28,70 @@ FIP Freifahrtscheine und FIP 50 Tickets sind auf Verbindungen der CP gültig. Be Reservierungen sind nur im Fernverkehr (`AP` und `IC`) verpflichtend. -{{% expander "Alfa Pendular (AP) ⚠️" traincategory "category" %}} -**Beschreibung:** \ +{{% train-category + id="alfa-pendular" + title="Alfa Pendular (AP)" + type="highspeed" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} + Schnelle Neigetechnik-Züge (Pendolino), die auf der Strecke zwischen Braga, Porto, Lissabon und Faro mit wenigen Halten verkehren. Die Züge bieten einen hohen Komfort, Wi-Fi, Steckdosen an jedem Platz sowie einen Cafeteria- und Barservice. FIP Freifahrtscheine (egal welcher Klasse) sind nur in der zweiten Klasse gültig. [^1] -**Reservierung möglich:** Ja \ -**Reservierungspflicht:** ⚠️ Ja \ -**Kosten für Reservierung:** 5€ -{{% /expander %}} - -{{% expander "Intercidades (IC) ⚠️" traincategory "category" %}} -**Beschreibung:** \ -Schnelle nationale Züge mit Reisezugwagen, welche auf den Hauptrelationen verkehren. Die Züge bieten Wi-Fi, Steckdosen an manchen Plätzen in der ersten Klasse sowie ein Bistroangebot. \ -**Reservierung möglich:** Ja \ -**Reservierungspflicht:** ⚠️ Ja \ -**Kosten für Reservierung:** 5€ -{{% /expander %}} - -{{% expander "Serviço InterRegional (IR)" traincategory "category" %}} -**Beschreibung:** \ -Regional-Züge mit längeren Streckenverläufen und wenigen Halten. \ -**Reservierung möglich:** nein \ -**Reservierungspflicht:** nein -{{% /expander %}} - -{{% expander "Serviço Regional (R)" traincategory "category" %}} -**Beschreibung:** \ -Regional-Züge mit vielen Halten. \ -**Reservierung möglich:** nein \ -**Reservierungspflicht:** nein -{{% /expander %}} - -{{% expander "Comboios Urbanos (U)" traincategory "category" %}} -**Beschreibung:** \ +**Kosten für Reservierung:** 5 € + +{{% /train-category %}} + +{{% train-category + id="intercidades" + title="Intercidades (IC)" + type="highspeed" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} + +Schnelle nationale Züge mit Reisezugwagen, welche auf den Hauptrelationen verkehren. Die Züge bieten Wi-Fi, Steckdosen an manchen Plätzen in der ersten Klasse sowie ein Bistroangebot. + +**Kosten für Reservierung:** 5 € + +{{% /train-category %}} + +{{% train-category + id="interregional" + title="Serviço InterRegional (IR)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + +Regional-Züge mit längeren Streckenverläufen und wenigen Halten. + +{{% /train-category %}} + +{{% train-category + id="regional" + title="Serviço Regional (R)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + +Regional-Züge mit vielen Halten. + +{{% /train-category %}} + +{{% train-category + id="urbanos" + title="Comboios Urbanos (U)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + Pendlerzüge mit allen Halten, vergleichbar mit einer S-Bahn, verkehren in den Stadt-Netzen von Lissabon, Porto und Coimbra. FIP Freifahrtscheine sind hier uneingeschränkt gültig. **Lissabon:** \ @@ -93,17 +122,22 @@ Das [Liniennetz](https://www.cp.pt/info/documents/d/cp/mapa-comboios-urbanos-por **Coimbra:** \ Das Liniennetz umfasst eine Linie zwischen Coimbra und Figueira da Foz. -**Reservierung möglich:** nein \ -**Reservierungspflicht:** nein -{{% /expander %}} +{{% /train-category %}} + +{{% train-category + id="celta" + title="Celta: Porto – Vigo" + type="regional" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} -{{% expander "Celta: Porto – Vigo ⚠️" traincategory "category" %}} -**Beschreibung:** \ Der Celta ist ein internationaler Kooperationszug zwischen der CP und der spanischen Renfe von Porto nach Vigo. FIP Freifahrtscheine werden nicht anerkannt. \ -**Reservierung möglich:** ja \ -**Reservierungspflicht:** ⚠️ ja \ -**FIP Globalpreis (Distanzunabhängig):** 4€ -{{% /expander %}} + +**FIP Globalpreis (Distanzunabhängig):** 4 € + +{{% /train-category %}} ## Klassenkategorien diff --git a/content/operator/cp/index.en.md b/content/operator/cp/index.en.md index 260fd13c..0dde1772 100644 --- a/content/operator/cp/index.en.md +++ b/content/operator/cp/index.en.md @@ -28,41 +28,70 @@ FIP Coupons and FIP 50 Tickets are valid on CP services. For cross-border journe Reservations are only mandatory on long-distance services (`AP` and `IC`). -{{% expander "Alfa Pendular (AP) ⚠️" traincategory "category" %}} -**Description:** \ +{{% train-category + id="alfa-pendular" + title="Alfa Pendular (AP)" + type="highspeed" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} + High-speed tilting trains (Pendolino) operating on the main axis between Braga, Porto, Lisbon and Faro with few stops. Trains offer a high level of comfort, Wi‑Fi, power sockets at every seat and a cafeteria/bar service. FIP Coupons (regardless of pass class) are only valid in second class. [^1] -**Reservation possible:** yes \ -**Reservation required:** ⚠️ yes \ -**Reservation cost:** €5 -{{% /expander %}} - -{{% expander "Intercidades (IC) ⚠️" traincategory "category" %}} -**Description:** \ -Fast national services formed by locomotive-hauled coaches serving main routes. They offer Wi‑Fi, power sockets in some first-class seats and a bistro service. \ -**Reservation possible:** yes \ -**Reservation required:** ⚠️ yes \ -**Reservation cost:** €5 -{{% /expander %}} - -{{% expander "Serviço InterRegional (IR)" traincategory "category" %}} -**Description:** \ -Regional services that cover longer distances with few stops. \ -**Reservation possible:** no \ -**Reservation required:** no -{{% /expander %}} - -{{% expander "Serviço Regional (R)" traincategory "category" %}} -**Description:** \ -Regional trains with many stops. \ -**Reservation possible:** no \ -**Reservation required:** no -{{% /expander %}} - -{{% expander "Comboios Urbanos (U)" traincategory "category" %}} -**Description:** \ +**Reservation cost:** € 5 + +{{% /train-category %}} + +{{% train-category + id="intercidades" + title="Intercidades (IC)" + type="highspeed" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} + +Fast national services formed by locomotive-hauled coaches serving main routes. They offer Wi‑Fi, power sockets in some first-class seats and a bistro service. + +**Reservation cost:** € 5 + +{{% /train-category %}} + +{{% train-category + id="interregional" + title="Serviço InterRegional (IR)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + +Regional services that cover longer distances with few stops. + +{{% /train-category %}} + +{{% train-category + id="regional" + title="Serviço Regional (R)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + +Regional trains with many stops. + +{{% /train-category %}} + +{{% train-category + id="urbanos" + title="Comboios Urbanos (U)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + Commuter trains serving the urban networks of Lisbon, Porto and Coimbra (similar to S‑trains). FIP Coupons are valid without restrictions. **Lisbon:** \ @@ -92,17 +121,22 @@ The [network](https://www.cp.pt/info/documents/d/cp/mapa-comboios-urbanos-porto) **Coimbra:** \ Single line between Coimbra and Figueira da Foz. -**Reservation possible:** no \ -**Reservation required:** no -{{% /expander %}} - -{{% expander "Celta: Porto – Vigo ⚠️" traincategory "category" %}} -**Description:** \ -The Celta is an international cooperation service between CP and Renfe from Porto to Vigo. FIP Coupons are not accepted. \ -**Reservation possible:** yes \ -**Reservation required:** ⚠️ yes \ -**FIP Global Fare (distance-independent):** €4 -{{% /expander %}} +{{% /train-category %}} + +{{% train-category + id="celta" + title="Celta: Porto – Vigo" + type="regional" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} + +The Celta is an international cooperation service between CP and Renfe from Porto to Vigo. FIP Coupons are not accepted. + +**FIP Global Fare (distance-independent):** € 4 + +{{% /train-category %}} ## Class Categories diff --git a/content/operator/cp/index.fr.md b/content/operator/cp/index.fr.md index 9d399f60..9a598c57 100644 --- a/content/operator/cp/index.fr.md +++ b/content/operator/cp/index.fr.md @@ -28,41 +28,70 @@ Les Coupons FIP et les Billets FIP 50 sont valables sur les services de la CP. P Les réservations ne sont obligatoires que sur les services longue distance (`AP` et `IC`). -{{% expander "Alfa Pendular (AP) ⚠️" traincategory "category" %}} -**Description :** \ +{{% train-category + id="alfa-pendular" + title="Alfa Pendular (AP)" + type="highspeed" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} + Trains rapides pendulaires (Pendolino) circulant sur l’axe principal Braga, Porto, Lisbonne et Faro avec peu d’arrêts. Les trains offrent un bon confort, Wi‑Fi, prises électriques à chaque siège et un service cafétéria/bar. Les Coupons FIP (quelle que soit la classe du titre) ne sont valables qu’en seconde classe. [^1] -**Réservation possible :** Oui \ -**Réservation obligatoire :** ⚠️ Oui \ -**Coût de la réservation :** 5€ -{{% /expander %}} - -{{% expander "Intercidades (IC) ⚠️" traincategory "category" %}} -**Description :** \ -Trains rapides nationaux composés de voitures tractées circulant sur les principales relations. Ils offrent Wi‑Fi, prises électriques à certains sièges de 1re classe et un service bistrot. \ -**Réservation possible :** Oui \ -**Réservation obligatoire :** ⚠️ Oui \ -**Coût de la réservation :** 5€ -{{% /expander %}} - -{{% expander "Serviço InterRegional (IR)" traincategory "category" %}} -**Description :** \ -Trains régionaux sur de plus longues distances avec peu d’arrêts. \ -**Réservation possible :** non \ -**Réservation obligatoire :** non -{{% /expander %}} - -{{% expander "Serviço Regional (R)" traincategory "category" %}} -**Description :** \ -Trains régionaux avec de nombreux arrêts. \ -**Réservation possible :** non \ -**Réservation obligatoire :** non -{{% /expander %}} - -{{% expander "Comboios Urbanos (U)" traincategory "category" %}} -**Description :** \ +**Coût de la réservation :** 5 € + +{{% /train-category %}} + +{{% train-category + id="intercidades" + title="Intercidades (IC)" + type="highspeed" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} + +Trains rapides nationaux composés de voitures tractées circulant sur les principales relations. Ils offrent Wi‑Fi, prises électriques à certains sièges de 1re classe et un service bistrot. + +**Coût de la réservation :** 5 € + +{{% /train-category %}} + +{{% train-category + id="interregional" + title="Serviço InterRegional (IR)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + +Trains régionaux sur de plus longues distances avec peu d’arrêts. + +{{% /train-category %}} + +{{% train-category + id="regional" + title="Serviço Regional (R)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + +Trains régionaux avec de nombreux arrêts. + +{{% /train-category %}} + +{{% train-category + id="urbanos" + title="Comboios Urbanos (U)" + type="regional" + fip_accepted=true + reservation_possible=false +%}} + Trains de banlieue desservant les réseaux urbains de Lisbonne, Porto et Coimbra (similaires aux S‑trains). Les Coupons FIP sont valables sans restriction. **Lisbonne :** \ @@ -92,17 +121,22 @@ Le [réseau](https://www.cp.pt/info/documents/d/cp/mapa-comboios-urbanos-porto) **Coimbra :** \ Ligne entre Coimbra et Figueira da Foz. -**Réservation possible :** non \ -**Réservation obligatoire :** non -{{% /expander %}} +{{% /train-category %}} + +{{% train-category + id="celta" + title="Celta: Porto – Vigo" + type="regional" + fip_accepted=true + reservation_possible=true + reservation_required=true +%}} -{{% expander "Celta : Porto – Vigo ⚠️" traincategory "category" %}} -**Description :** \ Le Celta est un train international en coopération entre la CP et Renfe entre Porto et Vigo. Les Coupons FIP ne sont pas reconnus. \ -**Réservation possible :** oui \ -**Réservation obligatoire :** ⚠️ oui \ -**Tarif Global FIP (indépendant de la distance) :** 4€ -{{% /expander %}} + +**Tarif Global FIP (indépendant de la distance) :** 4 € + +{{% /train-category %}} ## Catégories de classes