{fulltopicname, displayname, tip |
.
Image(federation.LinkMaker.LinkToImage("images/go_gurps.gif"), displayname, federation.LinkMaker.LinkToTopic(fulltopicname)),
.
Link(federation.LinkMaker.LinkToTopic(fulltopicname), displayname, tip),
.This function prints the top border banner image, according to the current namespace.
.
federation.LinkMaker.LinkToImage(["images/", aTopic.Namespace.Name, "/wiki_banner.jpg"].ToOneString)
.Left menu parts
.These functions here are bits that, combined together, make up the left menu.
.Search function
.This displays a search box linked to the search engine of FlexWiki.
.
federation.LinkMaker.LinkToImage("images/menu_search.gif"),
.
Presentations.FormStart(federation.LinkMaker.LinkToSearchNamespace(aTopic.Namespace.Name), "get"),
.
Presentations.HiddenField("namespace", aTopic.Namespace.Name),
.
Presentations.InputField("search", "", 15),
.
Presentations.ImageButton("goButton", federation.LinkMaker.LinkToImage("images/go-dark.gif"), "Search for this text"),
.
Presentations.FormEnd(),
.Here are the basic commands for the Wiki: show changes, edit the topic, etc.
.
federation.LinkMaker.LinkToImage("images/menu_02.gif"), Newline,
.
request.AreDifferencesShown.IfTrue
.
MenuItem("Don't highlight differences between this topic and previous version", "Hide Changes", federation.LinkMaker.LinkToTopic(aTopic.Fullname))
.
IfFalse
.
MenuItem("Show differences between this topic and previous version", "Show Changes", federation.LinkMaker.LinkToTopicWithDiffs(aTopic.Fullname))
.
aTopic.Version.IfNull
.
MenuItem("Edit this topic", "Edit", federation.LinkMaker.LinkToEditTopic(aTopic.Fullname))
.
MenuItem("Show printable view of this topic", "Print", federation.LinkMaker.LinkToPrintView(aTopic.Fullname)),
.
MenuItem("Show recently changed topics", "Recent Changes", federation.LinkMaker.LinkToRecentChanges(aTopic.Namespace.Name)),
.
MenuItem("Show RRS feeds to keep up-to-date", "Subscriptions", federation.LinkMaker.LinkToSubscriptions(aTopic.Namespace.Name)),
.
MenuItem("Show disconnected topics", "Lost and Found", federation.LinkMaker.LinkToLostAndFound(aTopic.Namespace.Name)),
.
MenuItem("Find references to this topic", "Find References", federation.LinkMaker.LinkToSearchFor(null, aTopic.Name)),
.
MenuItem("Rename this topic", "Rename", federation.LinkMaker.LinkToRename(aTopic.Fullname)),
.Here are the links for the generic pages of GurpsWiki.
.
Image("/images/menu_general.gif", "Generic pages"),
.
GURPSMenuItem("GURPSWiki.FanSiteHosting", "Hosting", "Fan Site Hosting"),
.Here are the links for the community server
.
Image("/images/menu_community.gif", "Community Server"),
.
Presentations.Image(federation.LinkMaker.LinkToImage("images/go_gurps.gif"), "Forums", "http://community.gurpswiki.net/forums"),
.
Presentations.Link("http://community.gurpswiki.net/forums", "Forums", "Discussions about GURPSWiki and other related subjects"),
.
Presentations.Image(federation.LinkMaker.LinkToImage("images/go_gurps.gif"), "Blogs", "http://community.gurpswiki.net/blogs"),
.
Presentations.Link("http://community.gurpswiki.net/blogs", "Blogs", "Blogs from GURPSWiki contributors"),
.History of the current topic
.This shows the 5 latest modifications of the current topic.
.
federation.LinkMaker.LinkToImage("images/menu_history.gif"), Newline,
.
Presentations.Link(federation.LinkMaker.LinkToTopic(each.Fullname), [each.Timestamp].ToString),
.
MenuItem("List all versions of this topic", "List all versions", federation.LinkMaker.LinkToVersions(aTopic.Fullname)),
.
aTopic.Version.IfNotNull
.
Presentations.FormStart(federation.LinkMaker.LinkToRestore(aTopic.Fullname), "post"),
.
Presentations.HiddenField("RestoreTopic", aTopic.Fullname),
.
Presentations.FormEnd(),
.This displays the menu image for all the namespaces, except the current one (which should display its own menu)
.
[ "images/", aName, "/menu.gif" ].ToOneString()
.
Image("/images/menu_others.gif", "Other sections"),
.
federation.Namespaces.Select