Benutzer:Laurence:Testseite

aus PUG, der Penguin User Group
Wechseln zu: Navigation, Suche

https://www.pug.org enthält derzeit 168 Seiten: Spezial:Allpages


This is a list of variables that can be used in the wikitext. The way they are rendered depends on the time, on the project, or on the page in which it occurs.

On the left is the variable, on the right how it is rendered at this time, in this project, on this page.

Constant, only depending on the project and parameters

{{ns:-2}} or {{ns:Media}} Medium
{{ns:-1}} or {{ns:Special}} Spezial
{{ns:1}} or {{ns:Talk}} Diskussion
{{ns:2}} or {{ns:User}} Benutzer
{{ns:3}} or {{ns:User_talk}} Benutzer Diskussion
{{ns:4}} or {{ns:Project}} PUG
{{ns:5}} or {{ns:Project_talk}} PUG Diskussion
{{ns:6}} or {{ns:Image}} Datei
{{ns:7}} or {{ns:Image_talk}} Datei Diskussion
{{ns:8}} or {{ns:MediaWiki}} MediaWiki
{{ns:9}} or {{ns:MediaWiki_talk}} MediaWiki Diskussion
{{ns:10}} or {{ns:Template}} Vorlage
{{ns:11}} or {{ns:Template_talk}} Vorlage Diskussion
{{ns:12}} or {{ns:Help}} Hilfe
{{ns:13}} or {{ns:Help_talk}} Hilfe Diskussion
{{ns:14}} or {{ns:Category}} Kategorie
{{ns:15}} or {{ns:Category_talk}} Kategorie Diskussion
depending on custom namespaces:
{{ns:100}} - {{ns:121}}
-
{{SITENAME}} PUG
{{SERVER}} https://www.pug.org
{{localurl:pagename}} /mediawiki/index.php/Pagename
{{localurl:pagename|query string}} /mediawiki/index.php?title=Pagename&query string
{{int:fromwikipedia}} aus PUG, der Penguin User Group

"INT:" is used to get text from wfMsg, such as messages in the LanguageXx.php file (see example over). It is short for "internal".

Varying with time

{{CURRENTMONTH}} 08
{{CURRENTMONTHNAME}} August
{{CURRENTMONTHNAMEGEN}} Augusts
{{CURRENTDAY}} 4
{{CURRENTDAYNAME}} Sonntag
{{CURRENTYEAR}} 2019
{{CURRENTTIME}} 17:02
{{NUMBEROFARTICLES}} 168

NUMBEROFARTICLES: number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages.

This depends on system variable $wgUseCommaCount If true, article count will only include those with commas (","). If false, will only count those with links ("[["). The default set in DefaultSettings.php is false, this can be changed in LocalSettings.php.

CURRENTMONTHNAMEGEN: is the genitive grammatical form of the month name (used in Finnish).

Depending on page

{{NAMESPACE}} Benutzer
{{PAGENAME}} Laurence:Testseite
{{PAGENAMEE}} Laurence:Testseite

PAGENAMEE displays the page title in the form that is used in URLs, i.e. with underscores for spaces, and escape codes for special characters, and is therefore used for constructing URLs. For example, on a page called "Another test", PAGENAMEE would produce "Another_test" rather than "Another test".

When used in a template, these three variables refer to the page in which the template is included, not to the template page.

Examples of combinations

{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} https://www.pug.org/mediawiki/index.php?title=Benutzer:Laurence:Testseite&action=edit
{{SERVER}}{{localurl:Special:Whatlinkshere|target={{NAMESPACE}}:{{PAGENAME}}}}https://www.pug.org/mediawiki/index.php?title=Spezial:Whatlinkshere&target=Benutzer:Laurence:Testseite
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}_1}} https://www.pug.org/mediawiki/index.php/Benutzer:Laurence:Testseite_1

Note that PAGENAME with single E has to be used within localurl, otherwise it does not work with special characters. For example, for a page named É we get {{localurl:É}}, which correctly gives /mediawiki/index.php/%C3%83%C2%89 (with {{SERVER}} in front https://www.pug.org/mediawiki/index.php/%C3%83%C2%89, linking to the page É), while {{PAGENAMEE}} gives %C9, and {{localurl:%C9}} gives {{localurl:%C9}}, i.e. it is rendered unchanged, the function localurl is not applied. With {{SERVER}} in front it gives https://www.pug.org{{localurl:%C9}}, which is a dead link reported by the browser, the server is not even reached.

See also m:Template:UTC.

In a template, for a link to a page which depends on a template parameter, the external link style is used even for internal links, to avoid that the system links to the edit page even if the page exists. To construct the external link, variables can also be useful.


Achtung: Diese Seite entspricht nicht dem aktuellen Stand der Dinge und sollte bei Gelegenheit überarbeitet werden!

Näheres auf der Diskussionsseite.




Filetypes.png
Dies ist ein Testzitat