Translations:Manual:$wgReadOnly/5/en

$wgReadOnly = 'This wiki is currently being upgraded to a newer software version.'; 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.