I’ve added three helpful new templates to MDC that will help us standardize the look and feel of certain special situations in reference documentation:
The new method_noscript template is used to create a section heading for an interface method which can only be called from native code. You use it like this:
This creates a heading that looks like this:
The next template is method_fx_minversion, which creates a section heading for an interface method introduced in a specified version of Firefox. For example:
The resulting heading looks like this:
Finally, the method_gecko_minversion template is used to badge a method as being introduced in a specified version of Gecko, like this:
This produces the following heading:
The right edges actually do line up in real usage… I resized my window some in between taking these screenshots, and was too lazy to redo them.
These should help us make the documentation more concise in expressing this information to readers.