Hi everybody,
in my industry (visual effects) we make intensive use of underscores for our filenames and directories. For example, a shot in a movie is uniquely identified with the construct <project>_<sequence>_<shot>. This will result into something looking like this: HP3_075_010, for the tenth shot of sequence 75 in the movie Harry Potter 3.
This is an established practice and works just fine, but when I create an information page regarding a shot the filename will have the underscores but the page title won't, as the underscores will be displayed as spaces. Is there anything that I can do to prevent this? Wiki-wide or on a page by page basis?
Thanks for your help!
Manu
On monobook.php, line 101
replace <h1 class="firstHeading"><?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?></h1>
by <h1 class="firstHeading"><?php str_replace(" ", "_", $this->data['displaytitle']!=""?$this->html('title'):$this->text('title')) ?></h1>
On 8/1/07, Platonides Platonides@gmail.com wrote:
On monobook.php, line 101
<h1 class="firstHeading"><?php str_replace(" ", "_",
$this->data['displaytitle']!=""?$this->html('title'):$this->text('title')) ?></h1>
I see the logic, but it doesn't seem to have any effect. Does Monobook.php needs to be somehow resourced/refreshed for a change to become active?
Manu
The individual page caches need to leave the cache... Just wait a day or to... To test it you can purge an individual page by going to the edit page and changing &action=edit to &action=purge
~Daniel Friesen(Dantman) of The Gaiapedia, Wikia Graphical Entertainment Project, and Wiki-Tools.com
Emanuele D'Arrigo wrote:
On 8/1/07, Platonides Platonides@gmail.com wrote:
On monobook.php, line 101
<h1 class="firstHeading"><?php str_replace(" ", "_",
$this->data['displaytitle']!=""?$this->html('title'):$this->text('title')) ?></h1>
I see the logic, but it doesn't seem to have any effect. Does Monobook.php needs to be somehow resourced/refreshed for a change to become active?
Manu _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 8/1/07, DanTMan dan_the_man@telus.net wrote:
The individual page caches need to leave the cache... Just wait a day or to... To test it you can purge an individual page by going to the edit page and changing &action=edit to &action=purge
Uhmmm... still doesn't seem to work... strange. Well, it's not really a big deal I guess. We'll leave without.
Ciao!
Manu
Emanuele D'Arrigo wrote:
<h1 class="firstHeading"><?php str_replace(" ", "_", > $this->data['displaytitle']!=""?$this->html('title'):$this->text('title')) > ?></h1>
I see the logic, but it doesn't seem to have any effect. Does Monobook.php needs to be somehow resourced/refreshed for a change to become active?
It changes the big header on the page. If you also want to change the title (eg. on browser window), change $this->text('title') into str_replace(" ", "_", $this->text('title')) up between the <title> tags.
mediawiki-l@lists.wikimedia.org