File:  [NetBSD Developer Wiki] / wikisrc / templates / port.mdwn
Revision 1.21: download - view: text, annotated - select for diffs
Wed Jul 25 05:54:25 2018 UTC (3 months, 3 weeks ago) by tpaul
Branches: MAIN
CVS tags: HEAD
Update templates/port.mdwn fixing an issue in the "Release Info" section.

Some of the "Release Info" links on the port pages had additional padding
between links. For example the amd64 page had no padding between links
and some of the evbarm links did contain padding.

This was due to templates/port.mdwn interpreting white space as a paragraph
when some variables were set, so the "Release Info" section was changed to
use HTML instead of Markdown to avoid white space issues.

ok'd <leot>

<TMPL_IF NAME="port">
[[!meta title="NetBSD/<TMPL_VAR port>"]]

# <TMPL_IF thumbnail><img src=<TMPL_VAR thumbnail> alt="<TMPL_VAR port> thumbnail image"/></TMPL_IF>

## About NetBSD/<TMPL_VAR port>
<TMPL_VAR about>

## Release Info
<ul>
  <TMPL_IF cur_rel>
    <TMPL_IF port_var1>
        <li>
          <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var1>/">
            NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> <TMPL_VAR cur_rel> via download
          </a>
        </li>
      <TMPL_IF port_var2>
        <li>
          <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var2>/">
            NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> <TMPL_VAR cur_rel> via download
          </a>
        </li>
      </TMPL_IF>
      <TMPL_IF port_var3>
        <li>
          <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var3>/">
            NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> <TMPL_VAR cur_rel> via download
          </a>
        </li>
      </TMPL_IF>
      <TMPL_IF port_var4>
        <li>
          <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var4>/">
            NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> <TMPL_VAR cur_rel> via download
          </a>
        </li>
      </TMPL_IF>
      <TMPL_IF port_var5>
        <li>
          <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var5>/">
            NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> <TMPL_VAR cur_rel> via download
          </a>
        </li>
      </TMPL_IF>
      <TMPL_IF port_var6>
        <li>
          <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var6>/">
            NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> <TMPL_VAR cur_rel> via download
          </a>
        </li>
      </TMPL_IF>
      <TMPL_IF port_var7>
        <li>
          <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>-<TMPL_VAR port_var7>/">
            NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> <TMPL_VAR cur_rel> via download
          </a>
        </li>
      </TMPL_IF>
    <TMPL_ELSE>
      <li>
        <a title="NetBSD/<TMPL_VAR port> download" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>/">
          NetBSD/<TMPL_VAR port> <TMPL_VAR cur_rel> via download
        </a>
      </li>
    </TMPL_IF>
  </TMPL_IF>
  <TMPL_UNLESS no_install_notes>
    <TMPL_IF cur_rel>
      <TMPL_IF port_var1>
        <TMPL_IF port_var_install_notes>
          <li>
            <a title="NetBSD/<TMPL_VAR port> INSTALL notes" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port_var_install_notes>/INSTALL.html">
              NetBSD/<TMPL_VAR port> <TMPL_VAR cur_rel> INSTALL notes
            </a>
          </li>
        </TMPL_IF>
        <TMPL_ELSE>
          <li>
            <a title="NetBSD/<TMPL_VAR port> INSTALL notes" href="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-<TMPL_VAR cur_rel>/<TMPL_VAR port>/INSTALL.html">
              NetBSD/<TMPL_VAR port> <TMPL_VAR cur_rel> INSTALL notes
            </a>
          </li>
        </TMPL_IF>
      </TMPL_IF>
  </TMPL_UNLESS>
  <TMPL_IF pkg_rel>
    <TMPL_IF port_var1>
      <li>
        <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var1>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var1> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    <TMPL_IF port_var2>
      <li>
        <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var2>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var2> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    </TMPL_IF>
    <TMPL_IF port_var3>
      <li>
        <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var3>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var3> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    </TMPL_IF>
    <TMPL_IF port_var4>
      <li>
        <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var4>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var4> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    </TMPL_IF>
    <TMPL_IF port_var5>
      <li>
        <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var5>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var5> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    </TMPL_IF>
    <TMPL_IF port_var6>
      <li>
        <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var6>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var6> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    </TMPL_IF>
    <TMPL_IF port_var7>
      <li>
        <a title="NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port_var7>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port>-<TMPL_VAR port_var7> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    </TMPL_IF>
    <TMPL_ELSE>
      <li>
        <a title="NetBSD/<TMPL_VAR port> pkgsrc binary packages" href="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/<TMPL_VAR port>/<TMPL_VAR pkg_rel>/">
          NetBSD/<TMPL_VAR port> <TMPL_VAR pkg_rel> pre-built binary packages from pkgsrc
        </a>
      </li>
    </TMPL_IF>
  </TMPL_IF>
  <TMPL_IF changes_cur>
    <li>
      <a title="NetBSD/<TMPL_VAR port> <TMPL_VAR changes_cur> changes" href="https://www.NetBSD.org/changes/changes-<TMPL_VAR changes_cur>.html#port-<TMPL_VAR port>">
        NetBSD/<TMPL_VAR port> <TMPL_VAR changes_cur> changes
      </a>
    </li>
  </TMPL_IF>
  <li>
    <a title="NetBSD/<TMPL_VAR port> <TMPL_VAR changes_future> changes" href="https://www.NetBSD.org/changes/changes-<TMPL_VAR changes_future>.html#port-<TMPL_VAR port>">
      NetBSD/<TMPL_VAR port> <TMPL_VAR changes_future> changes
    </a>
  </li>
