Skip to content

Commit

Permalink
Merge pull request #558 from zhibek/patch-1
Browse files Browse the repository at this point in the history
Comment "pagebanner" logic in "wtf-plugin-wikivoyage" to eliminate parsing issue
  • Loading branch information
spencermountain committed Sep 28, 2023
2 parents c2ea471 + 04ad449 commit 478fb72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/wikis/wikivoyage/templates.js
Expand Up @@ -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',
Expand All @@ -41,7 +42,7 @@ const templates = {
'TOC box',
])
list.push(obj)
},
},*/
isPartOf: ['place'],
mapframe: ['lat', 'lng'],
// phone numbers
Expand Down

0 comments on commit 478fb72

Please sign in to comment.