CitationBox Macro

Last modified by Thomas Mortagne on 2023/10/10 15:59

cogStyled citation box with XWiki content inside
TypeXAR
Category
Developed by

Dmitry Bakbardin

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

Inserts into text styled Citation Box.

Example Usage:

{{cbox name="Plato" title="Greek author & philosopher in Athens (427 BC - 347 BC)" ruler="yes"}}
Death is not the **worst** that can happen to men.
{{/cbox}}

Note, that you can use \\ or carriage return inside citation to put line break in a desired place.

Result:

CitationBoxMacroResult1.png

Parameters:

NameMandatoryDefault ValueDescription
nameNoNone A name of person citation belongs to. (Eg. 'Heraclitus')
titleNoNone A title of person citation belongs to. (Eg. 'Ancient philosopher')
alignNoright Box align. Options: left, right.
widthNo45% Width of the box. Any css width specification  (Eg. 75% or 300px )
colorNoNoneBackground color of the box. Any css color specification (Eg. red)
shadowNoyes An optional shadow of the citation box. Options: yes, no
textflowNono Text flow around the citation box. Options: yes, no
rulerNono Horizontal line between citation and Authors name. Options: yes, no

CitationBox Macro was inspired by MBox Macro

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

In addition:

  • Check instructions in Macro.CitationBox in your wiki
  • Have fun :-)

Release Notes

v1.1

Support of native XWiki syntax for line break added

Get Connected