/upstream/templates/notfound.tmpl
Type: /type/template
body: value: $def with (path, create=None)

$var title: $_("%s is not found", path)

$if create is None:
    $ prefixes = ["/authors/", "/books/", "/works/", "/show-marc", "/account/"]
    $ create = not any(path.startswith(prefix) for prefix in prefixes)

<div id="contentHead">
    <h1>$_("404 - Page Not Found")</h1>
</div>

<div id="contentBody">
    <p>$_("%s does not exist", path)</p>
    $if create: 
        <p><a href="$:changequery(m='edit')">$_("Create it?")</a></p>

    <div>
    $if "/templates" in path or "/macros" in path:
        <h3>Looking for a template/macro?</h3>
        $:macros.PageList(path)
    </div>
</div>
m: edit