Template:Code/fun/doc
< Template:Code | fun
Jump to navigation
Jump to search
Description[edit]
This template can be used as shorthand for a function signature as in-line code, colorized. It is currently very specialized for Docs pages, and could be generalized. suggestions are welcome.
All function signatures will have a public visibility modifier.
Usage[edit]
{{code/fun | modifiers | type | type link | function name | params }}
If type link is . then it will link to type link.
If type link is left empty, then it will not link.
Example Usage[edit]
E.g. Static modifier, no type link
{{code/fun|static|void||main|String[] args}}
public static
void
main(String[] args);
E.g. No modifier, links is the same as type name
{{code/fun||SomeType|.|getPawn|int id}}
public
SomeType
getPawn(int id);
E.g. Type is an Enum, so it links to the Enum page
{{code/fun||PsychicEntropySeverity|Modding_Tutorials/Docs/Enums#PsychicEntropySeverity|getPawn|int id}}
public overrides
PsychicEntropySeverity
Severity(int id);