Difference between revisions of "templm"

From GeneWeb
Jump to: navigation, search
(uppersase and aprticles = yes)
m (update from french version)
Line 2: Line 2:
 
{{languages|templm}}
 
{{languages|templm}}
 
{{toc right}}
 
{{toc right}}
 
 
 
 
'''{{git|hd/etc|templm}}''' uses specific [[configuration|configuration]] variables that must be added in {{c|/bases/base.gwf}} :
 
'''{{git|hd/etc|templm}}''' uses specific [[configuration|configuration]] variables that must be added in {{c|/bases/base.gwf}} :
  
 
<pre>
 
<pre>
 
css=1
 
css=1
 +
birth_symbol=
 +
death_symbol=
 +
datalist_fn=2
 +
datalist_sn=2
 
datalist_occu=2
 
datalist_occu=2
 
datalist_place=2
 
datalist_place=2
Line 19: Line 20:
 
misc=no
 
misc=no
 
move_comment=yes
 
move_comment=yes
 +
uppercase=no
 
particles=no
 
particles=no
 
setup_link=no
 
setup_link=no
 
setup_http=
 
setup_http=
uppercase=no
+
show_flag=
 +
static_path=
 
wide=no
 
wide=no
hideflag=
 
static_path=
 
birth_symbol=
 
death_symbol=
 
 
</pre>
 
</pre>
  
 
== Description of the variables ==
 
== Description of the variables ==
 
=== Style sheets ===
 
=== Style sheets ===
* css= : grey background ({{git|hd/etc/templm|css.css}}).
+
* {{c|1=css=}}: grey background ({{git|hd/etc/templm|css.css}}).
* css=1 : balac background ({{git|hd/etc/templm|css1.css}}).
+
* {{c|1=css=1}}: balac background ({{git|hd/etc/templm|css1.css}}).
  
=== List of professions  ===
+
=== Birth/death symbols ===
Uploads the list of professions when entering data.
+
Allow to change default symbols for births and deaths, respectively “°” and “†”, with another character.
* datalist_occu= : do nothing.
+
* {{c|1=birth_symbol=}}
* datalist_occu=1 : uploads the whole list once.
+
* {{c|1=death_symbol=}}
* datalist_occu=2 : uploads a sub-list after typing three characters.
+
  
=== Listof locations ===
+
=== AutoComplete ===
Uploads the list of locations when entering data.
+
Loads lists of preexisting data in the base when entering new data on forms.
* datalist_place= : do nothing.
+
* {{c|1=datalist_xx=}}: do nothing.
* datalist_place=1 : uploads the whole list once.
+
* {{c|1=datalist_xx=1}}: loads the whole list at once.
* datalist_place=2 : uploads a sub-list after typing three characters.
+
* {{c|1=datalist_xx=2}}: loads a sub-list after typing their characters
  
=== List of sources ===
+
Available lists:
Uploads the list of locations when entering data.
+
* {{c|1=datalist_fn}}: first names.
* datalist_src= : do nothing.  
+
* {{c|1=datalist_sn}}: surnames.
* datalist_src=1 : uploads the whole list once.
+
* {{c|1=datalist_place}}: places.
* datalist_src=2 : uploads a sub-list after typing three characters.
+
* {{c|1=datalist_src}}: sources.
 +
* {{c|1=datalist_occu}}: occupation.
  
 
=== Age computation ===
 
=== Age computation ===
 
On a personal page, display the age of parents at birth, and the age of the person for each other events.
 
On a personal page, display the age of parents at birth, and the age of the person for each other events.
* event_age=yes
+
* {{c|1=event_age=yes}}
  
 
=== jquery functions ===
 
=== jquery functions ===
If jquery is active, the number of ancestors, implesex and descendants will be displayed. This activates also automatis locations, professions, sources and witness lookup in eprsonal and family update forms.
+
If jquery is active, the number of ancestors, implexes and descendants will be displayed. This also activates automatic locations, professions, sources and witness lookup in personal and family update forms.
* jquery=yes
+
* {{c|1=jquery=yes}}
  
 
=== Shortest path ===
 
=== Shortest path ===
Deactivate "shortest path" links in statistics if more than n dates.
+
Deactivate “shortest path” links in statistics if more than n dates.
* max_dates=n
+
* {{c|1=max_dates=n}}
  
 
=== Number of generations ===
 
=== Number of generations ===
Number of generations displayed in the "Descendants" of a personal page. If {{c|maxlev}} is greater than 1, then great-great grand-parents are displayed in the Ascendants section.
+
Number of generations displayed in the “Descendants” of a personal page. If {{c|maxlev}} is greater than 1, then great-great grand-parents are displayed in the Ascendants section.
* maxlev=2 : affiche deux générations.
+
* {{c|1=maxlev=2}}: affiche deux générations.
  
 
=== Menus position ===
 
=== Menus position ===
 
Position scrolling menus at the top of the page, or a static menu at the bottom.
 
Position scrolling menus at the top of the page, or a static menu at the bottom.
* menu=  : Position scrolling menus at the top of the page.
+
* {{c|1=menu=}} : Position scrolling menus at the top of the page.
* menu=1 : Position a static menu at the bottom of the page.
+
* {{c|1=menu=1}} : Position a static menu at the bottom of the page.
  
 
=== Display the wiki link ===
 
=== Display the wiki link ===
Display teh wiki link (<nowiki>[[first_name/patronyme/0/Ftirst_name SURNAME]]</nowiki>) and the various wayd a person is called on its page..
+
Display the wiki link (<nowiki>[[first_name/patronyme/0/Ftirst_name SURNAME]]</nowiki>) and the various ways a person is called on its page..
* misc=surname
+
* {{c|1=misc=surname}}
  
 
=== Move the marriage comment ===
 
