+ return IkiWiki::FailReason->new("$page does not link to $link$qualifier", $page => $IkiWiki::DEPEND_LINKS, "" => 1);
+}
+
+sub match_typedlink($$;@) {
+ my $page = shift;
+ my $args = shift;
+
+ if ($args =~ /^(\w+)\s+(.*)$/) {
+ return match_link($page, $2, @_, linktype => $1);
+ }
+
+ return IkiWiki::ErrorReason->new("typedlink expects e.g. 'tag *' but got: $args");