Closed
Bug 487107
Opened 16 years ago
Closed 16 years ago
Add template to mark methods that are "noscript"
Categories
(Developer Documentation Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sheppy, Unassigned)
References
Details
Add a new "noscript" template that inserts some sort of icon or box into the descriptions of methods that are marked as "[noscript]".
Reporter | ||
Comment 1•16 years ago
|
||
I've now added the new method_noscript template, which you use like this:
{{template.method_noscript("functionName()")}}
This inserts a section header with a special "Native code only!" notice floating to its right.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•16 years ago
|
||
While I was at it, I added new templates for badging methods as being introduced in specific versions of Firefox or Gecko. See my blog post about them here: http://www.bitstampede.com/2009/04/08/handy-new-templates-for-mdc/
Comment 3•16 years ago
|
||
Minor nit: the method name doesn't include (), so shouldn't the template add that for you?
Reporter | ||
Comment 4•16 years ago
|
||
Now the templates add the parens for you. I'd debated doing that and decided against it, but you changed my mind (that's how close a call it was for me).
Comment 5•16 years ago
|
||
Also, how should we distinguish noscript in the list of methods?
Reporter | ||
Comment 6•16 years ago
|
||
Well... we could just include the "[noscript]" in the IDL snippet in the method list... but I suppose we could add a template to do the little box thing there too.
Reporter | ||
Comment 7•16 years ago
|
||
I've added a new template: noscript_inline -- this embeds a "Native code only!" box inline in text, and can be used in the method list.
Assignee | ||
Updated•13 years ago
|
Component: Documentation Requests → Documentation
Updated•13 years ago
|
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
You need to log in
before you can comment on or make changes to this bug.
Description
•