Index: trunk/extensions/Wikidata/OmegaWiki/DefinedMeaning.php |
— | — | @@ -116,10 +116,15 @@ |
117 | 117 | } |
118 | 118 | |
119 | 119 | public function getTitle() { |
120 | | - global |
121 | | - $wgTitle; |
122 | | - |
123 | | - return definedMeaningExpression($this->getDefinedMeaningIdFromTitle($wgTitle->getText())); |
| 120 | + global |
| 121 | + $wgTitle, $wgDefinedMeaningPageTitlePrefix; |
| 122 | + |
| 123 | + if ($wgDefinedMeaningPageTitlePrefix != "") |
| 124 | + $prefix = $wgDefinedMeaningPageTitlePrefix . ": "; |
| 125 | + else |
| 126 | + $prefix = ""; |
| 127 | + |
| 128 | + return $prefix . definedMeaningExpression($this->getDefinedMeaningIdFromTitle($wgTitle->getText())); |
124 | 129 | } |
125 | 130 | } |
126 | 131 | |
Index: trunk/extensions/Wikidata/OmegaWiki/WikiDataGlobals.php |
— | — | @@ -146,4 +146,11 @@ |
147 | 147 | |
148 | 148 | $wgGotoSourceTemplates = array(); // Map of collection id => GotoSourceTemplate |
149 | 149 | |
| 150 | +global |
| 151 | + $wgDefinedMeaningPageTitlePrefix, |
| 152 | + $wgExpressionPageTitlePrefix; |
| 153 | + |
| 154 | +$wgDefinedMeaningPageTitlePrefix = ""; |
| 155 | +$wgExpressionPageTitlePrefix = "Multiple meanings"; |
| 156 | + |
150 | 157 | ?> |
\ No newline at end of file |
Index: trunk/extensions/Wikidata/OmegaWiki/OmegaWiki.php |
— | — | @@ -10,6 +10,7 @@ |
11 | 11 | require_once('HTMLtable.php'); |
12 | 12 | require_once('OmegaWikiRecordSets.php'); |
13 | 13 | require_once('OmegaWikiEditors.php'); |
| 14 | +require_once('WikiDataGlobals.php'); |
14 | 15 | |
15 | 16 | /** |
16 | 17 | * Load and modify content in a OmegaWiki-enabled |
— | — | @@ -110,9 +111,14 @@ |
111 | 112 | |
112 | 113 | public function getTitle() { |
113 | 114 | global |
114 | | - $wgTitle; |
115 | | - |
116 | | - return "Disambiguation: " . $wgTitle->getText(); |
| 115 | + $wgTitle, $wgExpressionPageTitlePrefix; |
| 116 | + |
| 117 | + if ($wgExpressionPageTitlePrefix != "") |
| 118 | + $prefix = $wgExpressionPageTitlePrefix . ": "; |
| 119 | + else |
| 120 | + $prefix = ""; |
| 121 | + |
| 122 | + return $prefix . $wgTitle->getText(); |
117 | 123 | } |
118 | 124 | |
119 | 125 | protected function getIdStack() { |