User:CallerNo6/Web Service/testing: Difference between revisions
From MusicBrainz Wiki
Jump to navigationJump to search
(Created page with "==Links== *<nowiki>http://musicbrainz.org/ws/2/</nowiki>''<entity>'' (italic) *<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''<entity>''' (bold) *<nowiki>http:...") |
No edit summary |
||
Line 17: | Line 17: | ||
*An ''<tt>artist</tt>'' in not an artist. (tt italic) |
*An ''<tt>artist</tt>'' in not an artist. (tt italic) |
||
*an <span style="font-family:monospace;">artist</span> is not an artist (css font-family:monospace , should be fixed width but note it's smaller) |
*an <span style="font-family:monospace;">artist</span> is not an artist (css font-family:monospace , should be fixed width but note it's smaller) |
||
==Monospace tests== |
|||
*<tt>O</tt><span style="font-family:monospace; font-size:1em">O</span><tt>O</tt><span style="font-family:workaround, monospace">O</span><tt>O</tt><span style="font-family:monospace">O</span> |
|||
So, note. font-size:monospace will default (for most sytems) to smaller-than-body-text unless you put in a dummy font-family first. So: |
|||
<code><pre><span style="font-family:mono-workaround, monospace;">Foo</span></pre></code> |
|||
==WTF?== |
==WTF?== |
Revision as of 20:50, 26 April 2014
Links
- http://musicbrainz.org/ws/2/<entity> (italic)
- http://musicbrainz.org/ws/2/<entity> (bold)
- http://musicbrainz.org/ws/2/<entity> (bold italic)
- http://musicbrainz.org/ws/2/<entity> (css font-family:monospace , fixed width, note it's smaller)
- http://musicbrainz.org/ws/2/<entity> (tt, should be fixed width)
- http://musicbrainz.org/ws/2/<entity> (tt, should be fixed width slightly bolder)
- http://musicbrainz.org/ws/2/<entity> (tt bold)
- http://musicbrainz.org/ws/2/<entity> (tt italic)
Entities in sentences?
- An artist is not an artist. (tt)
- An artist in not an artist. (tt italic)
- an artist is not an artist (css font-family:monospace , should be fixed width but note it's smaller)
Monospace tests
- OOOOOO
So, note. font-size:monospace will default (for most sytems) to smaller-than-body-text unless you put in a dummy font-family first. So:
<span style="font-family:mono-workaround, monospace;">Foo</span>
WTF?
This is a page for trying out typographic conventions.
Code blocks | Constant width |
Registry keys | Constant width |
Language and script elements: class names, types, namespaces, attributes, methods, variables, keywords, functions, modules, commands, properties, parameters, values, objects, events, XML and HTML tags, and similar elements. Some examples include: System.Web.UI, a while loop, the Socket class, and the Obsolete attribute. Exception: commands in Unix, Oracle, SQL, and Linux book, which are regular italics. | Constant width |
Replaceable items (placeholder items in syntax); “username” in the following example is a placeholder: login: username | Constant width italic |
Commands or text to be typed by the user | Constant width bold |
Line annotations | Body font italic (but smaller) |
Placeholders in paths, directories, GUI items, URLs, or other text that would be italic anyway | http://www.<yourname>.com |
Keyboard accelerators (Ctrl, Shift, etc.), menu titles, menu options, menu buttons | Body text |