From 04ad44994e09018976fa7a3de744c22c900edc9f Mon Sep 17 00:00:00 2001 From: John Levermore Date: Thu, 28 Sep 2023 18:11:11 +0100 Subject: [PATCH] Comment "pagebanner" logic in "wtf-plugin-wikivoyage" to eliminate parsing issue --- plugins/wikis/wikivoyage/templates.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/wikis/wikivoyage/templates.js b/plugins/wikis/wikivoyage/templates.js index 65f0add2..a58c575c 100644 --- a/plugins/wikis/wikivoyage/templates.js +++ b/plugins/wikis/wikivoyage/templates.js @@ -27,7 +27,8 @@ const templates = { list.push(obj) return obj.name || '' //missing some labels }, - pagebanner: (tmpl, list, parser) => { + // Commenting "pagebanner" logic as its causing extra "undefined" text blocks to be added to the document (see spencermountain/wtf_wikipedia#557) + /*pagebanner: (tmpl, list, parser) => { let obj = parser(tmpl, [ 'image', 'caption', @@ -41,7 +42,7 @@ const templates = { 'TOC box', ]) list.push(obj) - }, + },*/ isPartOf: ['place'], mapframe: ['lat', 'lng'], // phone numbers