Difference between revisions of "Template:Fn"
Jump to navigation
Jump to search
m (+Category:Hacker Guide sortkey *) |
m (Whitespace) |
||
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> |
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