Difference between revisions of "User:Schaumbe"
Jump to navigation
Jump to search
m (testing <noscript> tag, doesn't work) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
= Testing noscript warnings = | = Testing noscript warnings = | ||
+ | How to warn users that javascript is required on this wiki? | ||
+ | |||
+ | * Approach 1: use noscript tags (problem: <noscript> tags are rendered as plaintext): | ||
<noscript>WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript.</noscript> | <noscript>WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript.</noscript> | ||
+ | * Approach 2: use #tag:noscript (problem: requires a [https://www.mediawiki.org/wiki/Manual:Parser_functions parser function] for the noscript tag, I guess): | ||
{{#tag:noscript|WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript.}} | {{#tag:noscript|WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript.}} | ||
+ | |||
+ | * Approach 3: just warn, no tag wrappers (problem: everyone sees the warning, even w/ JS): | ||
+ | WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript. |
Latest revision as of 22:00, 5 March 2014
Andrew Schaumberg. schaumberg.andrew@gmail.com
Currently a software dev at DOE JGI, part of prokaryotic superprogram.
Testing noscript warnings
How to warn users that javascript is required on this wiki?
- Approach 1: use noscript tags (problem: <noscript> tags are rendered as plaintext):
<noscript>WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript.</noscript>
- Approach 2: use #tag:noscript (problem: requires a parser function for the noscript tag, I guess):
<noscript>WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript.</noscript>
- Approach 3: just warn, no tag wrappers (problem: everyone sees the warning, even w/ JS):
WARNING: this wiki requires JavaScript to render math formulas. Please enable JavaScript.