Template:Funcdef: Difference between revisions
Jump to navigation
Jump to search
Used for function definitions. |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>This template is used for styling a function definition. It's better than using pre-formatted tags with the space character. | <noinclude>This template is used for styling a function definition. It's better than using pre-formatted tags with the space character. | ||
<nowiki>{{funcdef|void '''ThisIsAFunction'''(type {{param|parameter}});}}</nowiki> becomes: {{funcdef|void '''ThisIsAFunction'''(type {{param|parameter}});}}. | <nowiki>{{funcdef|void '''ThisIsAFunction'''(type {{param|parameter}});}}</nowiki> | ||
becomes: | |||
{{funcdef|void '''ThisIsAFunction'''(type {{param|parameter}});}}. | |||
This is paragraph formatting, not inline formatting. | |||
</noinclude><includeonly><div class="funcdef">{{{1}}}</div></includeonly> | </noinclude><includeonly><div class="funcdef">{{{1}}}</div></includeonly> |
Revision as of 23:28, 6 January 2013
This template is used for styling a function definition. It's better than using pre-formatted tags with the space character.
{{funcdef|void '''ThisIsAFunction'''(type {{param|parameter}});}}
becomes:
void ThisIsAFunction(type parameter);
.
This is paragraph formatting, not inline formatting.