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)

x86
macOS
defect
Not set
normal

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]".
Blocks: 487110
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
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/
Minor nit: the method name doesn't include (), so shouldn't the template add that for you?
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).
Also, how should we distinguish noscript in the list of methods?
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.
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.
Component: Documentation Requests → Documentation
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.