The button could be added directly in topics, but it makes more sense to add it to a header topic that is included by application topics.
Example header topic of a knowledge base application:
Knowledge Base Card
The sky is falling
The print button works, go ahead and try it out! The edit tab does not save data - this is just a print demo.
The HTML for the print button looks like this:
The <div> tag is used to float the button to the right.
The class="commentPlugin is added so that the print button does not show up in the printout. TWiki's print skin hides the comment box. If you install PatternSkin 2014-05-15 or later you can specify class="hideInPrint instead.
The <a> tag, an HTML anchor, has the following parameters:
class and style - to give the anchor link a TWiki button look.
Note: Newlines are added in the <a> tag for clarity, they must be removed if used in TWiki topics!
I hope this small feature comes in handy for your next TWiki application project.