Wiki Markup Guide - Macros

This page provides a guide for adding macros to a wiki page. We provide wiki support in three separate locations:
  1. a project's "Home" wiki,
  2. a project's "Downloads" wiki, and
  3. the "Personal Statement" wiki in a user profile page.
The "Home" wiki is fully supported, while the "Downloads" and "Personal Statement" wikis have limited support. View wiki support comparison guide

Wiki Guides

Index

Syntax Highlighted Code Snippet

Allows for a code snippet to be styled according to the language specified.
Source Markup
{code:c#}
using System;
public class HelloWorld
{
   public static void Main(params string[] args)
   {
   Console.WriteLine("Hello World!");
   }
}
{code:c#}

Rendered Markup
using System;
public class HelloWorld
{
   public static void Main(params string[] args)
   {
   Console.WriteLine("Hello World!");
   }
}
Syntax Highlighting Supported Languages
Using {code:language} as shown above.

Language Notes
aspx c# Use for code snippets from .aspx, .ascx, .asax, .asmx, .master, and .skin files that have embedded C# code
aspx vb.net Use for code snippets from .aspx, .ascx, .asax, .asmx, .master, and .skin files that have embedded VB.NET code
ashx Use for code snippets from .ashx files
c# Use for C# code snippets
c++ Use for C++ code snippets
vb.net Use for VB.NET code snippets
html Use for HTML code snippets
sql Use for SQL code snippets
java Use for Java code snippets
javascript Use for JavaScript code snippets
xml Use for snippets from .xml, .config, .dbml, and .xsd files
php Use for PHP code snippets
css Use for CSS code snippets
powershell Use for Powershell code snippets
markdown Use for Markdown code snippets
haskell Use for Haskell code snippets
koka Use for Koka code snippets


If you would like to see an additional language added to this list, please create an issue in our IssueTracker.

Rss Macro

The rss macro allows for the importing of external rss feeds into your wiki page.
Required Parameters
Name Description Range
url absolute url to rss feed n/a

Optional Parameters
Name Description Range Default
max maximum number of posts to display up to 20 0-20 20
titlesOnly show only the date and title of each post true/false false

Source Markup
{rss:url=http://blogs.msdn.com/jamesnewkirk/rss.xml,max=1,titlesOnly=false}
Rendered Markup
 James Newkirk's Blog News Feed 
Sunday, June 29, 2008  |  From James Newkirk's Blog

I just posted a the presentation and sample code from the Lessons Learned in Programmer Testing sessions that I did at a few conferences this summer. Click here for the details.

 James Newkirk's Blog News Feed 

Project Macro

The project macro allows you to insert project specific information into your wiki page
Required Parameters
Name Description Range
field an unnamed parameter specifying the project field to display description

Source Markup
{project:description}
Rendered Markup
This area is used for providing information and discussions about the CodePlex website.

Video Macro

The video macro allows you to insert video media into your wiki page
Required Parameters
Name Description Range
url absolute url to video media n/a
type media type of the video flash/quicktime/real/windows/youtube/channel9/vimeo

Optional Parameters
Name Description Range Default
align alignment of the video left/center/right center
height height of the video px/pt/pc/in/mm/cm/%/em/ex 285px
width width of the video px/pt/pc/in/mm/cm/%/em/ex 320px

Source Markup
{video:url=mms://wm.microsoft.com/ms/msnse/0607/28366/CodePlexTeam_Final_MBR.wmv,type=windows}
Rendered Markup

Silverlight Macro

The Silverlight macro allows you to insert Silverlight applications into your wiki page
Required Parameters
Name Description Range
url absolute url to xap file n/a

Optional Parameters
Name Description Range Default
height the height of the Silverlight object number 200
width the width of the Silverlight object number 200
version the version of Silverlight to use 2/3/4/5 5
gpuAcceleration enables gpu acceleration for Silverlight > 2 true/false false

Initialization Parameters
If your Silverlight object requires initParams to be set, you can add arbitrary key/value pairs to the markup. They will be combined and rendered correctly at runtime.
Source Markup
{silverlight:url=http://silverlight.microsoft.com/Assets/ToolkitBanner.xapp,height=285,width=880}
Rendered Markup

You need to install Microsoft Silverlight to view this content. Get Silverlight!
Get Microsoft Silverlight

Last edited May 22 at 11:06 PM by pranavgk, version 24

Comments

NATIVE Apr 4 at 8:00 AM 
We are the future!

NATIVE Apr 4 at 7:59 AM 
Hello my friends, my name is August Craft.

http://www.native-earthling.org

The future has arrived!

plan5878 Mar 15, 2012 at 7:08 PM 
True Lol I'm still in school of nivida still in need of help I Just Created Plan Man In Hopes To Turn Him into a icon

StatusUnknown Feb 26, 2011 at 9:59 PM 
If your silverlight control isn't working, then it's probably a problem with your host or the xap's Mainfest, see here:
http://timheuer.com/blog/archive/2010/06/10/troubleshooting-debugging-silverlight-cross-domain-xap-hosting.aspx
For me, it was a matter of adding the .htaccess. Works like a charm :-)

TimmyG Dec 8, 2010 at 12:29 AM 
I would love a way to enable GPU acceleration. Any plans to support this? It seems like it would be extremely simple to add the wikimarkup spec.

bykinag Aug 24, 2010 at 4:43 PM 
"Silverlight Macro" is not working at http://gsm4sl.codeplex.com/

AdeMiller Apr 2, 2010 at 11:01 PM 
You already have the equivalent of {project:discussions} because discussions have their own RSS feed so you can include them that way.

CoderForRent Oct 15, 2009 at 3:10 AM 
Thanks for fixing the silverlight plugin! :)

JohanDanforth Oct 12, 2009 at 3:10 PM 
Is it possible to upload a video on codeplex itself and show it in the wiki? I have nowhere else to host it.

CoderForRent May 19, 2009 at 3:40 PM 
Yeah, silverlight plugin isn't working at all for me either.

SteveGuidi Mar 13, 2009 at 4:36 AM 
@EisenbergEffect: If any line contains no characters, it will be removed. To workaround the issue, put a space character on the "empty" line.

RoadWarrior Feb 3, 2009 at 12:36 PM 
Silverlight macro seems to get stuck loading at 100% mark. It just stays there at 100, and the app doesn't display.

Madmanwoo Jan 11, 2009 at 11:45 PM 
@dot NET Junkie: I have found you can get around this bug by using /// for comments.

magicben Oct 28, 2008 at 2:43 PM 
is there a "last release" tag ? like {project:last_release_details} or anything like this ?

EisenbergEffect Oct 18, 2008 at 9:39 PM 
Not only is an additional break added after each comment, but my intentionally added breaks are removed!

dot_NET_Junkie Sep 20, 2008 at 12:28 PM 
There is a bug in the code macro. An extra break is rendered after each comment. I hope you can fix this. Thanks.

{code:c#}
public static void Main()
{
// this is a comment
Console.WriteLine("Hello World!");
}
{code:c#}

SethMorris Aug 21, 2008 at 8:17 PM 
Is it not possible to interleave rss feeds? If you put two on a page one is shown in its entirety before the next, even if their posts would interleave.

Also, if you search for "add feed" you find nothing but descriptions of using the feed tab, which was removed over 18 months ago.

dvescovi Mar 4, 2008 at 2:29 AM 
It would be nice if the the ,wmv would not start automaticly. It stinks if you have more then one link on a page.

comun Dec 24, 2007 at 12:29 AM 
How to add a new wiki to project?(Not home page)

kazcor Jul 5, 2007 at 10:25 AM 
Maybe another parameter for the rss macro to support timed updates of the news feed? I´ve done some changes on a newsfeed, but it seems like the updating interval is set to more than one hour by default?

rstuven Jun 18, 2007 at 4:16 PM 
Please, vote for "Table Of Contents" macro:
http://www.codeplex.com/CodePlex/WorkItem/View.aspx?WorkItemId=11170

justinc Jun 12, 2007 at 2:26 PM 
and {project:logo}

TheRay Mar 15, 2007 at 5:18 PM 
I second the suggestion for {project:name} by heaths. I think it would also be handy to have {project:releases}, {project:discussions}, {project:issuetracker}, {project:people}, and {project:license}.

heaths Mar 14, 2007 at 5:45 PM 
How about a macro like {project:name} so the value is updated if we change the project name later?