Reference

Buttons

addButton - add a button to the bar at the top of the wiki
hideButton - hide a button on the bar
renameButton - rename an existing button on the bar
redirectButton - redirect an existing button to a different URL

Controls

collapsibleToc - Turn an ordered list into a collapsible tree structure
hideFooter - Create an show/hide toggle for the 3-panel PBwiki footer
installToggle - Installs toggle handlers given a control element and the element to be toggled
pageToc - Include <toc>'s from the page in the sidebar
renameSidebar - Rename V1 sidebar or V2 sidebar tabs
toggleToc - add a show/hide toggle to all <toc>'s
showCrumbs - Display "bread crumbs" at the top of each page

Header

replaceWikiName - Replace the Wiki name with text
replacePageName - Replace the page name with text
replaceDivider - Replace | with something else
replaceAllText - Replace all text with one string
replaceWithBanner - Replace Wiki name with a banner
shortenLongName - Shorten page names automatically
changeHTML - Change entire header section with HTML

Informational

getPageName - Strips a URL to get the wiki page name
inSB - returns true/false for whether an element is in the sidebar
listLinks - opens a window that categorizes all links on a page
loggedIn - return whether a user is logged in
pageCount - outputs the page count
showFiles - opens a window listing all files and HTML code to insert them into your wiki

Miscellaneous

autoLogin - Use the ID from the magic URL to automatically login everyone
includePage - insert the contents of one page in another
onDocLoad - call handler on document load but before dependents (images)

Programmer Stuff

getElementsByClassNames - return an array of elements based on a list of class names
getElementsByTagNames - return an array of elements based on a list of tags
getElemPos - return the position of an element
getXmlHttpObject - return a cross-browser compatible XMLHttpRequest object
installToggle - quickly create hide/show functionality for an element
winSize - return the size of the viewing window

Variables

pageName - the name of the current page (based on URL)
wikiName - the name of the wiki (based on URL)
wikiRoot - the root directory of the wiki (i.e "widget.pbwiki.com") (based on URL)
url - the current url


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts