Wiki Web Service: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
(move stuff to correct place (Imported from MoinMoin))
(small update (Imported from MoinMoin))
Line 1: Line 1:
The WikiWebService is a component of the planned [[WikiDocs]]. This component will display pages from the [[MusicBrainz Wiki|MusicBrainzWiki]] as uneditable webpages within the normal header, footer, menubar etc. of the [[MusicBrainz]] website.
The WikiWebService is a component of the planned [[WikiDocs]]. It is the mechanism that transcludes a [[Wiki Page|WikiPage]] to the [[Web Site|WebSite]]. Itdisplays pages from the [[MusicBrainz Wiki|MusicBrainzWiki]] as uneditable webpages within the normal header, footer, menubar etc. of the [[MusicBrainz]] website.


The webservice has to check, whether the requested page is listed in the [[Moderated Revision Table|ModeratedRevisionTable]].
The webservice has to check, whether the requested page is listed in the [[Wiki Transclusion Table|WikiTransclusionTable]].
* If it is, it pulls the last moderated revision from the [[MusicBrainz Wiki|MusicBrainzWiki]] and serves that inside a <code><nowiki><div class="WikiDocsContent"></nowiki></code>.
* If it is, it pulls the last moderated revision from the [[MusicBrainz Wiki|MusicBrainzWiki]] and serves that inside a <code><nowiki><div class="WikiDocsContent"></nowiki></code>.
* If it is not, it pulls the current revision of the page and serves that inside a <code><nowiki><div class="WikiContent"></nowiki></code>.
* If it is not, it pulls the current revision of the page and serves that inside a <code><nowiki><div class="WikiContent"></nowiki></code>.


Additionally the webservice has to do a lot of [[WikiDocs Conversion|WikiDocsConversion]] stuff. Since that is quite complex, we will have to make very judicious usage of caching.
Additionally the webservice has to do a lot of [[WikiDocs Conversion|WikiDocsConversion]] stuff. Since that is quite complex, we will have to make very judicious usage of caching.

----



==Old /wd/ Mechanism==
==Old /wd/ Mechanism==
Line 21: Line 25:
* The url should be changed so something more meaningful, since most mb urls will have that form. I suggest [http://www.musicbrainz.org/doc/AboutMusicBrainz http://www.musicbrainz.org/doc/AboutMusicBrainz] .
* The url should be changed so something more meaningful, since most mb urls will have that form. I suggest [http://www.musicbrainz.org/doc/AboutMusicBrainz http://www.musicbrainz.org/doc/AboutMusicBrainz] .
* The webservice must perform the full set fo [[WikiDocs Conversion|WikiDocsConversion]]<code><nowiki></nowiki></code>s.
* The webservice must perform the full set fo [[WikiDocs Conversion|WikiDocsConversion]]<code><nowiki></nowiki></code>s.

----[[Cateogry Wiki|CateogryWiki]]


[[Category:To Be Reviewed]] [[Category:Development]]
[[Category:To Be Reviewed]] [[Category:Development]]

Revision as of 13:32, 7 March 2006

The WikiWebService is a component of the planned WikiDocs. It is the mechanism that transcludes a WikiPage to the WebSite. Itdisplays pages from the MusicBrainzWiki as uneditable webpages within the normal header, footer, menubar etc. of the MusicBrainz website.

The webservice has to check, whether the requested page is listed in the WikiTransclusionTable.

  • If it is, it pulls the last moderated revision from the MusicBrainzWiki and serves that inside a <div class="WikiDocsContent">.
  • If it is not, it pulls the current revision of the page and serves that inside a <div class="WikiContent">.

Additionally the webservice has to do a lot of WikiDocsConversion stuff. Since that is quite complex, we will have to make very judicious usage of caching.



Old /wd/ Mechanism

MatthiasFriedrich explained me how the content of a MoinMoin wiki page is displayed on the MusicBrainz MainSite:

New /doc/ Meachnism


CateogryWiki