We want to create a user macro that generates a formatted table in a page (Confluence 4), but again we're struggling with the syntax.
The code below inserts a table, but you cannot edit it
## @noparams <table> <tr> <th>Parameter</th> <th>Description</th> </tr> <tr> <td></td> <td></td> </tr> </table>
We've selected no macro body.
The documentation doesn't explain how to do this.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get to here and then I'm stuck
## @param Head1:type=string|desc=Heading ## @param Head2:type=string|desc=Heading ## @param Cell1:type=string|desc=cell ## @param Cell2:type=string|desc=cell <div id="preformattedtable"> <table> <tr> <th>$paramHead1</th> <th>$paramHead2</th> </tr> <tr> <td>$paramCell1</td> <td>$paramCell2</td> </tr> </table> </div>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is correct?
## @param Head1:type=string|desc=Heading ## @param Head2:type=string|desc=Heading ## @param Cell1:type=string|desc=cell ## @param Cell2:type=string|desc=cell #set ($paramHead1 ="Parameter") #set ($paramHead2 ="Description") <div id="preformattedtable"> <table> <tr> <th>$paramHead1</th> <th>$paramHead2</th> </tr> <tr> <td>$paramCell1</td> <td>$paramCell2</td> </tr> </table> </div>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
## @noparams
<ac:macro ac:name="unmigrated-wiki-markup">
<ac:plain-text-body><![CDATA[|| Test Name|| Pass/Fail||
|$body | $body|
]]></ac:plain-text-body></ac:macro>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've also tried
## @noparams <ac:macro ac:name="unmigrated-wiki-markup"><ac:plain-text-body><![CDATA[|| Test Name|| Pass/Fail|| |$body | $body| ]]></ac:plain-text-body></ac:macro>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.