Template:Port
From FreeBSDwiki
(Difference between revisions)
| Line 1: | Line 1: | ||
| − | <span id=" | + | <span id="port" style="color:green">{{{1}}}</span><span id="space" style="color:lightgray">_</span><span id="lightbluetext" style="color:lightblue">{{#ifeq:{{{2|+}}}|{{{2|-}}}{{{2}}}|{{#ifexist:|||}} |
| + | |{{#ifexist:||}} | ||
| + | }} | ||
| + | </span><noinclude> | ||
'''Usage:''' | '''Usage:''' | ||
| Line 8: | Line 11: | ||
<nowiki>{{prt|ftp/curl|BSD}}</nowiki> produces {{prt|ftp/curl|BSD}}. | <nowiki>{{prt|ftp/curl|BSD}}</nowiki> produces {{prt|ftp/curl|BSD}}. | ||
| + | |||
| + | <nowiki>{{prt|ftp/curl|}}</nowiki> produces {{prt|ftp/curl|}}. | ||
| + | |||
| + | <nowiki>{{prt|ftp/curl}}</nowiki> produces {{prt|ftp/curl|}} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | <nowiki>{{#ifeq:{{{2|+}}}|{{{2|-}}} | ||
| + | |{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[w:{{{1}}}|{{{1}}}]]}} | ||
| + | |{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[w:{{{1}}}]]}} | ||
| + | }}<nowiki> | ||
</noinclude> | </noinclude> | ||
Revision as of 03:31, 30 October 2015
{{{1}}}_{{#ifeq:+|-{{{2}}}|{{#ifexist:|||}} |{{#ifexist:||}} }}
Usage:
Used to indicate a FreeBSD port.
Example:
{{prt|ftp/curl|BSD}} produces ftp/curl BSD.
{{prt|ftp/curl|}} produces ftp/curl .
{{prt|ftp/curl}} produces ftp/curl
{{#ifeq:{{{2|+}}}|{{{2|-}}}
|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[w:{{{1}}}|{{{1}}}]]}}
|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[w:{{{1}}}]]}}
}}<nowiki>
</noinclude>