Category:Code snippets: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
Marti (talk | contribs)
m Documented Core example template and how it's used.
Marti (talk | contribs)
m Updated to newest template name and re-verbaged
Line 1: Line 1:
List of pages with code snippets. Browse around, you might learn something new.
List of pages with code snippets. Browse around, you might learn something new.


<pre>If you see code like this it is usually a Good example but may not be verified.</pre>
<pre>If you see code like this it is usually a Good sample but may not be verified.</pre>


{{Core example |1=<pre style="border: none; margin: inherit;">If you see code like this it is usually a verified example but may not be good practice.
{{Core samp |1=<pre style="border: none; margin: inherit;">
This is typically used in the Greasemonkey API</pre>}}
If you see code like this it is usually a verified Core sample but may or may not be good practice.
This is typically only used in the Greasemonkey API to denote core samples.
</pre>}}


{{Good example |1=<pre style="border: none; margin: inherit;">If you see code like this it is usually a verified Good example.</pre>}}
{{Good samp |1=<pre style="border: none; margin: inherit;">
If you see code like this it is usually a verified Good sample.
This is typically good practice in context.
</pre>}}


{{Fair example |1=<pre style="border: none; margin: inherit;">If you see code like this it is usually a Fair example and may have some pitfalls.</pre>}}
{{Fair samp |1=<pre style="border: none; margin: inherit;">
If you see code like this it is usually a verified Fair sample.
This may have some pitfalls and potential security risks but may still be useful in context.
</pre>}}


{{Bad example |1=<pre style="border: none; margin: inherit;">If you see code like this it is usually a Bad example and may have a high security risk.</pre>}}
{{Bad samp |1=<pre style="border: none; margin: inherit;">
If you see code like this it is usually a verified Bad example.
This includes high security risks and/or not working in context.
</pre>}}

Revision as of 23:41, 7 May 2009

List of pages with code snippets. Browse around, you might learn something new.

If you see code like this it is usually a Good sample but may not be verified.

Template:Core samp

Template:Good samp

Template:Fair samp

Template:Bad samp

This category currently contains no pages or media.