=== Move the marriage comment ===
Sur le formulaire de la famille, s’il n’y a pas de note de mariage/non mariage/relation (pas de mention), alors la note de l'union est déplacé automatiquement vers la note de ces événements.
+
Sur le formulaire de la famille, s’il n’y a pas de note de mariage/non-mariage/relation (pas de mention), alors la note de l'union est déplacé automatiquement vers la note de ces événements.
* move_comment=yes
+
* {{c|1=move_comment=yes}}
  
 
=== Surname display ===
 
=== Surname display ===
Converts automatically first_name surnale into First_name SURNAME in the data capture forms.
+
Converts automatically “first_name” to “First_name” and “particles surname” to “particles SURNAME” in the data capture forms (doesn’t work for first names and surnames aliases).
* uppercase=yes
+
* {{c|1=uppercase=yes}}
  
=== Particles conversion ===
+
=== Add particles ===
if both uppercase=yes and particles=yes, then converts "first_name de surname" into "First_name de SURNAME".
+
if both uppercase=yes and particles=yes, then converts “first_name de surname" into "First_name de SURNAME".
* particles=yes
+
* {{c|1=particles=yes}}
  
 
=== Link to gwsetup ===
 
=== Link to gwsetup ===
DIsplay a ling to gwsetup on personal pages.
+
Display a ling to gwsetup on personal pages.
* setup_link=yes
+
* {{c|1=setup_link=yes}}
  
 
=== gwsetup port number ===
 
=== gwsetup port number ===
 
Provides a URL to [[gwsetup]] with the appropriate value of the {{c|-p}} parameter. Default is localhost:2316.
 
Provides a URL to [[gwsetup]] with the appropriate value of the {{c|-p}} parameter. Default is localhost:2316.
* setup_http=
+
* {{c|1=setup_http=}}
  
=== Number of colums for display ===
+
=== Show flags ===
Alters display of personal pages:
+
Show flags in the upper right menu.
* wide=yes : single colums display (÷)
+
* {{c|1=show_flag=yes}}: show all flags.
* wide=no  : two colums display (·|·).
+
  
=== Hide flags ===
+
=== Number of columns for display ===
Hide flage in the menu:
+
Alters display of personal pages:
* hideflag= yes : do hide flags.
+
* {{c|1=wide=yes}}: single column display (÷)
 +
* {{c|1=wide=no}}: two columns display (·|·).
  
{{Manual}}
+
{{manual}}
  
 
[[Category:Manual]]
 
[[Category:Manual]]

Revision as of 20:17, 7 June 2016

150px-Geographylogo svg.png Language: English • français

templm uses specific configuration variables that must be added in /bases/base.gwf :

css=1
birth_symbol=
death_symbol=
datalist_fn=2
datalist_sn=2
datalist_occu=2
datalist_place=2
datalist_src=2
event_age=yes
jquery=yes
max_dates=
maxlev=2
menu=
misc=no
move_comment=yes
uppercase=no
particles=no
setup_link=no
setup_http=
show_flag=
static_path=
wide=no

Description of the variables

Style sheets

Birth/death symbols

Allow to change default symbols for births and deaths, respectively “°” and “†”, with another character.

  • birth_symbol=
  • death_symbol=

AutoComplete

Loads lists of preexisting data in the base when entering new data on forms.

  • datalist_xx=: do nothing.
  • datalist_xx=1: loads the whole list at once.
  • datalist_xx=2: loads a sub-list after typing their characters

Available lists:

  • datalist_fn: first names.
  • datalist_sn: surnames.
  • datalist_place: places.
  • datalist_src: sources.
  • datalist_occu: occupation.

Age computation

On a personal page, display the age of parents at birth, and the age of the person for each other events.

  • event_age=yes

jquery functions

If jquery is active, the number of ancestors, implexes and descendants will be displayed. This also activates automatic locations, professions, sources and witness lookup in personal and family update forms.

  • jquery=yes

Shortest path

Deactivate “shortest path” links in statistics if more than n dates.

  • max_dates=n

Number of generations

Number of generations displayed in the “Descendants” of a personal page. If maxlev is greater than 1, then great-great grand-parents are displayed in the Ascendants section.

  • maxlev=2: affiche deux générations.

Menus position

Position scrolling menus at the top of the page, or a static menu at the bottom.

  • menu=  : Position scrolling menus at the top of the page.
  • menu=1 : Position a static menu at the bottom of the page.

Display the wiki link

Display the wiki link ([[first_name/patronyme/0/Ftirst_name SURNAME]]) and the various ways a person is called on its page..

  • misc=surname

Move the marriage comment

Sur le formulaire de la famille, s’il n’y a pas de note de mariage/non-mariage/relation (pas de mention), alors la note de l'union est déplacé automatiquement vers la note de ces événements.

  • move_comment=yes

Surname display

Converts automatically “first_name” to “First_name” and “particles surname” to “particles SURNAME” in the data capture forms (doesn’t work for first names and surnames aliases).

  • uppercase=yes

Add particles

if both uppercase=yes and particles=yes, then converts “first_name de surname" into "First_name de SURNAME".

  • particles=yes

Link to gwsetup

Display a ling to gwsetup on personal pages.

  • setup_link=yes

gwsetup port number

Provides a URL to gwsetup with the appropriate value of the -p parameter. Default is localhost:2316.

  • setup_http=

Show flags

Show flags in the upper right menu.

  • show_flag=yes: show all flags.

Number of columns for display

Alters display of personal pages:

  • wide=yes: single column display (÷)
  • wide=no: two columns display (·|·).

GeneWeb Manual

Rembrandt Old Man Reading a Book.jpg

Use and manage genealogical databases

Technical annex