User talk:Drakkos

From Discworld MUD Wiki
Revision as of 23:31, 22 April 2010 by Ilde (Talk | contribs) (request ReCAPTCHA extension for dealing with spam)

Jump to: navigation, search


Sorry to bother you, but I think a simple change in css might make quoting things from the mud much easier, namely by making <pre> tags wrap long lines and I think maybe only you can change the css file(s) for the wiki.

This is in response to some complaints raised by visitors about lack of wrapping lines in <pre> tags that results in horizontal scrolling and breaks in the layout.

Unfortunately, other options like using the template:prebox doesn't preserve white space or newlines and requires adding lots of <br> tags which change the space between lines. (See other options considered here and here.)

I'm wondering if it would be possible to add the following lines to the existing lines in the css file(s) in the pre section:

pre {
 overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
 white-space: pre-wrap; /* css-3 */
 white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
 white-space: -pre-wrap; /* Opera 4-6 */
 white-space: -o-pre-wrap; /* Opera 7 */
 word-wrap: break-word; /* Internet Explorer 5.5+ */

I think this would make it work like people expect, preserve white space and newlines but wrap if it doesn't fit in the browser's window. It seems to work in local tests.

Thanks. Frazyl 01:16, 31 March 2010 (UTC)

Hi! Would you consider installing the ReCAPTCHA extension? It would hopefully curtail the periodic floods of spam we've been getting while not overly inconveniencing non-spambot users (since it looks like it only triggers for edits that include external links (it might be possible to have a whitelist, too, as the extension it's based on allows that--whitelisting Kefka's site, the MUD's site, dwpriests, and the tm wiki would probably take care of nearly all legitimate external links), and the CAPTCHAs have audio versions). I'd swear the last one must have had seventy spam edits or so... preemptively protecting pages (and their research and talk pages, argh) that are a couple links away from the main page seemed to basically work, but it's not exactly the greatest solution. --Ilde 03:31, 23 April 2010 (UTC)