Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template talk:Error
(section)
Add languages
Page contents not supported in other languages.
Add topic
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
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!
== Category, anchor and merge == {{tl|FormattingError}} also adds pages with errors to a category, so it is easy to find pages that have formatting errors. It also adds an anchor to the page where the error occurs (#FormattingError). I'd like to put similar functionality for {{tl|Error}} and use {{tl|Error}} in {{tl|FormattingError}}, so the layout and such of both can be modified in one place. β [[User:SkyLined|<span style="font-family: monospace, monospace; color:#008000;">SkyLined</span>]] <small>([[User_talk:SkyLined|talk]])</small> 08:41, 13 November 2009 (UTC) : I wouldn't mind. I initially created this simply the way we output errors in a centralized place, in case the way the MediaWiki parser function extension ever changes how it evaluates errors. Categorizing them (probably overridable via a <code><nowiki>{{{categories}}}</nowiki></code> template) certainly makes sense, although I expect that there'll be lots of false positives at first with various uses on template doc pages.<br>What do you mean by modifying the layout though? Error tags should be styled in the skin css files, I'd think. [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 11:51, 13 November 2009 (UTC) :Re: ''false positives'': {{tl|FormattingError}} has an optional '''nocategory=true''' argument that can be used to prevent the category from being added. Any template that uses it should also implement this argument and pass it on, so that pages that create errors on purpose (such as doc pages) will not end up in a "pages with errors" category. :Re: ''modifying layout'': No matter how they are styled, they should be styled in the same way. Currently, if we should decide to make a change to the layout that requires a change to the HTML, we would have to modifyin both {{tl|Error}} and {{tl|FormattingError}}. If we make {{tl|FormattingError}} into a wrapper for {{tl|Error}}, we would only need to update one template. : β [[User:SkyLined|<span style="font-family: monospace, monospace; color:#008000;">SkyLined</span>]] <small>([[User_talk:SkyLined|talk]])</small> 16:08, 13 November 2009 (UTC)
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)