Template:Forge: Difference between revisions

From Octave
Jump to navigation Jump to search
(remove copy on top as example)
(accept second argument for URL text)
Line 1: Line 1:
<includeonly>[http://octave.sourceforge.net/{{{1}}}/index.html {{{1}}}]</includeonly><noinclude>{{TemplateDoc}}[[Category:Templates]]</noinclude>
<includeonly>[http://octave.sourceforge.net/{{{1}}}/index.html {{#if: {{{2}}} |{{{2}}}|{{{1}}}}}]</includeonly><noinclude>{{TemplateDoc}}[[Category:Templates]]</noinclude>

Revision as of 16:23, 14 June 2012

[edit]

Template-info.png Template Documentation

Creates links to octave-forge packages. The created link points to the package index page. This page will show the package download link and respective documentation.

Example:

These functions are part of the {{Forge|image}} package

Will produce:

"These functions are part of the {{{2}}} package"

An alternative text can be given for the link:

Example:

These functions are part of the {{Forge|ga|genetic optimization}} package

Will produce:

"These functions are part of the genetic optimization package"