Topic on Project:Support desk

RichardPrestage (talkcontribs)

Hi -

I periodically add content to a page (usually the main page of our wiki), and I would like to add some sort of symbol in front of new contents, so it would look something like:

*NEW* Link added to the super-helpful do-dah page...

Blah Blah Blah

Other old stuff

In Twiki, I use the markup %N%, and it renders as the text "new" in a nice font, in a little box. Does MediaWiki have something similar? Or is there an HTML tag for this?

Thanks.

p.s. I've tried lots of wiki (and Google) searching. But crafting a question along the lines of "how do I add a 'new' symbol" is remarkably difficult. :)

AhmadF.Cheema (talkcontribs)

Does a Template not work for your purpose?

RichardPrestage (talkcontribs)
AhmadF.Cheema (talkcontribs)

I don't think there is any native support for that. TikiWiki does include more out-of-the box features than MediaWiki.

The template can quite easily be created in just a couple of minutes, using free (might require attribution) icons such as from Category:New_(word), New Icon, Store New Badges, label_black_new etc.

Examples:

RichardPrestage (talkcontribs)

Thanks! I am surprised it does not exist already, seems like something many people would want. But I'll proceed as you suggest. And thanks for the examples (the flashing one is incredibly annoying...)

Johnywhy (talkcontribs)

Wouldn't it be cooler if "new" was automatically applied to new content, and automatically removed when it's old?

Js or php could do it:

  1. on edit, auto add new-tag to new content. Use dif feature to identify the new content. https://m.mediawiki.org/wiki/API:Compare
    1. could include rules like, "only if new paragraph, new link, or new image"
  2. on page load
    1. is last edit-date within newness-window?
    2. if yes, do nothing (new-tag was already added on edit)
    3. if no, remove all new tags.
Reply to "Add a "new" symbol"