AniDB RTE: Difference between revisions

450 bytes added ,  22 April 2009
m
<tt>'ed the phpBB tags
m (<tt>'ed the phpBB tags)
Line 21: Line 21:
== The AniDB case ==
== The AniDB case ==


AniDB doesn't store html formatted content like many other sites do, AniDB had for a long time a kind of tags, much like to the phpBB forum, like [b]some bold text[/b] and so on.<br />
AniDB doesn't store html formatted content like many other sites do, AniDB had for a long time a kind of tags, much like to the phpBB forum, like <tt>[b]some bold text[/b]</tt> and so on.<br />
Whenever you used one of these tags in a review or message or whatever those tags were then saved to the server and then parsed and converted to html content on display by the server, so the above text would be returned as "'''some bold text'''".
Whenever you used one of these tags in a review or message or whatever those tags were then saved to the server and then parsed and converted to html content on display by the server, so the above text would be returned as "'''some bold text'''".


=== Supported tags ===
=== Supported tags ===


* [b]...[/b] - bold text
* <tt>[b]...[/b]</tt> - bold text
* [i]...[/i] - italic text
* <tt>[i]...[/i]</tt> - italic text
* [u]...[/u] - underline
* <tt>[u]...[/u]</tt> - underline
* [s]...[/s] - line-trough style
* <tt>[s]...[/s]</tt> - line-trough style
* [ul]...[/ul] - unordered lists
* <tt>[ul]...[/ul]</tt> - unordered lists
* [ol]...[/ol] - ordered lists
* <tt>[ol]...[/ol]</tt> - ordered lists
* [li]...[/li] - lists items (go inside both [ul] and [ol])
* <tt>[li]...[/li]</tt> - lists items (go inside both <tt>[ul]</tt> and <tt>[ol]</tt>)
* [quote]...[/quote] - quoted text without name
* <tt>[quote]...[/quote]</tt> - quoted text without name
* [quote=USERNAME]...[/quote] - quoted text with name referenced
* <tt>[quote=USERNAME]...[/quote]</tt> - quoted text with name referenced
* [code]...[/code] - non-formatted text
* <tt>[code]...[/code]</tt> - non-formatted text
* [spoiler]...[/spoiler] - text is hidden; visibility of text can be toggled using "Show/Hide Spoiler" button
* <tt>[spoiler]...[/spoiler]</tt> - text is hidden; visibility of text can be toggled using "Show/Hide Spoiler" button
* [url]HREF[/url] - link to URL where text is the same as the URL (can only be used to link AniDB domain URLs)
* <tt>[url]HREF[/url]</tt> - link to URL where text is the same as the URL (can only be used to link AniDB domain URLs)
* [url=HREF]...[/url] - link to URL where text is different from the URL (can only be used to link anidb domain URLs)
* <tt>[url=HREF]...[/url]</tt> - link to URL where text is different from the URL (can only be used to link anidb domain URLs)
* [img]HREF[/img] - link to an image
* <tt>[img]HREF[/img]</tt> - link to an image


==== History ====
==== History ====
Line 45: Line 45:
The commands supported at first were:
The commands supported at first were:


* [b]...[/b] - bold text
* <tt>[b]...[/b]</tt> - bold text
* [i]...[/i] - italic text
* <tt>[i]...[/i]</tt> - italic text
* [u]...[/u] - underline
* <tt>[u]...[/u]</tt> - underline


These were then expanded to:
These were then expanded to:


* [s]...[/s] - line-trough style
* <tt>[s]...[/s]</tt> - line-trough style
* [ul]...[/ul] - unordered lists
* <tt>[ul]...[/ul]</tt> - unordered lists
* [ol]...[/ol] - ordered lists
* <tt>[ol]...[/ol]</tt> - ordered lists
* [li]...[/li] - lists items (go inside both [ul] and [ol])
* <tt>[li]...[/li]</tt> - lists items (go inside both <tt>[ul]</tt> and <tt>[ol]</tt>)


Some alternative methods to add lists were also added:
Some alternative methods to add lists were also added:
Line 61: Line 61:
* list item 1</pre>
* list item 1</pre>


will produce an unordered list much the same as doing [ul][li]list item 1[/li][li]list item 2[/li][/ul]
will produce an unordered list much the same as doing <tt>[ul][li]list item 1[/li][li]list item 2[/li][/ul]</tt>


<pre># list item 1
<pre># list item 1
# list item 2</pre>
# list item 2</pre>


will produce an ordered list much the same as doing [ol][li]list item 1[/li][li]list item 2[/li][/ol]
will produce an ordered list much the same as doing <tt>[ol][li]list item 1[/li][li]list item 2[/li][/ol]</tt>


Around this time linking to AniDB was also made possible with the following format [type of link:attribute of link:text of link]:
Around this time linking to AniDB was also made possible with the following format <tt>[type of link:attribute of link:text of link]</tt>:


* [anime:AID:some text] - links to an anime page
* <tt>[anime:AID:some text]</tt> - links to an anime page
* [ep:EID:some text] - links to an episode page
* <tt>[ep:EID:some text]</tt> - links to an episode page
* [file:FID:some text] - links to a file page
* <tt>[file:FID:some text]</tt> - links to a file page
* [group:GID:some text] - links to a group page
* <tt>[group:GID:some text]</tt> - links to a group page
* [producer:PRID:some text] - links to a producer page
* <tt>[producer:PRID:some text]</tt> - links to a producer page
* [user:UID:some text] - links to an user userpage
* <tt>[user:UID:some text]</tt> - links to an user userpage
* [votes:UID:some text] - links to an user votes page
* <tt>[votes:UID:some text]</tt> - links to an user votes page
* [creq:CREQID:some text] - links to a creq
* <tt>[creq:CREQID:some text]</tt> - links to a creq
* [reviews:AID:some text] - links to anime reviews
* <tt>[reviews:AID:some text]</tt> - links to anime reviews
* [mylist:UID:some text] - links to an user MyList
* <tt>[mylist:UID:some text]</tt> - links to an user MyList
* [review:AID:REVIEWID] - links to a specific review
* <tt>[review:AID:REVIEWID]</tt> - links to a specific review
* [titles:AID:some text] - links to the titles of an anime
* <tt>[titles:AID:some text]</tt> - links to the titles of an anime
* [producers:AID:some text] - links to an anime producers page
* <tt>[producers:AID:some text]</tt> - links to an anime producers page
* [cats:AID:some text] - links to an anime categories page
* <tt>[cats:AID:some text]</tt> - links to an anime categories page
* [relations:AID:some text] - links to an anime relations page
* <tt>[relations:AID:some text]</tt> - links to an anime relations page
* [groupcmts:ID:some text] - links to a group comments page
* <tt>[groupcmts:ID:some text]</tt> - links to a group comments page
* [tracker:ID:some text] - links to an AniDB tracker item
* <tt>[tracker:ID:some text]</tt> - links to an AniDB tracker item
* [wiki::PAGE] - links to an AniDB wiki page
* <tt>[wiki::PAGE]</tt> - links to an AniDB wiki page
* [forum.board:FORUMBOARDID:some text] - links to an AniDB external forum board
* <tt>[forum.board:FORUMBOARDID:some text]</tt> - links to an AniDB external forum board
* [forum.post:FORUMPOSTID:some text] - links to an AniDB external forum post
* <tt>[forum.post:FORUMPOSTID:some text]</tt> - links to an AniDB external forum post
* [forum.topic:FORUMTOPICID:some text] - links to an AniDB external forum topic
* <tt>[forum.topic:FORUMTOPICID:some text]</tt> - links to an AniDB external forum topic


All of these can be added manually to any pm, review or comment and will be parsed accordingly, the RTE will also provide buttons and usually keyboard shortcuts to apply the above format.
All of these can be added manually to any pm, review or comment and will be parsed accordingly, the RTE will also provide buttons and usually keyboard shortcuts to apply the above format.
1,633

edits

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