diff --git a/ecrire/base/abstract_sql.php b/ecrire/base/abstract_sql.php
index 6ea0fc5fea05e0d3540005b6a6b9948cf165e897..9ce4614e33d634ce11fc9a6adaad4647a316b7b4 100644
--- a/ecrire/base/abstract_sql.php
+++ b/ecrire/base/abstract_sql.php
@@ -149,6 +149,7 @@ $sousrequete, $having, $table, $id, $serveur),
 }
 
 # une composition tellement frequente...
+// http://doc.spip.org/@spip_abstract_countsel
 function spip_abstract_countsel($from = array(), $where = array(),
 	$groupby = '', $limit = '', $sousrequete = '', $having = array(),
 	$serveur='') {
diff --git a/ecrire/base/db_mysql.php b/ecrire/base/db_mysql.php
index bae1b700b216acaf9b760e631cbebe4219e664c1..033a56eefafa60a84ae42d954c39bfc01a48dbc9 100644
--- a/ecrire/base/db_mysql.php
+++ b/ecrire/base/db_mysql.php
@@ -392,6 +392,7 @@ function spip_fetch_array($r, $t=SPIP_ASSOC) {
 	if ($r) return mysql_fetch_array($r, $t);
 }
 
+// http://doc.spip.org/@spip_mysql_countsel
 function spip_mysql_countsel($from = array(), $where = array(),
 	$groupby = '', $limit = '', $sousrequete = '', $having = array())
 {
diff --git a/ecrire/base/db_pg.php b/ecrire/base/db_pg.php
index a32adaf6f131a54dd1ecd772a35cf53f16504651..227215231c1f50dace6621141e69af3ce51a83f8 100644
--- a/ecrire/base/db_pg.php
+++ b/ecrire/base/db_pg.php
@@ -178,6 +178,7 @@ function spip_fetch_array($r, $extra='') {
 	  if ($r) return pg_fetch_array($r);
 }
 
+// http://doc.spip.org/@spip_pg_countsel
 function spip_pg_countsel($from = array(), $where = array(),
 	$groupby='', $limit='', $sousrequete = '', $having = array())
 {
diff --git a/ecrire/base/optimiser.php b/ecrire/base/optimiser.php
index 7257ee4bf6604f35c4d166142a8e1a0d8c77f1c0..ceb4b89572bde75145e82dc82db60adef82cd7ba 100644
--- a/ecrire/base/optimiser.php
+++ b/ecrire/base/optimiser.php
@@ -27,6 +27,7 @@ function optimiser_base($attente = 86400) {
 	// MySQL
 	//
 
+// http://doc.spip.org/@optimiser_base_une_table
 function optimiser_base_une_table() {
 
 	if ($GLOBALS['table_prefix']) $table_pref = $GLOBALS['table_prefix']."_";
@@ -60,6 +61,7 @@ function optimiser_base_une_table() {
 // Utilitaire exploitant le SELECT et appliquant DELETE
 // L'index du SELECT doit s'appeler "id"
 
+// http://doc.spip.org/@optimiser_sansref
 function optimiser_sansref($table, $id, $sel)
 {
 	$in = array();
@@ -78,6 +80,7 @@ function optimiser_sansref($table, $id, $sel)
 // Maintenant que MySQL 5 a des Cascades on pourrait faire autrement
 // mais on garde la compatibilite avec les versions precedentes.
 
+// http://doc.spip.org/@optimiser_base_disparus
 function optimiser_base_disparus($attente = 86400) {
 
 	# format = 20060610110141, si on veut forcer une optimisation tout de suite
@@ -394,6 +397,7 @@ function optimiser_base_disparus($attente = 86400) {
 }
 
 
+// http://doc.spip.org/@optimiser_base_indexation
 function optimiser_base_indexation($attente) {
 	// les objets inutiles
 	include_spip('inc/indexation');