Modify

Opened 5 years ago

Closed 2 months ago

#10648 closed enhancement (fixed)

Configurable Phrases types

Reported by: lucid Owned by: Ryan J Ollos
Priority: normal Component: WikiExtrasPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

If I understand correctly, currently you can only have three kinds of phrases:

  • done_phrases: green on transparent
  • fixme_phrases: white on red
  • todo_phrases: white on black

It would be cool if you could configure your own phrase types, e.g.: nice_phrases = NICE, COOL and then you could add to your site.css:

span.wikiextras.phrase.nice { background-color: #8080d0; }

Attachments (1)

T10648-wikiextras-custom-phrases.patch (2.1 KB) - added by lucid 3 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 3 years ago by Mikael Relbe

Status: newaccepted

Agree, that would be cool :-)

Changed 3 years ago by lucid

comment:2 Changed 3 years ago by lucid

Some more ideas for custom CSS:

span.wikiextras.phrase.nice {
  background:#D7EFBF url(../wikiextras-icons-16/tick.png) 6px 4px no-repeat;
  border-radius:1em 0em 0em 1em;
  border-right:3px solid #ccc;
  border-color:#5ba622;
  color:#333;
  text-shadow:1px 1px 0 #fff;
  padding:4px 13px 4px 43px;
  margin:0px 10px;
  font-size:13px;
}

span.wikiextras.phrase.attention {
  background:#f8dfd8 url(../wikiextras-icons-16/exclamation-red.png) 6px 4px no-repeat;
  border-radius:1em 0em 0em 1em;
  border-right:3px solid #ccc;
  border-color:#d85027;
  color:#333;
  text-shadow:1px 1px 0 #fff;
  padding:4px 13px 4px 43px;
  margin:0px 10px;
  font-size:13px;
}

span.wikiextras.phrase.new {
  background:#F9F2AF url(../wikiextras-icons-16/star.png) 6px 4px no-repeat;
  border-radius:1em 0em 0em 1em;
  border-right:3px solid #ccc;
  border-color:#C1C700;
  color:#333;
  text-shadow:1px 1px 0 #fff;
  padding:4px 13px 4px 43px;
  margin:0px 10px;
  font-size:13px;
}

comment:3 Changed 3 months ago by Ian Lewis

Was going to post a more restricted enhancement request for warn_phrases, most likely some yellow color on transparent. "Some yellow color" because it should be a color you can see on a white background.

However, decided not to post ticket because this enhancement covers the function, and it is even more appealing than one more phrase type. Still, warn_phrases might be an interesting intermediate enhancement.

Last edited 3 months ago by Ian Lewis (previous) (diff)

comment:4 Changed 3 months ago by Ryan J Ollos

Owner: changed from Mikael Relbe to Ryan J Ollos

comment:5 Changed 2 months ago by Ryan J Ollos

Documented in WikiExtrasPlugin@39.

comment:6 Changed 2 months ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 16718:

TracWikiExtras 1.3.1dev: Add support for custom phrases

Patch by lucid.

Fixes #10648.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.