Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Module:CategoryList
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Module
Discussion
More
More
Page actions
Read
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
--See Module:CategoryListOld for more complete, but failed attempt local p = {} function p.pagesInCategory (frame) local categories = frame.args local listStyleType = frame.args.mode if listStyleType == nil or listStyleType == '' then listStyleType = 'inline-bullets' end local columnCount = frame.args.columnCount or '' if columnCount then columnCount = 'columncount = ' .. columnCount end local categoryList = '' for k, category in pairs( frame.args ) do if string.match(k, '[0-9]') then categoryList = categoryList .. [[category = ]] .. category .. '\n ' end end local opts = [[ ]] .. categoryList .. [[ shownamespace = true mode = ]] .. listStyleType .. [[ ordermethod = sortkey order = ascending ]] .. columnCount .. [[ ]] return frame:extensionTag('DynamicPageList', opts) end function p.categoriesInCategory (frame) local categories = frame.args local listStyleType = frame.args.mode if listStyleType == nil or listStyleType == '' then listStyleType = 'inline-bullets' end local columnCount = frame.args.columnCount or '' if columnCount then columnCount = 'columncount = ' .. columnCount end local categoryList = '' for k, category in pairs( frame.args ) do if string.match(k, '[0-9]') then categoryList = categoryList .. [[category = ]] .. category .. '\n ' end end local opts = [[ ]] .. categoryList .. [[ namespace = Category shownamespace = false mode = ]] .. listStyleType .. [[ ordermethod = sortkey order = ascending ]] .. columnCount .. [[ ]] return frame:extensionTag('DynamicPageList', opts) end function p.main (frame) return p.pagesInCategory(frame) end return p
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:CategoryList/doc
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs