Template:SourceCode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 5: | Line 5: | ||
<div class="mw-collapsible mw-collapsed"> | <div class="mw-collapsible mw-collapsed"> | ||
Click on "expand" to the right to view the MATLAB source code for this function. | Click on "expand" to the right to view the MATLAB source code for this function. | ||
<div class="mw-collapsible-content"><syntaxhighlight src="http://www.qetlab.com/source/{{{name| | <div class="mw-collapsible-content"><syntaxhighlight src="http://www.qetlab.com/source/{{#if: {{{helper|}}} | helpers/}}{{{name|}}}.m" line></syntaxhighlight></div> | ||
</div></includeonly> | </div></includeonly> | ||
Revision as of 13:40, 20 September 2014
This template includes the source code for a function on a wiki page. This template it intended to be included at the bottom of every function's documentation page. Parameters that can be passed to this function are:
- name: The name (case-sensitive) of the function.
- helper: Set to 1 if this is a helper function (omit otherwise).