Template talk:Note/Archive

From MediaWiki.org
Jump to navigation Jump to search

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
 </td><td valign="top" style="padding-left:0.5em;"> Note: </td><td valign="top" 
 style="padding-left:0.5em;"> This is the 2nd method </td></tr></table>
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)

Note Note: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:

{{note|Version 1.6.0 is fully functional. Image queries are [https://bugzilla.wikimedia.org/show_bug.cgi?id=30494 broken in 1.6.1].}}

Gives only the bulb without text:

Note Note:

Hi, do this:
{{note|1=Version 1.6.0 is fully functional. Image queries are [https://bugzilla.wikimedia.org/show_bug.cgi?id=30494 broken in 1.6.1].}}
Version 1.6.0 is fully functional. Image queries are broken in 1.6.1.
Cheers --[[kgh]] 00:09, 26 January 2012 (UTC)

Messed up source?

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

{{#if: {{{1|}}}|<div class="block-note"><span class="block-contents">|[[File:Bulbgraph.png|18px|Note|link=]]}} '''Note:''' {{#if: {{{1|}}}|{{{1}}}</span></div>}}

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:

{{tip}}''Bla bla bla bla bla bla bla bla blabla bla bla bla bla bla bla.''

Result:

Note Note:Bla bla bla bla bla bla bla bla blabla bla bla bla bla bla bla.


With left aligning text:

{{tip|Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla.}}

Result:

Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla.


Before it was used like this: inline Template:TestNoteBla bla bla bla bla bla bla bla blabla bla bla bla bla bla bla

Or with left aligning text: Template:TestNote

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:
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#Installing an extension. –ultradude25 (T|C) at 16:43, 2 July 2012 (UTC)

Yes Done 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 <noinclude> tags and secondly you need to add some css styling on your Wiki in MediaWiki:Common.css. 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

Foo

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)

Yes Done -Shirayuki (talk) 22:59, 4 January 2019 (UTC)

The icons need to be updated!

Thanks --[[kgh]] (talk) 20:34, 8 June 2019 (UTC)

@Kghbln: 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. --[[kgh]] (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. --[[kgh]] (talk) 14:32, 10 June 2019 (UTC)
Addressed here. May god's love be with us. :D --[[kgh]] (talk) 14:35, 10 June 2019 (UTC)