Difference between revisions of "User:Schaumbe"

From AlchemistryWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
How to warn users that javascript is required on this wiki?
 
How to warn users that javascript is required on this wiki?
  
* Approach 1: use noscript tags:
+
* 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:
+
* 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.}}
  
* Appracoh 3: just warn, no tag wrappers:
+
* 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.
 
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.