Link Wikipedia And MusicBrainz: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
((Imported from MoinMoin))
((Imported from MoinMoin))
Line 28: Line 28:
</ul>
</ul>


to link to the Musicbrainz wiki, where the ALLCAPSWORDS are arguments.
to link to the Musicbrainz wiki. (''ALLCAPSWORDS are arguments, obviously'')


===Linking from the German Wikipedia to MusicBrainz===
===Linking from the German Wikipedia to MusicBrainz===


Unfortunatly the German Wikipedia changed its template and currently only artists can be linked and only with the Row ID. Don't ask why, its simply stupid. You can help discussing about this at [http://de.wikipedia.org/wiki/Vorlage_Diskussion:Musicbrainz http://de.wikipedia.org/wiki/Vorlage_Diskussion:Musicbrainz]. So if you want to link to a [[MusicBrainz]] artist page in Wikipedia use the following code in the article:
Unfortunatly the German Wikipedia changed its template and currently only artists can be linked and only with the Row ID. Don't ask why, its simply stupid. You can help discussing about this at [http://de.wikipedia.org/wiki/Vorlage_Diskussion:Musicbrainz http://de.wikipedia.org/wiki/Vorlage_Diskussion:Musicbrainz].


So if you want to link to a [[MusicBrainz]] page in Wikipedia use one of the following codes in the article:
<pre> {{musicbrainz|ROWID}}
* <code><nowiki>{{MusicBrainz künstler|id=</nowiki></code>'''ROWID'''<code><nowiki>|name=NAMEOFARTIST</nowiki></code>}} ([http://de.wikipedia.org/wiki/Vorlage:Musicbrainz_k%C3%BCnstler link]),
</pre>
<ul><li style="list-style-type:none">''prefered to use''

</ul>
See [http://de.wikipedia.org/wiki/ABBA#Weblinks http://de.wikipedia.org/wiki/ABBA#Weblinks] for an example.
* <code><nowiki>{{MusicBrainz|</nowiki></code>'''ROWID'''<code><nowiki></nowiki></code>}} ([http://de.wikipedia.org/wiki/Vorlage:Musicbrainz link])

<ul><li style="list-style-type:none">''only for artists; for uniformity I suggest using the previous one
A list of each article using this template is available [http://de.wikipedia.org/w/wiki.phtml?title=Spezial:Whatlinkshere&target=Vorlage%3AMusicbrainz here].
</ul>

* <code><nowiki>{{Musicbrainz album|id=</nowiki></code>'''ROWID'''<code><nowiki>|name=NAMEOFALBUM</nowiki></code>}}} ([http://de.wikipedia.org/wiki/Vorlage:Musicbrainz_album link])
You can export each article with [[Media Wiki|MediaWiki]]'s XML-export function and parse the template link to get the coresponding [[MusicBrainz]] ID.
<ul><li style="list-style-type:none">''link to the earliest release''

</ul>
==Discussion==

Is it ok to use this icon: [[Image:Musicbrainz.png]] under GFDL?


You can export each article with [[Media Wiki|MediaWiki]]'s XML-export function and parse the template link to get the coresponding [[MusicBrainz]] ROWID.
[[Category:To Be Reviewed]] [[Category:Documentation]] [[Category:External]]
[[Category:To Be Reviewed]] [[Category:Documentation]] [[Category:External]]

Revision as of 15:17, 26 October 2005

Linking Wikipedia and MusicBrainz together

Wikipedia is an online encyclopedia Wiki in multiple languages that is licensed under the GNU Free Documentation License. It contains many articles on bands and other artists. This is a short draft describing the possible collaboration between MusicBrainz and Wikipedia.

Linking from MusicBrainz to Wikipedia

You can use the WikipediaRelationshipType to add an AdvancedRelationship (AR) between an artist or album and their Wikipedia url.

Linking from Wikipedia to MusicBrainz

Linking from the English Wikipedia to MusicBrainz

At the English Wikipedia, use the templates

  • {{Musicbrainz artist|id=PERMALINKCODE|name=NAMEOFARTIST}} (link),
  • {{Musicbrainz album|id=PERMALINKCODE|name=NAMEOFALBUM}} (link),
  • link to the earliest release
  • {{Musicbrainz track|id=PERMALINKCODE|name=NAMEOFARTIST}} (link),
  • link to the earliest release

to link to MusicBrainz objects, and

  • {{Musicbrainz wiki|PAGENAME}} (link),
  • good for the references/external links section
  • [[MusicBrainz:PAGENAME]],
  • better to use in the middle of a sentence

to link to the Musicbrainz wiki. (ALLCAPSWORDS are arguments, obviously)

Linking from the German Wikipedia to MusicBrainz

Unfortunatly the German Wikipedia changed its template and currently only artists can be linked and only with the Row ID. Don't ask why, its simply stupid. You can help discussing about this at http://de.wikipedia.org/wiki/Vorlage_Diskussion:Musicbrainz.

So if you want to link to a MusicBrainz page in Wikipedia use one of the following codes in the article:

  • {{MusicBrainz künstler|id=ROWID|name=NAMEOFARTIST}} (link),
  • prefered to use
  • {{MusicBrainz|ROWID}} (link)
  • only for artists; for uniformity I suggest using the previous one
  • {{Musicbrainz album|id=ROWID|name=NAMEOFALBUM}}} (link)
  • link to the earliest release

You can export each article with MediaWiki's XML-export function and parse the template link to get the coresponding MusicBrainz ROWID.