Difference between revisions of "templm"

From GeneWeb
Jump to: navigation, search
(templm (en) interim)
 
(Marie-claude)
 
(10 intermediate revisions by 2 users not shown)
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}} :
to be translated !!
+
 
+
'''{{git|hd/etc|templm}}''' utilise des variables de [[configuration/fr|configuration]] spécifiques à ajouter dans {{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 16: Line 17:
 
max_dates=
 
max_dates=
 
maxlev=2
 
maxlev=2
menu=
 
 
misc=no
 
misc=no
 
move_comment=yes
 
move_comment=yes
particles=no
+
uppercase=no
 +
particles=
 
setup_link=no
 
setup_link=no
 
setup_http=
 
setup_http=
uppercase=no
+
show_flag=
wide=no
+
hideflag=
+
 
static_path=
 
static_path=
birth_symbol=
+
wide=no
death_symbol=
+
 
</pre>
 
</pre>
  
== Description des variables ==
+
== Description of the variables ==
=== Feuille de style ===
+
=== Style sheets ===
* css= : affichage sur fond gris ({{git|hd/etc/templm|css.css}}).
+
* {{c|1=css=}} default CSS, grey background ({{git|hd/etc/templm|css.css}}).
* css=1 : affichage sur fond noir ({{git|hd/etc/templm|css1.css}}).
+
* {{c|1=css=1}} contrasted CSS, black background ({{git|hd/etc/templm|css1.css}}).
 +
 
 +
=== Birth/death symbols ===
 +
Allow to change default symbols for births and deaths, respectively “°” and “†”, with another character.
 +
* {{c|1=birth_symbol=}}
 +
* {{c|1=death_symbol=}}
 +
 
 +
=== AutoComplete ===
 +
Loads lists of preexisting data in the base when entering new data on forms.
 +
* {{c|1=datalist_xx=}} does nothing.
 +
* {{c|1=datalist_xx=1}} loads the whole list at once.
 +
* {{c|1=datalist_xx=2}} loads a sub-list after typing their characters
  
=== Liste des professions  ===
+
Available lists:
Permet de charger automatiquement la liste des professions existantes dans la base sur le formulaire individu et famille.
+
* {{c|1=datalist_fn=}} first names.
* datalist_occu= : ne charge rien.
+
* {{c|1=datalist_sn=}} surnames.
* datalist_occu=1 : charge toute la liste en une fois.
+
* {{c|1=datalist_place=}} places.
* datalist_occu=2 : charge une petite liste après la saisie de trois caractères.
+
* {{c|1=datalist_src=}} sources.
 +
* {{c|1=datalist_occu=}} occupation.
  
=== Liste des lieux ===
+
=== Age computation ===
Permet de charger automatiquement la liste des lieux existants dans la base sur le formulaire individu et famille.
+
On a personal page, display the age of parents at birth, and the age of the person for each other events.
* datalist_place= : ne charge rien.
+
* {{c|1=event_age=yes}}
* datalist_place=1 : charge toute la liste en une fois.
+
* datalist_place=2 : charge une petite liste après la saisie de trois caractères.
+
  
=== Liste des sources ===
+
=== jquery functions ===
Permet de charger automatiquement la liste des sources existantes dans la base sur le formulaire individu et famille.
+
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.
* datalist_src= : ne charge rien.
+
* {{c|1=jquery=yes}}
* datalist_src=1 : charge toute la liste en une fois.
+
* datalist_src=2 : charge une petite liste après la saisie de trois caractères.
+
  
=== Calculs d’âges ===
+
=== Shortest path ===
Sur la page d'une personne, affiche l'âge des parents à la naissance et l’âge de la personne pour chaque événement.
+
Deactivate “shortest path” links in statistics if more than n dates.
* event_age=yes
+
* {{c|1=max_dates=n}}
  
=== Fonctions avancées jquery ===
+
=== Number of generations ===
Activer jquery permet d’afficher le nombre d'ascendants, descendants, implexes sur la fiche d'une personne. Il permet aussi la recherche des lieux, sources et professions ainsi que la recherche si les témoins existent sur les formulaires individu et famille.
+
Number of generations displayed in the “Descendants” of a personal page. If {{c|maxlev}} is greater than 1, then great-grandparents are displayed in the Ascendants section.
* jquery=yes
+
* {{c|1=maxlev=2}} Show two generations.
 +
<!-- broken by A2!
 +
=== Menus position ===
 +
Position scrolling menus at the top of the page, or a static menu at the bottom.
 +
* {{c|1=menu=}} position scrolling menus at the top of the page.
 +
* {{c|1=menu=1}} position a static menu at the bottom of the page.-->
  
=== Chemin de plus court ===
+
=== Display the wiki link ===
Désactiver les liens « chemin le plus court » dans les statistiques si plus de n dates.
+
Display the wiki link <nowiki>[[first_name/patronyme/0/First_name SURNAME]]</nowiki> and the various ways a person is called at the bottom of his page.
* max_dates=n
+
* {{c|1=misc=surname}}
  
=== Nombre de générations ===
+
=== Move the marriage comment ===
Nombre de générations descendantes affichées dans la section Descendants d’une fiche individuelle. Si maxlev est supérieur à 1, alors les arrière-grands-parents s'affichent dans la section Ascendants.
+
On the family form, if there is a comment for “married/not married/engaged/no mention” section, then the comment is automaticaly moved to the corresponding event.
* maxlev=2 : affiche deux générations.
+
* {{c|1=move_comment=yes}}
  
=== Position des menus ===
+
=== Surname display ===
Placer le menu déroulant en haut ou un menu statique en bas sur les fiches individuelles.
+
Converts automatically “first_name” to “First_name” and “particles surname” to “particles SURNAME” in the data capture forms (doesn’t work for aliases of first names and surnames).
* menu= : affiche le menu déroulant en haut de la page.
+
* {{c|1=uppercase=yes}}
* menu=1 : affiche le menu non déroulant en bas de la page.
+
: Warning: multiple first names with hyphens are not correctly treated at the present time (marie claude becomes Marie Claude, but marie-claude becomes Marie-claude!).
  
=== Afficher le lien wiki ===
+
=== Add particles ===
Afficher le lien wiki (<nowiki>[[prenom/patronyme/0/Prénom PATRONYME]]</nowiki>) et les différentes manières d'appeler la personne sur la fiche individuelle.
+
Add particles to the already defined particles “af, av, d, dal, de, den, des, di, du, of, und, van, vor, zu et zur”.
* misc=yes
+
* {{c|1=particles="AF","AV","D","DAL","DE","DEN","DES","DI","DU","OF","UND","VAN","VON","ZU","ZUR","PARTICLE","PARTICLE2"…}}
 +
: Warning: add new particles after the existing list, the particles are defined without spaces and in capitals (they'll end in lowercase one day!).
  
=== Déplacer le commentaire de mariage ===
+
=== Link to gwsetup ===
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.
+
Display a ling to gwsetup on personal pages.
* move_comment=yes
+
* {{c|1=setup_link=yes}}
  
=== Casse des patronymes ===
+
=== gwsetup port number ===
Convertir automatiquement prénom patronyme en Prénom PATRONYME dans les formulaires.
+
Provides a URL to [[gwsetup]] with the appropriate value of the {{c|-p}} parameter. Default is localhost:2316.
* uppercase=yes
+
* {{c|1=setup_http=}}
  
=== Casse des particules ===
+
=== Show flags ===
Si uppercase=yes, convertit "DE PATRONYME" en "de PATRONYME".
+
Show flags in the upper right menu.
* particles=yes
+
* {{c|1=show_flag=yes}} show all flags.
  
=== Lien vers gwsetup ===
+
=== Path to .js and .css files ===
Affiche le menu gwsetup sur les fiches individuelles.
+
Allow to specify the static path of javascript and css files for an installation in [[CGI]] mode when no .htaccess is used.
* setup_link=yes
+
* {{c|1=static_path=/gw/etc/}} for example if the template files are at their default installation place.
  
=== Port de  gwsetup ===
+
=== Number of columns for display ===
Indique l’URL exacte de [[gwsetup]] lorsqu’il est lancé avec la commande {{c|-p}} pour modifier le port (par défaut localhost:2316).
+
Alters display of personal pages:
* setup_http=
+
* {{c|1=wide=yes}} single column display (÷)
 +
* {{c|1=wide=no}} two columns display (·|·).
  
=== Nombre de colonnes pour l’affichage ===
+
{{manual}}
Modifier le rendu des fiches individuelles :
+
* wide=yes : affichage sur une colonne (÷)
+
* wide=no  : affichage sur deux colonnes (·|·).
+
  
=== Masquer les drapeaux ===
+
[[Category:Manual]]
Masquer les drapeaux dans le menu de droite :
+
* hideflag= yes : masque les drapeaux.
+
[[Category:Manuel]]
+

Latest revision as of 21:40, 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
misc=no
move_comment=yes
uppercase=no
particles=
setup_link=no
setup_http=
show_flag=
static_path=
wide=no

Description of the variables

Style sheets

  • css= default CSS, grey background (css.css).
  • css=1 contrasted CSS, black background (css1.css).

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= does 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-grandparents are displayed in the Ascendants section.

  • maxlev=2 Show two generations.

Display the wiki link

Display the wiki link [[first_name/patronyme/0/First_name SURNAME]] and the various ways a person is called at the bottom of his page.

  • misc=surname

Move the marriage comment

On the family form, if there is a comment for “married/not married/engaged/no mention” section, then the comment is automaticaly moved to the corresponding event.

  • 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 aliases of first names and surnames).

  • uppercase=yes
Warning: multiple first names with hyphens are not correctly treated at the present time (marie claude becomes Marie Claude, but marie-claude becomes Marie-claude!).

Add particles

Add particles to the already defined particles “af, av, d, dal, de, den, des, di, du, of, und, van, vor, zu et zur”.

  • particles="AF","AV","D","DAL","DE","DEN","DES","DI","DU","OF","UND","VAN","VON","ZU","ZUR","PARTICLE","PARTICLE2"…
Warning: add new particles after the existing list, the particles are defined without spaces and in capitals (they'll end in lowercase one day!).

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.

Path to .js and .css files

Allow to specify the static path of javascript and css files for an installation in CGI mode when no .htaccess is used.

  • static_path=/gw/etc/ for example if the template files are at their default installation place.

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