Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 

















Module:CoxeterDynkin diagram









Català
Čeština
Cymraeg
فارسی
Galego


Bahasa Indonesia
Lietuvių
Magyar


Нохчийн

Română
Русский
Scots

Српски / srpski

Українська
Tiếng Vit


 

Edit links
 









Module
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected module

From Wikipedia, the free encyclopedia
 


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

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.

-- module to turn a parameter list into a list of [[Coxeter–Dynkin diagram]] images.
-- See the template documentation or any example for how it is used and works.
local p = {}

function p.CDD(frame)
 -- For calling from #invoke.
 local pframe = frame:getParent()
 local args = pframe.args
 return p._CDD(args)
end
 
function p._CDD(args)
 -- For calling from other Lua modules.
 local body ='<span style="display:inline-block;">'         -- create and start the output string
 for v, x in ipairs(args) do                                -- process params, ignoring any names
  if (x ~= '') then     -- check for null/empty names
          body = body .. "[[File:CDel_" .. x .. ".png|link=]]"   -- write file for this parameter
  end
 end
 body = body .. "</span>"                                   -- finish output string
 return body                                                -- return result
end

return p

Retrieved from "https://en.wikipedia.org/w/index.php?title=Module:Coxeter–Dynkin_diagram&oldid=885290479"

Category: 
Modules for general use
Hidden category: 
Wikipedia semi-protected modules
 



This page was last edited on 27 February 2019, at 03:26 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki