Print Search
Content Actions
Wiki Search
Random Art
Update
(Well Formed Document)
(Well Formed Document)
Line 88: Line 88:
 
| Attribute values must be quoted
 
| Attribute values must be quoted
 
|}
 
|}
 +
 +
=== XHTML Comformance ==
 +
There is more to conformance than a '''well formed document'''.  But if a document is not well formed, the rest is mute!
 +
 +
Conformance is a moving target as standard do change.  There are rules like only using a <nowiki><br/></nowiki> within a paragraph block <nowiki><p></p></nowiki>.  There is a specification of falid elements and valid attributes that change a lot from release to release.
 +
 +
If you know the rules, please use them.  But if you don't, don't worry about it.  Just stay ''well formed'' and thing will work out fine.

Revision as of 06:56, 8 December 2005

Purpose

There are many different places that members and especially volunteers add page markup. While, this is a positive thing, we need to try to do so in a compatibile way.


The End Result

EB Pages are XHTML 1.0 Strict. For most people, that has little to no impact. The average user needs only ensure that the XML (HTML) document is well formed.

Wiki Guidelines

In general, use as much non-HTML wiki markup as possible. Avoid using the <br/>, <p/>, <b>, <i> and <u> HTML elements just to name a few. This way we can more easily control the quality of the page layout.

Check out are easy Wiki editing cheat sheet.


Wiki Links

Wiki links deserve special attention. The number one mistake people have made is around linkage issues.

There are three kinds of links and it is important to understand the difference.

External links to other sites

[http://somesite.com/somepage.html label for link] 

Local wiki links

[[Page Name |label for link]]

It is VERY important to use local links when possible as they have very special features associated with them. Notice the (|) symbol between the page name and the label.


Links to Wikipedia

[[:en:Page Name |label for link]]

Wiki's have a special ability to link internally and to other wiki's. Wikipedia is setup already for namespace en.

Don't forget about the page formatting cheat sheet.

Why

A wiki keeps track of what links to what, so on any given page you can see what links to it. If you are not using local links, this is not possible.

Also, the wiki has built in page redirection so when a page moves to a new location, your links do not break.

Also, for cleanup we can find orphaned pages (pages without any links to them) and possibly ditch them or etc. This is likely to happen for artists and bands that get deleted because there is no art that represents them (probably got entered with a bad name to begin with). So, if there is nothing linking to a page, it may acidentally get ditched.

Lastly, if we ever had to move the wiki to a new location, internal links would still function at a new web address.

For all these reasons and more, use internal links in every case possible.

Forum Guidelines

Use the forum style markup only.

HTML Guidelines

For the most part this applied to the volunteers, but it good reading for users who wish to embed html in the wiki pages (not advised, but not forbidden).

Definitions

Element 
a.k.a. Tag, A structural part of the XML document. For example, <p> </p> is a paragraph element.
Attribute 
A property of an element expressed as name and value pair. For example, <p style="font-color:red"></p> is a paragraph element whose text will be displayed in the color red.


Well Formed Document

This is the MOST IMPORTANT thing to know about HTML editing. In the earlier versions of HTML, it did not have to well formed, but now it does.

  • For every start element there is a end element.
  • Elements are properly nested
  • All attributes have a value
  • All attribute values ar quoted with double quotes
Bad Good Why
This is my first paragraph. <p> And this is my second. <p>This is my first paragraph.</p> <p>And this is my second.</p> The element p must have a beginning and an end.
This is my first line. <br> And this is my second. This is my first line.<br/> And this is my second. The element br does not contain text, so we must use a slash at the end to indicate that the element does not continue on.
<b> i like <i> fomatting </b></i>! <b> i like <i> fomatting </i></b>! Improperly nested elements.
<img align=right src=image.jpg> <img align="right" src="image.jpg"> Attribute values must be quoted

= XHTML Comformance

There is more to conformance than a well formed document. But if a document is not well formed, the rest is mute!

Conformance is a moving target as standard do change. There are rules like only using a <br/> within a paragraph block <p></p>. There is a specification of falid elements and valid attributes that change a lot from release to release.

If you know the rules, please use them. But if you don't, don't worry about it. Just stay well formed and thing will work out fine.