Sandbox: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
(Reset)
Line 1: Line 1:
<div id="mainpage">
This page is purely for testing


<div style="font-size:75%; border:none; margin:0; padding:0; color:#000; font-style: italic;">Sure the monkey can do it! Our monkey loves the music!</div>
[[Image:WMP11_m.jpg|center|thumb|150px|Thumb test]]
 
<!--------------------------------Banner across top of page------------------------------>
{| style="width:100%; background:#fcfcfc; margin-top:+.9em; padding:0; margin:0; border:1px solid #ccc;"
|style="width:56%; color:#000"|
 
{| style="width:400px; border:solid 0px; background:none;"|style="width:325px; text-align:center; whte-space:nowrap; color:#000;"
|<div style="font-size:200%; border:none; margin:0; padding:0; color:#000;">[[Image:Monkey-Head-65px.png]]&nbsp;&nbsp;MediaMonkey wiki</div>
|}
 
|style="width:11%; font-size:95%; color:#000;"|
* Music Manager
* Player
* Tagger
|style="width:11%; font-size:95%;"|
* Renamer
* Converter
* Portable Devices
|style="width:11%; font-size:95%;" class="plainlinks"|
* CD/DVD Ripper
* CD/DVD Burner
* [http://www.mediamonkey.com/product.htm All&nbsp;features...]
|}<!--
 
 
<!------------Strapline immediately below banner---------->
{|style="width:100%; background:none; margin:-.8em 0 -.7em 0;" class="plainlinks"
|style="font-size:95%; padding:10px 0; margin:0px; text-align:left; white-space:nowrap; color:#000;"|
[[MediaMonkey Help|Help overview]]:&nbsp;[http://www.mediamonkey.com/sw/webhelp/frame/index.html Online Help]&nbsp;'''·''' [http://mediamonkey.com/faq/ Frequently Asked Questions (FAQ)]&nbsp;'''·''' [http://www.mediamonkey.com/forum/ Forum]&nbsp;'''·''' [mailto:support@mediamonkey.com Contact]
|style="font-size:95%; padding:10px 0; margin:0px; text-align: right; white-space:nowrap; color:#000;"| [[Special:Statistics|{{NUMBEROFARTICLES}}]] articles&nbsp;'''·''' [[Special:Allpages|Article Index]]
|}<!--
 
 
<!-----------------------Users------------------------>
{|style="border-spacing:8px; margin:0px -8px;"
|class="MainPageBG" style="width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;"|
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#f5fffa;"
! <h2 style="margin:0; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;">Users</h2>
|-
|style="color:#000;"|
* [[About MediaMonkey]]
* [[Introduction For New Users]]
* [[Introduction To Scripts]]
* [[Introduction To Plugins]]
* [[Tips & Tricks]]
* [[User pages]]
|}<!--
 
<!------------------------------Developers------------------------------->
|class="MainPageBG" style="width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top"|
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#f5faff;"
! <h2 style="margin:0; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Developers</h2>
|-
|style="color:#000;"|
* [[Scripting]]
* [[Skinning]]
* [[Localizations]]
* [[Plug-ins]]
* [[Installation Packages]]
* [[Sandbox|Wiki Sandbox]] - for testing wiki syntax, etc.
|}
|}
 
 
</div>
 
[[MMWiki Introduction|Introduction to MediaMonkey Wiki]]
 
__NOTOC__  __NOEDITSECTION__
 
 
 
'''This page is purely for testing'''


==[[Main Page]]==
==[[Main Page]]==

Revision as of 20:54, 15 October 2007

This page is purely for testing

Thumb test

Main Page

Main Page

Main Page

Main Page

Main Page

Name Type Description


// Hello World in Microsoft C# ("C-Sharp").

using System;

class HelloWorld
{
    public static int Main(String[] args)
    {
        Console.WriteLine("Hello, World!");
        return 0;
    }
}
' A simple script that swaps the content of Title and Artist fields of selected tracks

Sub SwapArtistTitle
  ' Define variables
  Dim list, itm, i, tmp

  ' Get list of selected tracks from MediaMonkey
  Set list = SDB.CurrentSongList 

  ' Process all selected tracks
  For i=0 To list.count-1
    Set itm = list.Item(i)

    ' Swap the fields
    tmp = itm.Title
    itm.Title = itm.ArtistName
    If itm.AlbumArtistName = itm.ArtistName Then     ' Modify Album Artist as well if is the same as Artist
      itm.AlbumArtistName = tmp
    End If
    itm.ArtistName = tmp
  Next

  ' Write all back to DB and update tags
  list.UpdateAll
End Sub