Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template talk:AllPagesHeaderTemplate
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
New topic
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!
{{interface explanation|This template is used to provide banners at the top of selected pages, usually based on the page's category.}} == Case sensitivity and templates -- ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 21:06, October 27, 2019 (EDT) == [[User:Pyrrhus]] It's almost always best to just a template rather than direct to the module - the string templates also include things like error changing and make it a lot easier. There are [[:Category:Lua String-based templates]] for nearly all the string and string2 module functions, and templates like [[Template:Lowercase]] and other [[:Category:String manipulation templates]] that would make the task a whole lot easier. Any missing documentation for templates should be on Wikipedia, MediaWiki or WikiMedia's Commons - depending on where the template came from ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 21:06, October 27, 2019 (EDT) :Thanks [[User:Notjusttired]]! Those are great templates, I've been looking through them. :[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 00:02, October 28, 2019 (EDT) ::I created a documentation page, to help test it, but for some reason it causes a template loop when I call the template from it, so I took that bit out. You might want to move your description there. ::I think it's worth moving the #ifeq to a #switch statement since there will never be a time when both categories run. [[Template:Cquote]] has an example of a switch used to change font-size but it could be used for the whole statement, or just for background colors and category name. Setting class names for the colors makes it much easier of course for the different skins. You could make things much simpler by creating another template that takes 1 parameter - category name - which contains the formatting, and has the text. I've done this on cleanup templates to make them more manageable, eg [[Template:Cleanup/Too long]] calls [[Template:Cleanup]] ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 10:18, October 28, 2019 (EDT) :::By the way [[User:Notjusttired]], I could not find a safe and effective way to set up this template. The string functions overloaded the parser on long pages. We won't be able to use this template until Extension:PageInCat is installed. Old banners have been reinstated for the time being. :::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 22:19, October 28, 2019 (EDT)
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)
Templates used on this page:
Template:Interface explanation
(
edit
)
Template:Tmbox
(
edit
)
Template:Tmbox/core
(
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