User:StDoodle/FunctionPage sandbox: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>StDoodle mNo edit summary |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This is template for a function page (for just a function line, see "Template:Function"). | <noinclude>This is template for a function page (for just a function line, see "Template:Function"). | ||
<pre> | <pre> | ||
{{User:StDoodle/FunctionPage_sandbox | | {{User:StDoodle/FunctionPage_sandbox | | ||
Line 64: | Line 63: | ||
function5_parameter5={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | | function5_parameter5={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | | ||
function5_parameter5_desc= DESCRIPTION_OF_PARAM | | function5_parameter5_desc= DESCRIPTION_OF_PARAM | | ||
function_description=DESCRIPTION_OF_FUNCTION | | |||
code1={{User:StDoodle/Code_sandbox | | code1={{User:StDoodle/Code_sandbox | | ||
title=CODE EXAMPLE TITLE | | title=CODE EXAMPLE TITLE | | ||
Line 74: | Line 74: | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#customtitle:{{{page_name}}}()|{{{page_name}}}()}} | <includeonly> | ||
{{#if: {{{function1_return_type}}}|{{User:StDoodle/Function_sandbox|function_name={{{page_name}}}|returns={{{function1_return_type}}}|returns2={{{function1_returns_also}}}|parameter1={{{function1_parameter1|}}}|parameter2={{{function1_parameter2|}}}|parameter3={{{function1_parameter3|}}}|parameter4={{{function1_parameter4|}}}|parameter5={{{function1_parameter5|}}}}}}} | {| align="right" | ||
{{#if: {{{code1|}}}|{{{code1}}}}} | | __TOC__ | ||
{{#if: {{{code2|}}}|{{{code2}}}}} | |} | ||
{{#if: {{{code3|}}}|{{{code3}}}}} | {{#customtitle:{{{page_name}}}()|{{{page_name}}}()}}<h2>Function Syntax</h2>{{#if: {{{function1_return_type|}}}|<p>{{User:StDoodle/Function_sandbox|function_name={{{page_name}}}|returns={{{function1_return_type}}}|returns2={{{function1_returns_also|}}}|parameter1={{{function1_parameter1|}}}|parameter2={{{function1_parameter2|}}}|parameter3={{{function1_parameter3|}}}|parameter4={{{function1_parameter4|}}}|parameter5={{{function1_parameter5|}}}}}</p>}}{{#if: {{{function1_parameter1_desc|}}}|{{{function1_parameter1_desc}}}<br />}}{{#if: {{{function1_parameter2_desc|}}}|{{{function1_parameter2_desc}}}<br />}}{{#if: {{{function1_parameter3_desc|}}}|{{{function1_parameter3_desc}}}<br />}}{{#if: {{{function1_parameter4_desc|}}}|{{{function1_parameter4_desc}}}<br />}}{{#if: {{{function1_parameter5_desc|}}}|{{{function1_parameter5_desc}}}<br />}}{{#if: {{{function2_return_type|}}}|<p>{{User:StDoodle/Function_sandbox|function_name={{{page_name}}}|returns={{{function2_return_type}}}|returns2={{{function2_returns_also|}}}|parameter1={{{function2_parameter1|}}}|parameter2={{{function2_parameter2|}}}|parameter3={{{function2_parameter3|}}}|parameter4={{{function2_parameter4|}}}|parameter5={{{function2_parameter5|}}}}}</p>}}{{#if: {{{function2_parameter1_desc|}}}|{{{function2_parameter1_desc}}}<br />}}{{#if: {{{function2_parameter2_desc|}}}|{{{function2_parameter2_desc}}}<br />}}{{#if: {{{function2_parameter3_desc|}}}|{{{function2_parameter3_desc}}}<br />}}{{#if: {{{function2_parameter4_desc|}}}|{{{function2_parameter4_desc}}}<br />}}{{#if: {{{function2_parameter5_desc|}}}|{{{function2_parameter5_desc}}}<br />}}{{#if: {{{function3_return_type|}}}|<p>{{User:StDoodle/Function_sandbox|function_name={{{page_name}}}|returns={{{function3_return_type}}}|returns2={{{function3_returns_also|}}}|parameter1={{{function3_parameter1|}}}|parameter2={{{function3_parameter2|}}}|parameter3={{{function3_parameter3|}}}|parameter4={{{function3_parameter4|}}}|parameter5={{{function3_parameter5|}}}}}</p>}}{{#if: {{{function3_parameter1_desc|}}}|{{{function3_parameter1_desc}}}<br />}}{{#if: {{{function3_parameter2_desc|}}}|{{{function3_parameter2_desc}}}<br />}}{{#if: {{{function3_parameter3_desc|}}}|{{{function3_parameter3_desc}}}<br />}}{{#if: {{{function3_parameter4_desc|}}}|{{{function3_parameter4_desc}}}<br />}}{{#if: {{{function3_parameter5_desc|}}}|{{{function3_parameter5_desc}}}<br />}}{{#if: {{{function4_return_type|}}}|<p>{{User:StDoodle/Function_sandbox|function_name={{{page_name}}}|returns={{{function4_return_type}}}|returns2={{{function4_returns_also|}}}|parameter1={{{function4_parameter1|}}}|parameter2={{{function4_parameter2|}}}|parameter3={{{function4_parameter3|}}}|parameter4={{{function4_parameter4|}}}|parameter5={{{function4_parameter5|}}}}}</p>}}{{#if: {{{function4_parameter1_desc|}}}|{{{function4_parameter1_desc}}}<br />}}{{#if: {{{function4_parameter2_desc|}}}|{{{function4_parameter2_desc}}}<br />}}{{#if: {{{function4_parameter3_desc|}}}|{{{function4_parameter3_desc}}}<br />}}{{#if: {{{function4_parameter4_desc|}}}|{{{function4_parameter4_desc}}}<br />}}{{#if: {{{function4_parameter5_desc|}}}|{{{function4_parameter5_desc}}}<br />}}{{#if: {{{function5_return_type|}}}|<p>{{User:StDoodle/Function_sandbox|function_name={{{page_name}}}|returns={{{function5_return_type}}}|returns2={{{function5_returns_also|}}}|parameter1={{{function5_parameter1|}}}|parameter2={{{function5_parameter2|}}}|parameter3={{{function5_parameter3|}}}|parameter4={{{function5_parameter4|}}}|parameter5={{{function5_parameter5|}}}}}</p>}}{{#if: {{{function5_parameter1_desc|}}}|{{{function5_parameter1_desc}}}<br />}}{{#if: {{{function5_parameter2_desc|}}}|{{{function5_parameter2_desc}}}<br />}}{{#if: {{{function5_parameter3_desc|}}}|{{{function5_parameter3_desc}}}<br />}}{{#if: {{{function5_parameter4_desc|}}}|{{{function5_parameter4_desc}}}<br />}}{{#if: {{{function5_parameter5_desc|}}}|{{{function5_parameter5_desc}}}<br />}} | ||
{{#if: {{{code5|}}}|{{{code4}}}}} | {{#if: {{{function_description|}}}|<p>{{{function_description}}}</p>}} | ||
{{#if: {{{code5|}}}|{{{code5}}}}} | {{#if: {{{code1|}}}|{{{code1}}}}}{{#if: {{{code2|}}}|{{{code2}}}}}{{#if: {{{code3|}}}|{{{code3}}}}}{{#if: {{{code5|}}}|{{{code4}}}}}{{#if: {{{code5|}}}|{{{code5}}}}} | ||
{{#if: {{{ | {{#if: {{{cli_equiv|}}}|<h2>CLI Equivalent</h2><p>{{{cli_equiv}}}</p>}} | ||
{{#if: {{{see_also|}}}|{{{see_also|}}}}} | |||
{{#if: {{{more_info|}}}|<h2>More Information</h2><p>{{{more_info}}}</p>}} | |||
{{#if: {{{special|}}}|<h2>Special</h2><p> </p><p>{{{special}}}</p>}} | |||
[[Category:Test Functions]] | [[Category:Test Functions]] | ||
</includeonly> | </includeonly> |
Latest revision as of 11:47, 25 February 2010
This is template for a function page (for just a function line, see "Template:Function").
{{User:StDoodle/FunctionPage_sandbox | page_name=test_function | function1_return_type=DATATYPE | function1_returns_also=SECONDARY_DATAYPE_OR_DELETE | function1_parameter1={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function1_parameter1_desc= DESCRIPTION_OF_PARAM | function1_parameter2={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function1_parameter2_desc= DESCRIPTION_OF_PARAM | function1_parameter3={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function1_parameter3_desc= DESCRIPTION_OF_PARAM | function1_parameter4={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function1_parameter4_desc= DESCRIPTION_OF_PARAM | function1_parameter5={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function1_parameter5_desc= DESCRIPTION_OF_PARAM | function2_return_type=DATATYPE | function2_returns_also=SECONDARY_DATAYPE_OR_DELETE | function2_parameter1={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function2_parameter1_desc= DESCRIPTION_OF_PARAM | function2_parameter2={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function2_parameter2_desc= DESCRIPTION_OF_PARAM | function2_parameter3={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function2_parameter3_desc= DESCRIPTION_OF_PARAM | function2_parameter4={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function2_parameter4_desc= DESCRIPTION_OF_PARAM | function2_parameter5={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function2_parameter5_desc= DESCRIPTION_OF_PARAM | function3_return_type=DATATYPE | function3_returns_also=SECONDARY_DATAYPE_OR_DELETE | function3_parameter1={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function3_parameter1_desc= DESCRIPTION_OF_PARAM | function3_parameter2={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function3_parameter2_desc= DESCRIPTION_OF_PARAM | function3_parameter3={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function3_parameter3_desc= DESCRIPTION_OF_PARAM | function3_parameter4={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function3_parameter4_desc= DESCRIPTION_OF_PARAM | function3_parameter5={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function3_parameter5_desc= DESCRIPTION_OF_PARAM | function4_return_type=DATATYPE | function4_returns_also=SECONDARY_DATAYPE_OR_DELETE | function4_parameter1={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function4_parameter1_desc= DESCRIPTION_OF_PARAM | function4_parameter2={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function4_parameter2_desc= DESCRIPTION_OF_PARAM | function4_parameter3={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function4_parameter3_desc= DESCRIPTION_OF_PARAM | function4_parameter4={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function4_parameter4_desc= DESCRIPTION_OF_PARAM | function4_parameter5={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function4_parameter5_desc= DESCRIPTION_OF_PARAM | function5_return_type=DATATYPE | function5_returns_also=SECONDARY_DATAYPE_OR_DELETE | function5_parameter1={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function5_parameter1_desc= DESCRIPTION_OF_PARAM | function5_parameter2={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function5_parameter2_desc= DESCRIPTION_OF_PARAM | function5_parameter3={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function5_parameter3_desc= DESCRIPTION_OF_PARAM | function5_parameter4={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function5_parameter4_desc= DESCRIPTION_OF_PARAM | function5_parameter5={{User:StDoodle/Param_sandbox|TYPE|SHORTDESC}} | function5_parameter5_desc= DESCRIPTION_OF_PARAM | function_description=DESCRIPTION_OF_FUNCTION | code1={{User:StDoodle/Code_sandbox | title=CODE EXAMPLE TITLE | description=DESCRIPTION OF CODE | code= <syntaxhighlight lang="c"> CODE GOES HERE </syntaxhighlight>}} }}