Dynamic <title> Tag with Wiki-Title AND Article-Title

Jump to: navigation, search

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

84.158.107.17712:49, 30 January 2012

MediaWiki:Pagetitle

Subfader15:57, 30 January 2012

Thanks Subfader - i am not a real PHP-Guru ... could you please tell me WHERE to put it HOW ? Or anybody else ?

188.98.79.3011:08, 31 January 2012

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.

Subfader12:27, 31 January 2012

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 ?

188.98.79.3013:39, 31 January 2012
 
 
 

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,

http://www.trainerlexikon.de/index.php?title=MediaWiki:Pagetitle&action=delete

.. and then it is good :)

Krinkle18:10, 31 January 2012

G R E A T. And so easy - if u know how ;) Thanx a lot Subfader & Krinkle !!!

188.98.79.3020:48, 31 January 2012

One more question ... how is this "category" of pages called ? Is there a list of all these "special" pages ?

188.98.79.3020:52, 31 January 2012
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox