Translations:Manual:$wgReadOnly/5/en

The above example locks the database and provides a default statement on edit pages and also gives the included string  as an explanation for why the database was locked.