User:CallerNo6/Web Service/testing: Difference between revisions
From MusicBrainz Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''<entity>''' (bold) |
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''<entity>''' (bold) |
||
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''''<entity>''''' (bold italic) |
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''''<entity>''''' (bold italic) |
||
*<nowiki>http://musicbrainz.org/ws/2/</nowiki><span style="font-family:monospace"><entity></span> (css font-family:monospace , fixed width, note it's smaller) |
|||
*<nowiki>http://musicbrainz.org/ws/2/</nowiki><tt><entity></tt> (tt, should be fixed width) |
*<nowiki>http://musicbrainz.org/ws/2/</nowiki><tt><entity></tt> (tt, should be fixed width) |
||
*<nowiki>http://musicbrainz.org/ws/2/</nowiki><tt |
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>''<tt><entity></tt>'' (fixed width italic) |
||
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''<tt><entity></tt>''' ( |
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''<tt><entity></tt>''' (fixed width bold) |
||
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>''<tt><entity></tt>'' ( |
*<nowiki>http://musicbrainz.org/ws/2/</nowiki>'''''<tt><entity></tt>''''' (fixed width bold italic) |
||
Line 32: | Line 30: | ||
{| border="1" |
{| border="1" |
||
|+ from [http://chimera.labs.oreilly.com/books/1230000000969/ch03.html O'Reilly] |
|+ from [http://chimera.labs.oreilly.com/books/1230000000969/ch03.html O'Reilly] |
||
|- |
|||
| Filenames, file extensions (such as .jpeg), directory paths, commands in Unix, Oracle, SQL, and Linux books || ''Body font italic'' |
|||
|- |
|||
| URLs, URIs, email addresses || ''Body font italic'' |
|||
|- |
|||
| Emphasized words (shouting!) || ''Body font italic'' |
|||
|- |
|||
|First instance of a technical term || ''Body font italic'' |
|||
|- |
|- |
||
| Code blocks || <tt>Constant width</tt> |
| Code blocks || <tt>Constant width</tt> |
||
Line 43: | Line 49: | ||
| Commands or text to be typed by the user || '''<tt>Constant width bold</tt>''' |
| Commands or text to be typed by the user || '''<tt>Constant width bold</tt>''' |
||
|- |
|- |
||
| Line annotations || <em style="font-size:smaller">Body font italic (but smaller) |
| Line annotations || <em style="font-size:smaller">Body font italic</em> (but smaller) |
||
|- |
|- |
||
| Placeholders in paths, directories, GUI items, URLs, or other text that would be italic anyway || <nowiki>http://</nowiki>www.<yourname>.com |
| Placeholders in paths, directories, GUI items, URLs, or other text that would be italic anyway || ''<nowiki>http://</nowiki>www.<tt><yourname></tt>.com'' |
||
|- |
|- |
||
| Keyboard accelerators (Ctrl, Shift, etc.), menu titles, menu options, menu buttons || Body text |
| Keyboard accelerators (Ctrl, Shift, etc.), menu titles, menu options, menu buttons || Body text |
Revision as of 01:17, 27 April 2014
WTF?
This is a page for trying out typographic conventions.
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> (tt, should be fixed width)
- http://musicbrainz.org/ws/2/<entity> (fixed width italic)
- http://musicbrainz.org/ws/2/<entity> (fixed width bold)
- http://musicbrainz.org/ws/2/<entity> (fixed width bold 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>
The O'Reilly way
Filenames, file extensions (such as .jpeg), directory paths, commands in Unix, Oracle, SQL, and Linux books | Body font italic |
URLs, URIs, email addresses | Body font italic |
Emphasized words (shouting!) | Body font italic |
First instance of a technical term | Body font italic |
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 |