This user macro creates a 2 x 2 table, with the headings defined as 'Parameter' and 'Description'. It will create a table that looks like this:

パラメーター説明
  

Note: As the macro is written, the user cannot amend the heading titles when using the macro on a Confluence page.

(warning) The information on this page does not apply to Confluence OnDemand.

Defining the 'Formatted Table' user macro

  1. Choose the cog icon  at top right of the screen, then choose Confluence Admin.
  2. Choose User Macros in the left-hand panel.
  3. Choose Create a User Macro at the bottom of the list of macros.
  4. Enter the macro attributes as follows:
    • Macro Name: formtable
    • Visibility: Visible to all users in the Macro Browser
    • Macro Title: Formatted Table
    • Description:  Creates a simple 2 x 2 table with the column headings filled in

    • Categories: Formatting
    • Icon URL: You can leave this field empty.
    • Documentation URL: You can leave this field empty.
    • Macro Body Processing: Escaped
    • Template:

      ## @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>
  5. [保存] を選択します。

Using the macro on a Confluence page

To add the macro to a page: 

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the 'Formatted Table' macro.

  3. Enter the cell contents into the form.
  4. [挿入] を選択します。

Amending the contents of the table

To change the content in the cells of the table:

  1. ページを編集します。
  2. Click the macro placeholder for the 'Formatted Table' macro, to see the properties panel.
  3. 編集を選択する。
  4. Enter the cell contents into the form.
  5. 保存を選択する

Note: Content entered into the body of the 'Formatted Table' macro will not appear on the page.

 

  • ラベルなし