Difference between revisions of "Template:Funcdef"

From OpenGL.org
Jump to: navigation, search
(Used for function definitions.)
 
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 19: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.