Has anyone come up with a simple template or macro that would enable easy addition of CRC cards? essentially I want a small panel/tabel/box divided inoto three sections like this:
I made this one using table and merged the top row. But since I am going to be making dozens or hundreds of these, I just want to be able to cut& paste or use a macro to insert them. Unfortunately, there is a bug with the cut&paste so that pasted tables look like this:
where the top row gets truncated down to a single column. This isn't terrible, but it's annoying (especially with long class names, which stretch the first column way out). Any suggestions for a workaround?
Following is a user macro code that I tried for this example. You can following the steps below to recreate this macro:
Confluence Admin Panel > User Macros > Create a User Macro
## @param classname:type=string|desc=Class Name ## @param responsibility:type=string|desc=Responsibility Title ## @param R1:type=string|desc=Responsibility One ## @param R2:type=string|desc=Responsibility Two ## @param collaborate:type=string|desc=Collaborate Title ## @param C1:type=string|desc=Collaborate One ## @param C2:type=string|desc=Collaborate Two #set ($paramHead1 ="CLASS NAME") <div id="preformattedtable"> <table> <tbody> <tr> <th colspan="2">$!paramclassname</th></tr> <tr> <td colspan="1"> <p>$!paramresponsibility</p> <ul><li>$!paramR1</li> <li>$!paramR2</li></ul></td> <td colspan="1"> <p>$!paramcollaborate</p> <ul> <li>$!paramC1</li> <li>$!paramC2</li></ul></td></tr></tbody></table> </div>
I would like to recommend you to take a look at Writing User Macro Template documentation.
Let me know if you have any other questions,
The other disadvantage with this approach is that I can't view the table in Page-Edit mode. It just looks like this:
I either have to preview the page or open the macro edit pane to actually see the table.
So I'm not sure that this is really a solution that will fit my needs. But again, I really appreciate the time you took to help me. And at least you have demonstrated the usefulness of User Macros which could come in really handy someday!
You are most welcome. Wish I could help more.
As you said " I just want to be able to cut& paste or use a macro to insert them." I thought that it's your predefined format. Maybe other people can modify this based on your need.
Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events