Dynamic <title> Tag with Wiki-Title AND Article-Title
Hello ...
My problem: Every page in my wiki has as page title the wiki-name itself ( so if i want to create a bookmark in a certain article i do NOT get the article´s title but only the wiki´s title ).
My question: Which file do i have to edit and what do i have to do that the "HTML-<title>" Tag is filled like "ARTICLE-NAME - WIKI-Name" ( e.g. Ferrari - CarWiki )
My setup: MediaWiki 1.18.1 PHP 5.3.8-1+b1 (apache2handler) MySQL 5.1.58-1
Thanx for your help ! Stefan
MediaWiki:Pagetitle
Thanks Subfader - i am not a real PHP-Guru ... could you please tell me WHERE to put it HOW ? Or anybody else ?
It's a message and the title is added as $1. Save the page with
$1 - CarWiki
On page [[Ferrari]] the title would be "Ferrari - CarWiki".
You could also use magic words.
Sorry - i do not get it. Have a look at my wiki at http://www.trainerlexikon.de/index.php?title=Ziele_definieren The article is named "Ziele definieren" ( Defining targets ). But the page name ( the name of the firefox window ) is "Trainerlexikon" - and my target is to have "Ziele definieren - Trainerlexikon" as page name ( which is stored at the book marks ). Do you have an idea ?
Edit the page "MediaWiki:Pagetitle" on your wiki and put the following inside of it:
$1 - {{SITENAME}}
Then on every page the <title> will be the way you want. The "MediaWiki:Pagetitle" wiki page is used as format for the title and $1 is replaced with the wiki page name.
For your wiki it is here: http://www.trainerlexikon.de/index.php?title=MediaWiki:Pagetitle&action=edit
It looks like user "StefanLapenat" on your wiki has changed this in 2005 ([1]).
All you need to do is delete that edit,
.. and then it is good :)