X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9c02d61d9bbc41705a5e32543b51261fad891095..dd87d82fbe2bf09abe634caef044474d5b24502e:/doc/todo/missingparents.pm.mdwn diff --git a/doc/todo/missingparents.pm.mdwn b/doc/todo/missingparents.pm.mdwn index a85630ea3..5d8b9c422 100644 --- a/doc/todo/missingparents.pm.mdwn +++ b/doc/todo/missingparents.pm.mdwn @@ -4,9 +4,9 @@ has a child). Basically, you give it a page called missingparents.mdwn, something like this:
-[[missingparents pages="posts/* and !posts/*/*" generate="""[[template id=year text="$page"]]"""]]
-[[missingparents pages="posts/*/* and !posts/*/*/*" generate="""[[template id=month text="$page"]]"""]]
-[[missingparents pages="posts/*/*/* and !posts/*/*/*/*" generate="""[[template id=day text="$page"]]"""]]
+[[!missingparents pages="posts/* and !posts/*/*" generate="""[[template id=year text="$page"]]"""]]
+[[!missingparents pages="posts/*/* and !posts/*/*/*" generate="""[[template id=month text="$page"]]"""]]
+[[!missingparents pages="posts/*/*/* and !posts/*/*/*/*" generate="""[[template id=day text="$page"]]"""]]
 
And it scans the whole wiki for pages that match the pagespecs but are missing @@ -105,7 +105,7 @@ Index: IkiWiki/Plugin/missingparents.pm + my %params=@_; + + if (! defined $params{pages} || ! defined $params{generate}) { -+ return "[[missingparents ".gettext("missing pages or generate parameter")."]]"; ++ return "[[!missingparents ".gettext("missing pages or generate parameter")."]]"; + } + + push @pagespecs, \%params; @@ -258,4 +258,4 @@ Index: IkiWiki.pm my $page=shift; -[[tag patch]] +[[!tag patch]]