X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/ab66d7e50ea6cea8a72f20df5754980abf3c93bb..fadb26bc1507f7fc2caaa873ad32c12f75c378aa:/doc/todo/missingparents.pm.mdwn diff --git a/doc/todo/missingparents.pm.mdwn b/doc/todo/missingparents.pm.mdwn index bf5a78217..0cc7137ba 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; @@ -256,4 +256,6 @@ Index: IkiWiki.pm my %cleared; sub will_render ($$;$) { #{{{ my $page=shift; - \ No newline at end of file + + +[[!tag patch]]