Difference between revisions of "Display formatting"

From Gramps
Jump to: navigation, search
Line 1: Line 1:
== Display formatting ==
 
 
 
Many of the graphical reports allow you to customize the information on the display. Variable substitutions are used to substitute personal or marriage information for a particular symbol.
 
Many of the graphical reports allow you to customize the information on the display. Variable substitutions are used to substitute personal or marriage information for a particular symbol.
  
Line 50: Line 48:
 
| - (only at the start of a line.  See below)
 
| - (only at the start of a line.  See below)
 
|}
 
|}
 +
  
 
=== Conditional printing ===
 
=== Conditional printing ===
'{' and '}' have been added to help define what prints.  It is based on these rules:
+
'{' and '}' have been added to help define what prints on a line and '-' at the start of a line defines if the line prints at allThese two are based on these rules:
 
{| cellpadding="2" cellspacing="0" border="1"
 
{| cellpadding="2" cellspacing="0" border="1"
 
|-
 
|-
Line 60: Line 59:
 
|variables inside and none have information in the database.
 
|variables inside and none have information in the database.
 
ie. '{d. $d $D}' when the person is alive
 
ie. '{d. $d $D}' when the person is alive
|Nothing prints inside
+
|prints Nothing
 
|-
 
|-
 
|variables inside and at least one has information in the database.
 
|variables inside and at least one has information in the database.
|everything prints
+
ie. '{b. $b $B}' and the date is known
 +
|prints everything
 +
|-
 +
| - (at the start of a line)
 +
when none of the variables have information to print
 +
|Line is removed from the display
 +
| - (at the start of a line)
 +
when at least one has information in the database.
 +
|Line is printed
 
|}
 
|}

Revision as of 01:41, 18 February 2010

Many of the graphical reports allow you to customize the information on the display. Variable substitutions are used to substitute personal or marriage information for a particular symbol.

$n Displays the person's name in the form of FirstName LastName
$N Displays the person's name in the form of LastName, FirstName
$i Displays the GRAMPS ID associated with the person.
$b Displays the person's date of birth
$B Displays the person's place of birth
$d Displays the person's date of death
$D Displays the person's place of death
*s Displays the name of the person's spouse in the form of FirstName LastName
$S Displays the name of the person's spouse in the form of LastName, FirstName.
$m Displays the marriage date of the person and the spouse.
$M Displays the place associated with the marriage of the person and the spouse.
$$ $
}} }
{{ {
-- - (only at the start of a line. See below)


Conditional printing

'{' and '}' have been added to help define what prints on a line and '-' at the start of a line defines if the line prints at all. These two are based on these rules:

no variables within closing prints everything.
variables inside and none have information in the database.

ie. '{d. $d $D}' when the person is alive

prints Nothing
variables inside and at least one has information in the database.

ie. '{b. $b $B}' and the date is known

prints everything
- (at the start of a line)

when none of the variables have information to print

Line is removed from the display - (at the start of a line)

when at least one has information in the database.

Line is printed