Difference between revisions of "Module:Coxeter–Dynkin diagram/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Pppery
(Module renamed)
blackwiki>WOSlinker
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 CDD = require('Module:Coxeter–Dynkin diagram')._CDD
 
local CDD = require('Module:Coxeter–Dynkin diagram')._CDD
</source>
+
</syntaxhighlight>
  
 
You can then use it with the following syntax.
 
You can then use it with the following syntax.
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
CDD{"node", "3", "node"}
 
CDD{"node", "3", "node"}
</source>
+
</syntaxhighlight>
  
 
See the template documentation for possible inputs.
 
See the template documentation for possible inputs.

Revision as of 13:32, 7 July 2020

This module implements Template:Coxeter–Dynkin diagram. It is invoked as

  • {{#invoke:Coxeter–Dynkin diagram|CDD}}

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 CDD = require('Module:Coxeter–Dynkin diagram')._CDD

You can then use it with the following syntax.

CDD{"node", "3", "node"}

See the template documentation for possible inputs.