Template:Funcdef: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Used for function definitions.
 
mNo edit summary
 
(4 intermediate revisions by one other user not shown)
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 the 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>


</noinclude><includeonly><div class="funcdef">{{{1}}}</div></includeonly>
becomes:
 
{{funcdef|void '''ThisIsAFunction'''(type {{param|parameter}});}}.
 
This is paragraph formatting, not inline formatting.
 
[[Category:Common Templates]]
</noinclude><includeonly><div class{{=}}"funcdef">
{{{1}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}</div></includeonly>

Latest revision as of 02:35, 28 November 2014

This template is used for styling a function definition. It's better than using the 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.