Difference between revisions of "Template:Fn"

From VideoLAN Wiki
Jump to navigation Jump to search
m (DoesItReallyMatter moved page Template:Function to Template:Fn: Less typing)
m (Whitespace)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
-->{{#switch:{{{1}}}{{{2|}}}<!--
 
-->{{#switch:{{{1}}}{{{2|}}}<!--
 
   -->|{{{1}}}        = '''<code>{{{1|function}}}</code>'''<!--
 
   -->|{{{1}}}        = '''<code>{{{1|function}}}</code>'''<!--
   -->|{{{1}}}{{{2}}}   <!--
+
   -->|{{{1}}}{{{2}}}<!--
 
   -->|#default      = ;<code>{{{1|function}}}</code>:{{{2|description}}}<!--
 
   -->|#default      = ;<code>{{{1|function}}}</code>:{{{2|description}}}<!--
 
  -->}}<noinclude>
 
  -->}}<noinclude>
Line 19: Line 19:
 
{{{{PAGENAME}}|frob(foo&, bar)|Frobnicate foo with bar method}}
 
{{{{PAGENAME}}|frob(foo&, bar)|Frobnicate foo with bar method}}
  
 +
[[Category:Hacker Guide|*]]
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 07:37, 17 April 2019

function

Usage

To simplify writing Hacker Guide pages:

{{Fn|name(args)}}
{{Fn|name(args)|description}}

Examples

{{Fn|frob()}}

frob()

{{Fn|frob(foo&, bar)}}

frob(foo&, bar)

{{Fn|frob(foo&, bar)|Frobnicate foo with bar method}}
frob(foo&, bar)
Frobnicate foo with bar method