From f40e1911feccf6f3ebc91f0a30a950d8ed40d6c4 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Fri, 30 Dec 2022 08:37:19 +0100 Subject: [PATCH] update-wiki-pages: process KeyPrefixDescription template --- script/misc/update-wiki-pages | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script/misc/update-wiki-pages b/script/misc/update-wiki-pages index 50f994c07..d40708c96 100755 --- a/script/misc/update-wiki-pages +++ b/script/misc/update-wiki-pages @@ -60,6 +60,12 @@ for my $lang ('', map { "${_}:" } qw[ Pt Fi De It HU Cz Fr RU Pl ]) { ok(1, " Got $cnt key pages"); $count{key} += $cnt; + # Key prefix pages + ok(1, " Getting key prefix pages"); + $cnt = stick_content_in_hash("key", "Template:${lang}KeyPrefixDescription", \%feature); + ok(1, " Got $cnt key prefix pages"); + $count{keyprefix} += $cnt; + # Value pages ok(1, " Getting value pages"); $cnt = stick_content_in_hash("tag", "Template:${lang}ValueDescription", \%feature); @@ -67,7 +73,7 @@ for my $lang ('', map { "${_}:" } qw[ Pt Fi De It HU Cz Fr RU Pl ]) { $count{value} += $cnt; } -ok(1, "Got a total of $count{$_} ${_}s") for qw[ key value ]; +ok(1, "Got a total of $count{$_} ${_}s") for qw[ key keyprefix value ]; # Dump to .yml file open my $out, ">", $out_file or die "Can't open file '$out_file' supplied on the command line"; -- 2.39.5