User:Icecream17/Variable

From Esolang
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

  1. if not name, but function or method, anonymous
  2. if declaration, blue
  3. if not,
    1. if function but not method, purple
    2. green


  1. if method, add method
  2. 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