Help talk:Templates/de

From MediaWiki.org

Jump to: navigation, search

Die beiden Links unter "organisation von Vorlagen" sind nicht mehr gültig. There are two broken links in this text. (under: "organisation von Vorlagen")

[edit] Signatur automatisch anlegen

MediaWiki version: 1.9
MediaWiki version: 1.11

Wenn es benötigt wird, das automatisch eine Signatur an jede Diskussion angehangen wird, muss folgendes getan werden.

Datei: ./includes/Parser.php

# Signatures
                $sigText = $this->getUserSig( $user );
                $text = strtr( $text, array(
                        '~~~~~' => $d,
                        '~~~~' => "$sigText $d",
                        '~~~' => $sigText
                ) );

in

 # Signatures
                $sigText = $this->getUserSig( $user );

                if (substr_count($_GET["title"], "Diskussion"))
                {
                        if (substr_count($text, "--~~~~")=="0")
                        {
                                $text=$text."   --~~~~";
                        }
                }
                $text = strtr( $text, array(
                        '~~~~' => "$sigText $d",
                ) );

ändern.

Diese abfrage überprüft ob es eine Diskussion ist, und wenn es eine ist wird eine Signatur an gehangen (soweit diese noch nicht vorhanden ist).

=> getestet mit Version 1.9.3 und 1.11