Goal Statement: while I don't want to recreate Zotero in Confluence, I'm hoping we can have a method of entering the resources that has no more overhead than entering and formatting them as standard Confluence links (and might even save time), while also ensuring the wiki page output has a machine-readable structure for future usage. A macro will hopefully provide us with greater (or at least equivalent) ease of use to simply entering links while providing some future-proofing against anticipated future desires.
I (Alan Harnum) have experimentally made a custom macro (Fluid Wiki Resource) for this Confluence wiki that can be used to enter resources.
I believe there's two main advantages to using a macro for this:
- Helps ensure we have consistent information captured and displayed about resources (we can have both required and optional fields, and write templates for outputting the information for each resource; if we update the template, the markup of each outputted resource will automatically update)
- We'll more be easily able to parse and extract resources from the wiki using automated tools (this will help with getting them into Zotero or writing code to automatically generate resource lists in other contexts)
The easiest way to use the macro when entering content on a page is to type a { (left curly brace), which in the standard Confluence editor will open a "Macro suggestions" dropdown - you can then continue typing {reso or similar to find and insert the macro. This will display a similar interface to the one used to create a standard link, but with some further optional fields available (creator and description).
There are examples of using the macro below (and a screenshot). Please provide feedback to Alan Harnum on any aspect of this - the output template is very basic right now but can be easily customized to output different markup for each resource, or we can have other optional fields, etc.