Template talk:Note/Archive

Fresh Mediawiki installs
This template seems to be problematic for fresh Mediawiki installs. I imported User Help into my own wiki and this template doesn't seem to work correctly. I've tried to modify it but I lack the proper MW coding skills to make it work. Is there any way this template can be simplified to work with a fresh install? --64.107.156.234 17:04, 21 May 2008 (UTC)


 * You're probably missing out the ParserFunctions extension. -- Sayuri 17:25, 21 May 2008 (UTC)


 * I had the same problem (with v1.12 after adding the Note template), it was showing something like {{#IF {{... the code itself and munging pages that used the note template rather than working properly. Thanks, Sayuri! AndrewQuee 02:36, 7 August 2008 (UTC)


 * It's partially working for me. Have installed ParseFunctions but now the {{Note|this is the second method}} does not work as it is somehow missing the 2nd part of the end table.  the output now looks like

 Note:  This is the 2nd method
 * The 1st method works ok though. Ubuntu 8.04.1, Mediawiki 1.11.2, ParserFunctions (version 1.1.1) Roddersg 08:25, 11 December 2008 (UTC)


 * An update to the above. I have upgraded to MW 1.13.2 and performed a full upgrade and it now works!!

Roddersg 08:25, 11 December 2008 (UTC)
 * {{tip}}Remember to edit MediaWiki:Common.css if necessary.

Doubled in text browsers
Looks terrible: $ w3m -dump Template:Note |grep Note\ Note Note Note: Note Note: Here is my note. Note Note: Here is a long note, which is sufficiently wordy to run onto a Jidanni 17:22, 1 December 2008 (UTC)

Does not always display text
This from the Semantic MediaWiki page:

Gives only the bulb without text:


 * Hi, do this:
 * Cheers --&#91;&#91;kgh&#93;&#93; 00:09, 26 January 2012 (UTC)
 * Cheers --&#91;&#91;kgh&#93;&#93; 00:09, 26 January 2012 (UTC)
 * Cheers --&#91;&#91;kgh&#93;&#93; 00:09, 26 January 2012 (UTC)

Messed up source?
When i look in the source the first line is like this:

Note:

the code is messed up, | in wrong places. Why is that?

--Earthdog (talk) 19:44, 31 May 2012 (UTC)

What is a note?
The recent changes to this template make it less usable than before. It was an "in line" note like the Warning template. It could be used anywhere in the text and had the option on keeping the left aligned if you needed that functionality. I prefer that it stays that way and that we don't make these simple templates to complicated. The way it is now messes up all notes used on this Wiki because it is not "in line" anymore. A Note is a Note, a Tip is a Tip, a Error is a Error and a Gotcha is a Gotcha. That way we keep them simple and easy to use. That is my humble opinion.

How do we solve this? --Felipe de Jong (talk) 11:39, 2 July 2012 (UTC)
 * I agree they should stay simple, but I disagree that maintaining 4 different templates makes it any simpler. Can you point to examples where this is currently breaking? We can also add a simple parameter to show only the inline text with icon, and otherwise the entire box (and use that from the other inline templates, so that one doesn't have to use an inline "inline" parameter in the page and stay backwards compatible). Krinkle (talk) 12:06, 2 July 2012 (UTC)


 * I quickly found a couple of examples. In Manual:User groups table & Extension default namespaces. In Manual:User groups table Both options are used.

Inline: Bla bla bla bla bla bla bla bla blabla bla bla bla bla bla bla. Result:

Bla bla bla bla bla bla bla bla blabla bla bla bla bla bla bla.

With left aligning text:

Result:

Before it was used like this: inline Bla bla bla bla bla bla bla bla blabla bla bla bla bla bla bla

Or with left aligning text:

I made the Template:TestNote for your reference. And it still "needs" Mediawiki:common.css. Regards --Felipe de Jong (talk) 13:06, 2 July 2012 (UTC)
 * The left-align wrapping has been fixed. Krinkle (talk) 16:21, 2 July 2012 (UTC)


 * Dear Krinkle, now I am getting confused. Is a Note a Tip now (you changed Note to Tip in my example)? A assume we are discussing the Note template here not the Tip template. At this moment the Note template is broken, it does not display the bulb anymore when used inline.
 * I prefere that these templates stay the way they are, simple, but like said before that is my humble opinion. If we do change this template at least we start with something that works and does at least the same thing as the original.
 * Some points to think about:
 * In most cases the Note template is used inline, inside paragraphs. In this case it is not handy and not wanted that there is a box around the note.
 * The Note template is used inside tables. Do we really want another box inside a table?
 * If we want to improve and merge all these "simple" templates we should first think about it. We could start by making the Template:Message which can call the different "simple" templates. If that then works we can start using the new one.
 * Some templates concerned:
 * Template:Warning
 * Template:Note
 * Template:Caution
 * Because it is broken at the moment I changed the template back to the way it was before, more or less. --Felipe de Jong (talk) 06:00, 4 July 2012 (UTC)

Breaks in lists
This template breaks when in a list, probably because of the newline. See Manual:Extensions. –ultradude25 (T&#124;C) at 16:43, 2 July 2012 (UTC)
 * ✅ Thanks, Removed line break. Krinkle (talk)

Error vs. Gotcha?
The documentation on this template doesn't actually contain any information. What is the "gotcha" parameter for? It looks just like the error in the example.

Frankly, Jumping the Shark on Notes?
Just trying to get a Note to work on a fresh MediaWiki installation. They are not working. The principle is incomprehensible. Do I have to download Note templates? Do I have to edit a new Note Template page? Do I have to add an extension? If I just go and copypaste the source from the local note template, I only get line noise. This should be immediately working and obviously simple in new installs. It ain't anything like that. What is this??


 * Hi, This is the Note template as used on the MediaWiki web side. It is by no means there for "new" installs. If you want to use this on your own wiki you are free to copy the code. First you should not copy the part between the  tags and secondly you need to add some css styling on your Wiki in  . And remember, the "rest" of the world did not get out of bed this morning to make your life less pleasant :). I did not even know you existed until a minute ago. If you get stuck just ask. Regards, --Jongfeli (talk) 12:15, 20 September 2013 (UTC)

New design
Hi please give the template a new look and some new functions please 176.253.248.56 16:51, 10 February 2014 (UTC)

How to install this template?
I've done the following: - Exported Template:Note from mediawiki.org - Imported xml file into my mediawiki install It blame me for Scribunto, all right, all right... - Installed Scribunto Now I need css, but... Where it is? Common.css is empty on mediawiki.org!!!

Thanks!!

I had this problem too! I couldn't figure out where to get the CSS. Eventually found it at https://www.mediawiki.org/wiki/MediaWiki:Gadget-site.css, exported it to xml and imported it to my Common.css (required changing the xml before import). All notes worked after that.

I have done all of the above, but the template is still shown as "40x40px", what am I doing wrong?

Install how to
Can someone please help me get started on using this template? I'm new to MediaWiki administration. It's not clear if I should copy/paste the source, or what parts of the source into my wiki, or somehow export it and install (or merge) files on the backend. I'm also not sure how to modify mediaWiki's CSS, but I'd like to know how to determine if I've imported the template correctly before I look at that. Thanks in advance Xlynx (talk) 23:53, 27 February 2018 (UTC)

Imported note template doesn't work in my wiki site
I imported the note template into my wiki site but when using it, I expect but the result is:

{ "params": { "1": { "type": "content", "label": "Text", "required": true }, "2": { "label": "Type", "description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.", "type": "string" } }, "format": "inline", "description": "Show a note in a box (e.g. a top-of-the-page warning)." }

where is the problem?
 * This wiki has additional extensions and is used to improve templates. This includes Translate and VisualEditor TemplateData. You should try old versions or make own or copy from another wiki. --wargo (talk) 18:31, 24 November 2018 (UTC)

Lua error: expandTemplate: template loop detected.
I'm on MW 1.2.9

I've installed the template and all the modules

I have Scribunto installed but when I try to use the template, I get these errors on my wiki

Any help?

Use TemplateStyles
editprotected Please copy over Template:Note/sandbox (except that the categorization should not be removed). It uses TemplateStyles to eliminate inline CSS. This has the advantage of simpler code, especially as TemplateStyles automatically transforms CSS on right-to-left pages (changes “right” to “left” and vice versa, so that the margins are of the right width on each side). It also documents the inline parameter in TemplateData, which was somehow left out until now. —Tacsipacsi (talk) 19:50, 4 January 2019 (UTC)
 * ✅ -Shirayuki (talk) 22:59, 4 January 2019 (UTC)

The icons need to be updated!
Thanks --&#91;&#91;kgh&#93;&#93; (talk) 20:34, 8 June 2019 (UTC)
 * Could you please explain it a little bit? What icons? To what? Why? —Tacsipacsi (talk) 09:50, 9 June 2019 (UTC)
 * The whole wiki was updated to use new and different icons. This template was not yet updated. I have no idea where to do it myself since the files are hidden in a cascade of differnent modules. I do not have time to spent more time on this. Thanks and cheers. --&#91;&#91;kgh&#93;&#93; (talk) 09:55, 9 June 2019 (UTC)
 * Thanks for the explanation. Unfortunately I can’t change the icons in the template, but I can help you find them. The inline version’s bulb icon is in this very template, so you can just change its name (but I can’t, as the template is fully protected). The block version’s icons are defined in MediaWiki:Gadget-site.css, which can be edited by neither of us. You can ask an interface administrator (list of interface admins) directly or on the talk page. —Tacsipacsi (talk) 14:15, 9 June 2019 (UTC)
 * In other words: This template is a state of mess. I would never have guessed that this template is controlled by a gadget. Thanks for enlighting me. :) I will address at current issues. --&#91;&#91;kgh&#93;&#93; (talk) 14:32, 10 June 2019 (UTC)
 * Addressed here. May god's love be with us. :D --&#91;&#91;kgh&#93;&#93; (talk) 14:35, 10 June 2019 (UTC)