AniDB:Page layout: Difference between revisions

More bits
(er... stuff)
(More bits)
Line 82: Line 82:
  </table></nowiki>
  </table></nowiki>


=== Definition lists ===
=== Sequential lists ===
 
Lists where not only the order is important, but also form a regular, unbroken sequence.


Lists with two parts, a name or number, and an item of content, might be marked up in several different ways.
When the sequence is not <code>1+x</code>. This would be easier with a <code>value</code> attribute on the <code><nowiki><li></nowiki></code>, but some w3c prat removed it from xhtml.


List, where all items are the same 'type', such as top 10 lists on the main page.
  <nowiki> <ol>
  <nowiki> <[o/u]l>
   <li class="g_odd"><span>[namea]</span> <[tag]>[value]</[tag]></li>
   <li class="g_odd"><span>[namea]</span> <[tag]>[value]</[tag]></li>
   <li><span>[nameb]</span> <[tag]>[value]</[tag]></li>
   <li><span>[nameb]</span> <[tag]>[value]</[tag]></li>
   <li class="g_odd">...etc
   <li class="g_odd">...etc
  </[o/u]l></nowiki>
  </ol></nowiki>
 
When the sequence counts up from 1, it's easier.
 
<nowiki> <ol>
  <li class="g_odd">[value]</li>
  <li>[value]</li>
  <li>...etc
</ol></nowiki>
 
=== Definition lists ===
 
Lists with two parts, a name or number, and an item of content, might be marked up in several different ways.


Definition list, for different types.
Definition list, for different types.
Line 106: Line 119:
   <tr>...etc
   <tr>...etc
  </table></nowiki>
  </table></nowiki>
=== General lists ===
Any collection consisting of items a similar kind, not sequentially ordered.
<nowiki> <ul>
  <li>[value]</li>
  <li>[value]</li>
  <li>...etc
</ul></nowiki>


=== Icons ===
=== Icons ===
Line 114: Line 137:


  <nowiki> <a class="i_icon i_[imagename]" href="[link]">[linkname]</a></nowiki>
  <nowiki> <a class="i_icon i_[imagename]" href="[link]">[linkname]</a></nowiki>
=== Pictures ===
If not part of the content of the db (ie, stylesheet specific), they must be specified using the <code>background</code> property in the css.
<nowiki> <img src="(absolute link)" alt="(something appropriate)" /></nowiki>
=== Text ===
Text data should convert <code>\n</code> into <code><nowiki><br /></code></nowiki> before output.
<nowiki> <p class="[name]">[text]<br />
[text]<br />
[text]</p></nowiki>
476

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.