Difference between revisions of "Template:Ipynb"

From ICPWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexist: Media:{{{1}}}|{{SERVER}}/~icp/mimetype-icons/ipynb.png[http://nbviewer.ipython.org/url/{{#replace:{{filepath:{{{1}}}}}|http://|}} {{{2|{{{1}}}}}}] ({{#mediasize:{{{1}}}}})[[Image:Info_circle.png|link=File:{{{1}}}]][http://nbviewer.ipython.org/url/{{#replace:{{filepath:{{{1}}}}}|http://|}} (view)]|[[Media:{{{1}}}|{{{2|{{{1}}}}}}]] (<span class="error">file does not exist!</span>)}}</includeonly><noinclude>
+
<includeonly>{{Download|{{{1}}}|{{{2|}}}|ipynb}} [http://nbviewer.ipython.org/url/{{#replace:{{filepath:{{{1}}}}}|http://|}} (nbviewer)]</includeonly><noinclude>
 
This template can be used to include links to [http://ipython.org IPython] [http://ipython.org/notebook.html notebook] files. It will automatically create a link to the ipython notebook viewer.
 
This template can be used to include links to [http://ipython.org IPython] [http://ipython.org/notebook.html notebook] files. It will automatically create a link to the ipython notebook viewer.
  

Latest revision as of 12:58, 9 April 2014

This template can be used to include links to IPython notebook files. It will automatically create a link to the ipython notebook viewer.

Usage

{{IPython|notebook|linktext}}

filename
The name of the notebook file.
linktext
The link text of the link to the notebook viewer.

Examples