/* Copyright 2009 Fog Creek Software, Inc. */ using System; using System.Collections.Generic; using System.Text; using System.Web; /* FogBugz namespaces-- make sure you add the neccesary assembly references to * the following DLL files contained in C:\Program Files\FogBugz\Website\bin\ * FogBugz.dll, FogCreek.Plugins.dll, FogCreek.Plugins.InterfaceEvents.dll */ using FogCreek.FogBugz.Plugins; using FogCreek.FogBugz.Plugins.Api; using FogCreek.FogBugz.Plugins.Entity; using FogCreek.FogBugz.Plugins.Interfaces; using FogCreek.FogBugz; using FogCreek.FogBugz.UI; namespace IPluginWikiPageInfoDisplay_Example { /* Class Declaration: Inherit from Plugin, expose IPluginWikiPageInfoDisplay */ public class IPluginWikiPageInfoDisplay_Example : Plugin, IPluginWikiPageInfoDisplay { /* Constructor: We'll just initialize the inherited Plugin class, which * takes the passed instance of CPluginApi and sets its "api" member variable. */ public IPluginWikiPageInfoDisplay_Example(CPluginApi api) : base(api) { } #region IPluginWikiPageInfoDisplay Members public CWikiPageInfoBlock[] WikiPageInfoDisplay(CWikiPage page) { CWikiPageInfoBlock wikiblockWide = new CWikiPageInfoBlock("Raw HTML", string.Format(@"
Last Viewed: {0}
URL of Page: {1}