+<h1>[% g('Package: %s (%s)', pkg, versions.short) %]
+[% END %]
+[%- PROCESS marker text=archive title=mirrors.$archive.title url=mirrors.$archive.url IF archive && archive != main_archive %]
+[%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section && section != main_section %]
+[%- PROCESS marker text=g('essential') title=g('package manager will refuse to remove this package by default') url='http://www.debian.org/doc/debian-policy/ch-binary.html#s3.8' IF page.get_newest('essential') == 'yes' %]</h1>
+
+[% UNLESS is_virtual %]
+<div id="pmoreinfo">
+<h2>[% g('Links for %s', pkg) %]</h2>
+[% IF screenshots_url && screenshots_thumb_url && !is_source %]
+<a id="screenshot" href="[% screenshots_url _ pkg %]"><img src="[% screenshots_thumb_url _ pkg %]" alt="Screenshot" border="0"/></a>
+[% END %]
+<h3>[% g('%s Resources:', organisation) %]</h3>
+<ul>
+<li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg %]">[% g('Bug Reports') %]</a></li>
+
+[% IF src.pkg -%]
+<li><a href="[% pts_url _ src.pkg %]">[% g('Developer Information (PTS)') %]</a></li>
+[% ELSIF is_source %]
+<li><a href="[% pts_url _ pkg %]">[% g('Developer Information (PTS)') %]</a></li>
+[%- END %]
+
+[% IF files && (!archive or archive == main_archive or archive == 'security') %]
+<li><a href="[% changelogs_url _ files.changelog.path %]">[% g('%s Changelog', organisation) %]</a></li>
+<li><a href="[% changelogs_url _ files.copyright.path %]">[% g('Copyright File') %]</a></li>
+[% END %]
+
+[% IF vcs_link %]
+<li><a href="[% vcs_link %]" class="pvcslink">[% g('Debian Source Repository') %]</a>
+[%- FOREACH vcs IN known_vcs;
+ vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
+ vcs_info = page.get_newest("vcs-$vcs_id");
+ SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
+ IF vcs_info %]
+ (<a href="[% vcs_info %]" class="pvcslink">[% vcs_name %]</a>)
+[% END; END -%]
+</li>
+[% END -%]
+
+[% IF patch_tracking_url && src %]
+ [% FOREACH src.downloads %]
+ [% IF name.match('\.(debian|diff)\.(gz|bz2|lzma)$') %]
+ <li><a href="[% "$patch_tracking_url/$src.pkg/$src.version" %]">[% g("%s Patch Tracker", organisation) %]</a></li>
+ [% END -%]
+ [% END -%]
+[% ELSIF patch_tracking_url && is_source %]
+ [% FOREACH srcfiles %]
+ [% IF filename.match('\.(debian|diff)\.(gz|bz2|lzma)$') %]
+ <li><a href="[% "$patch_tracking_url/$pkg/$version" %]">[% g("%s Patch Tracker", organisation) %]</a></li>
+ [% END -%]
+ [% END -%]
+[% END -%]
+
+</ul>
+
+[% IF src %]
+ <p>[% g('Download Source Package <a href="%s">%s</a>:', src.url, src.pkg) %]
+ [% FOREACH src.downloads %]
+ [% '<ul>' IF loop.first %]
+ <li><a href="[% server _ path %]">[[% name %]]</a></li>
+ [% '</ul>' IF loop.last %]
+ [% END %]
+ [% IF src.downloads.size == 0 %]
+ [% g('Not found') %]
+ [% END %]
+[% END %]
+
+[% IF maintainers.size == 1 -%]
+ <h3>[% g('Maintainer:') %]</h3>
+[%- ELSE -%]
+ <h3>[% g('Maintainers:') %]</h3>
+[%- END %]
+[%- FOREACH maintainers;
+ mailarchiveurl = '';
+ IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
+ mailarchiveurl = 'http://lists.debian.org/' _ uri_escape(matches.0) _ '/';
+ ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$'));
+ mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ uri_escape(matches.0) _ '/';
+ ELSIF (matches = mail.match('^(.*)@lists\.ubuntu\.com$'));
+ mailarchiveurl = 'http://lists.ubuntu.com/archives/' _ uri_escape(matches.0) _ '/';
+ END -%]
+ [%- '<ul>' IF loop.first -%]
+ <li><a href="mailto:[% mail | html %]">[% name | html %]</a>
+ (<a href="[% ddpo_url %][% uri_escape(mail) %]" title="[% g("An overview over the maintainer's packages and uploads") %]">[% g('QA Page') %]</a>
+ [%- IF mailarchiveurl %], <a href="[% mailarchiveurl %]" title="[% g('Archive of the Maintainer Mailinglist') %]">[% g('Mail Archive') %]</a>[% END %])
+ </li>
+ [%- '</ul>' IF loop.last -%]
+[%- END -%]
+
+[% url = page.get_newest('url');
+ SET url = page.get_newest('homepage') IF page.get_newest('homepage');
+ IF url %]
+<h3>[% g('External Resources:') %]</h3>
+<ul>
+<li><a href="[% url | html %]">[% g('Homepage') %]</a> [[% extract_host(url) | html %]]</li>
+</ul>
+[% END %]
+
+[% FOREACH sim IN similar %]
+ [% IF loop.first %]
+ <h3>[% g('Similar packages:') %]</h3>
+ <ul>
+ [% END %]
+ <li><a href="/[% sim %]">[% sim %]</a></li>
+ [% '</ul>' IF loop.last %]
+[% END %]
+
+</div> <!-- end pmoreinfo -->