User:Icecream17/Variable
Jump to navigation
Jump to search
Note: This is the documentation, not part of what is actually displayed.
See https://en.wikipedia.org/wiki/Wikipedia:Templates
Template documentation
Use this template like so:
{{User:Icecream17/Variable|name=Example}}
This gets: Example
Params
name | Name of variable |
function | If true, variable is a function |
ismethod | If true, variable is a method (and a function) |
declaration | Whether the variable was just declared |
Examples
Currently
- if not name, but function or method, anonymous
- if declaration, blue
- if not,
- if function but not method, purple
- green
- if method, add method
- else if function, add function
{{User:Icecream17/Variable}} |
|
{{User:Icecream17/Variable|ismethod=true}} |
anonymous method |
{{User:Icecream17/Variable|function=true}} |
anonymous function |
{{User:Icecream17/Variable|function=true|ismethod=true}} |
anonymous method |
{{User:Icecream17/Variable|name=Example}} |
Example |
{{User:Icecream17/Variable|name=Example|declaration=true}} |
Example |
{{User:Icecream17/Variable|name=Example|ismethod=true}} |
Example method |
{{User:Icecream17/Variable|name=Example|ismethod=true|declaration=true}} |
Example method |
{{User:Icecream17/Variable|name=Example|function=true}} |
Example function |
{{User:Icecream17/Variable|name=Example|function=true|declaration=true}} |
Example function |
{{User:Icecream17/Variable|name=Example|function=true|ismethod=true}} |
Example method |
{{User:Icecream17/Variable|name=Example|function=true|ismethod=true|declaration=true}} |
Example method |