Q2 Quotes Database

There are many different ways you can access the Q2 database:
  • Random quotes; the url is http://q2.bloople.net/r?number=x&mode=y where x is how many quotes you want to be displayed, and mode is one of the folowing:
    • 0 prints out plaintext;
    • 3 prints HTML including the html and head tags, etc. This is useful for including as an internal frame or <frame>;
    • 6 prints out HTML without surrounding head etc., suitable for direct including in a webpage. Note: the quotes are printed with surrounding <p> tags;
    • 8 is similar to 6, but it does not print the <p> tags;
    • 12 is similar to 3, except it applies an external stylesheet, as specified by a 'style' attribute in the url. Example:
      • r?number=50&mode=12&style=http://www.example.com/example.css
    • 13 is similar to 12, except it applies the external stylesheet using div tags, and you specify the background colours for the highlighted and off backgrounds.
    • 4 prints the sources line;
    • 5 prints a single random quote.
      Tip: modes 4 and 5 can be used in conjunction for a client application, and can be easier to use that modes 0 or 3 (you don't have to process newlines, etc.).
    • 7 prints out a single quote, followed (on the same line) by the url of the sources;
    • 10 prints out XML, with the layout:
      • <quotes>
        • <quote>
        • <quote>
        • ...
        • <sources>http://q2.bloople.net/s</sources>
      • </quotes>
    • 17 outputs an RSS 0.91 feed.?

    For example, to display 50 quotes in html, use http://q2.bloople.net/r?number=50&mode=3