</ul>

## Mailing List
<TMPL_IF port_alt>
The [NetBSD/<TMPL_VAR port_alt> mailing list](http://www.netbsd.org/mailinglists/#port-<TMPL_VAR port_alt> "<TMPL_VAR port_alt>mailing list"), covering NetBSD's port to <TMPL_VAR port_alt> machine:
[
<a href="http://www.NetBSD.org/cgi-bin/subscribe_list.pl?list=port-<TMPL_VAR port_alt>">subscribe</a>
|
<a href="http://mail-index.NetBSD.org/port-<TMPL_VAR port_alt>/">archive</a>
]

<TMPL_ELSE>
The [NetBSD/<TMPL_VAR port> mailing list](http://www.netbsd.org/mailinglists/#port-<TMPL_VAR port> "<TMPL_VAR port>mailing list"), covering NetBSD's port to <TMPL_VAR port> machine:
[
<a href="http://www.NetBSD.org/cgi-bin/subscribe_list.pl?list=port-<TMPL_VAR port>">subscribe</a>
|
<a href="http://mail-index.NetBSD.org/port-<TMPL_VAR port>/">archive</a>
]

</TMPL_IF>
<a href="mailto:port-<TMPL_VAR port>-maintainer@NetBSD.org">Mail the NetBSD/<TMPL_VAR port> port maintainer</a>

<TMPL_IF supported_hardware>
## Supported Hardware
<TMPL_VAR NAME="supported_hardware">
</TMPL_IF>

<TMPL_IF unsupported_hardware>
## Unsupported Hardware
<TMPL_VAR unsupported_hardware>
</TMPL_IF>

<TMPL_IF additional>
## Additional Info
<TMPL_VAR additional>
</TMPL_IF>

<TMPL_ELSE>
# Ports page template

The *port* template is used to make the ports pages very easy

It supports the following parameters:

- port (required)
- port_alt (optional)
- port_var[1-7] (optional)
- port_var_install_notes (optional)
- about (required)
- cur_rel (optional)
- future_rel (required)
- pkg_rel (optional)
- changes_cur (optional)
- changes_future (required)
- thumbnail (optional)
- supported_hardware (optional)
- unsupported_hardware (optional)
- no_install_notes (optional)
- additional (optional)

</TMPL_IF>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb