Jump to content

Module:Dynkin/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Stannic (talk | contribs)
m template does not work for this
m change source to syntaxhighlight
Line 8: Line 8:
For using this from other Lua modules, first load the module.
For using this from other Lua modules, first load the module.


<source lang="lua">
<syntaxhighlight lang="lua">
local Dynkin = require('Module:Dynkin')._Dynkin
local Dynkin = require('Module:Dynkin')._Dynkin
</syntaxhighlight>
</source>


You can then use it with the following syntax.
You can then use it with the following syntax.


<source lang="lua">
<syntaxhighlight lang="lua">
Dynkin{"node", "3", "node"}
Dynkin{"node", "3", "node"}
</syntaxhighlight>
</source>


See the template documentation for possible inputs.
See the template documentation for possible inputs.

Revision as of 16:26, 7 July 2020

This module implements the Dynkin diagram template, Template:Dynkin. It is invoked as

  • {{#invoke:Dynkin|Dynkin}}

though the parameter is ignored; instead it uses the parameters passed to the template. See the template documentation for how that is used.

For using this from other Lua modules, first load the module.

local Dynkin = require('Module:Dynkin')._Dynkin

You can then use it with the following syntax.

Dynkin{"node", "3", "node"}

See the template documentation for possible inputs.