Maxcrc MediaWiki:Keyword und Variablen/en: Unterschied zwischen den Versionen
← Maxcrc MediaWiki:Keyword und Variablen/en
(Die Seite wurde neu angelegt: „===Keywords=== Predefined keywords manage the appearance or behavior of a page. It is used to specify desired omissions or insertions in the content. Keywords…“) |
(Die Seite wurde neu angelegt: „==Variables== Variables can display information about the current page, wiki, or date. The syntax is the same as that of the templates, so it can lead to confl…“) |
Keywords[Bearbeiten | Quelltext bearbeiten]
Predefined keywords manage the appearance or behavior of a page. It is used to specify desired omissions or insertions in the content. Keywords can theoretically be typed anywhere in the wikicode, but this depends on the function. For example, the keyword that creates a table of contents, will be placed typically at the top of the article.
Keyword | Description | |
---|---|---|
__NOEDITOR__ | Prevents use of the WYSIWYG editor on this page | |
__NOTOC__ | Hides the table of contents (TOC) on this page | |
__TOC__ | Allows you to move the table of contents anywhere in the article. If there is a __ NOTOC __ </ nowiki> this will be overwritten. However, only one table of contents can be inserted; if several are inserted, only the first (top) is displayed. |- |<nowiki>__NOEDITSECTION__ | Hides the "edit" link next to a heading. |
__NEWSECTIONLINK__ | Adds a link (usually "+") next to the "Edit" link to create a new section (only on non-discussion pages) |
VariablesVariablen[Bearbeiten | Quelltext bearbeiten]
Variables can display information about the current page, wiki, or date. The syntax is the same as that of the templates, so it can lead to conflicts with the same naming. If a naming conflict between template and variable occurs, however, the variable is used. If you want to use the template anyway, the word Mit Variablen können Informationen über die aktuelle Seite, das Wiki oder das Datum angezeigt werden. Die Syntax gleich denen der Vorlagen, es kann daher bei gleicher Benennung zu Konflikten führen. Tritt ein Namenskonflikt zwischen Vorlage und Variable auf, wird allerdings die Variable benutzt. Wenn die Vorlage trotzdem benutzt werden soll, muss das Wort "Template:" {{Template: Template NameVorlagenname}} </ nowiki> must be used in conjunction with the name. {| class="wikitable" !Variable !Output !Description |- |<nowiki>in Verbindung mit dem Namen angewendet werden.
Variable | Output | Beschreibung |
---|---|---|
{{SITENAME}} |
BlueSpice |
Name des Wikis | |
{{CURRENTTIME}} |
20:16 |
Zeit (24- |
Stunden HH:mm |
Format) |
{{CURRENTDAY}} |
9 | Aktueller Tag (keine führende Null) | |
{{CURRENTMONTH}} |
06 |
Monat (mit führender Null) | |
{{NUMBEROFARTICLES}} |
495 | Zeigt die Anzahl aller existierenden Artikel im Wiki (im Hauptnamensraum) | |
{{NAMESPACE}} |
Zeigt den Namensraum des Artikels an | ||
{{PAGENAME}} |
MagicWords | Zeigt den Seitennamen, so wie er angelegt wurde (vgl. hierzu Änderung von Artikeltiteln) |
Variablen von Hallo Welt!
Variable | Output Description | Beschreibung |
---|---|---|
{{#hwinfobox:}} | shows five latest changes and date when they occured | |
{{{#userslink:(who?)}} | names all users who are online
|
===Keywords=== Predefined keywords manage the appearance or behavior of a page. It is used to specify desired omissions or insertions in the content. Keywords can theoretically be typed anywhere in the wikicode, but this depends on the function. For example, the keyword that creates a table of contents, will be placed typically at the top of the article. {| class="wikitable" !Keyword !Description |- |<nowiki>__NOEDITOR__</nowiki> |Prevents use of the WYSIWYG editor on this page |- |<nowiki>__NOTOC__</nowiki> |Hides the table of contents (TOC) on this page |- |<nowiki>__TOC__</nowiki> |Allows you to move the table of contents anywhere in the article. If there is a <nowiki> __ NOTOC __ </ nowiki> this will be overwritten. However, only one table of contents can be inserted; if several are inserted, only the first (top) is displayed. |- |<nowiki>__NOEDITSECTION__</nowiki> |Hides the "edit" link next to a heading. |- |<nowiki>__NEWSECTIONLINK__</nowiki> |Adds a link (usually "+") next to the "Edit" link to create a new section (only on non-discussion pages) |} ==Variables== Variables can display information about the current page, wiki, or date. The syntax is the same as that of the templates, so it can lead to conflicts with the same naming. If a naming conflict between template and variable occurs, however, the variable is used. If you want to use the template anyway, the word "Template:" <nowiki> {{Template: Template Name}} </ nowiki> must be used in conjunction with the nameVariablen== Mit Variablen können Informationen über die aktuelle Seite, das Wiki oder das Datum angezeigt werden. Die Syntax gleich denen der Vorlagen, es kann daher bei gleicher Benennung zu Konflikten führen. Tritt ein Namenskonflikt zwischen Vorlage und Variable auf, wird allerdings die Variable benutzt. Wenn die Vorlage trotzdem benutzt werden soll, muss das Wort "Template:" <nowiki>{{Template:Vorlagenname}}</nowiki> in Verbindung mit dem Namen angewendet werden. {| class="wikitable" !Variable !Output !DescriptionBeschreibung |- |<nowiki>{{SITENAME}}</nowiki> |BlueSpice |Name of the Wiki des Wikis |- |<nowiki>{{CURRENTTIME}}</nowiki> |20:16 |TimeZeit (24-hourStunden HH:mm formatFormat) |- |<nowiki>{{CURRENTDAY}}</nowiki> |9 |Current day (no prefix of zero charactersAktueller Tag (keine führende Null) |- |<nowiki>{{CURRENTMONTH}}</nowiki> |06 |month (with prefix zero characterMonat (mit führender Null) |- |<nowiki>{{NUMBEROFARTICLES}}</nowiki> |495 |Shows the number of all existing articles in the wiki (in the main namespace) |- |<nowiki>{{NAMESPACE}}</nowiki> | |Displays the namespace of the articleZeigt die Anzahl aller existierenden Artikel im Wiki (im Hauptnamensraum) |- |<nowiki>{{NAMESPACE}}</nowiki> | |Zeigt den Namensraum des Artikels an |- |<nowiki>{{PAGENAME}}</nowiki> |MagicWords |Shows the page name, as it was created (see change of article titles) |} '''Variables ofZeigt den Seitennamen, so wie er angelegt wurde (vgl. hierzu Änderung von Artikeltiteln) |} '''Variablen von Hallo Welt!''' {| class="wikitable" !Variable !Output !DescriptionBeschreibung |- |<nowiki>{{#hwinfobox:}}</nowiki> | |shows five latest changes and date when they occured |- |{<nowiki>{{#userslink:(who?)}}</nowiki> | |names all users who are online<br /> |}
Zeile 22: | Zeile 22: | ||
|} | |} | ||
− | == | + | ==Variables== |
− | + | Variables can display information about the current page, wiki, or date. The syntax is the same as that of the templates, so it can lead to conflicts with the same naming. If a naming conflict between template and variable occurs, however, the variable is used. If you want to use the template anyway, the word "Template:" <nowiki> {{Template: Template Name}} </ nowiki> must be used in conjunction with the name. | |
{| class="wikitable" | {| class="wikitable" | ||
!Variable | !Variable | ||
!Output | !Output | ||
− | ! | + | !Description |
|- | |- | ||
|<nowiki>{{SITENAME}}</nowiki> | |<nowiki>{{SITENAME}}</nowiki> | ||
|BlueSpice | |BlueSpice | ||
− | |Name | + | |Name of the Wiki |
|- | |- | ||
|<nowiki>{{CURRENTTIME}}</nowiki> | |<nowiki>{{CURRENTTIME}}</nowiki> | ||
|20:16 | |20:16 | ||
− | | | + | |Time (24-hour HH:mm format) |
|- | |- | ||
|<nowiki>{{CURRENTDAY}}</nowiki> | |<nowiki>{{CURRENTDAY}}</nowiki> | ||
|9 | |9 | ||
− | | | + | |Current day (no prefix of zero characters) |
|- | |- | ||
|<nowiki>{{CURRENTMONTH}}</nowiki> | |<nowiki>{{CURRENTMONTH}}</nowiki> | ||
|06 | |06 | ||
− | | | + | |month (with prefix zero character) |
|- | |- | ||
|<nowiki>{{NUMBEROFARTICLES}}</nowiki> | |<nowiki>{{NUMBEROFARTICLES}}</nowiki> | ||
|495 | |495 | ||
− | | | + | |Shows the number of all existing articles in the wiki (in the main namespace) |
|- | |- | ||
|<nowiki>{{NAMESPACE}}</nowiki> | |<nowiki>{{NAMESPACE}}</nowiki> | ||
| | | | ||
− | | | + | |Displays the namespace of the article |
|- | |- | ||
|<nowiki>{{PAGENAME}}</nowiki> | |<nowiki>{{PAGENAME}}</nowiki> | ||
|MagicWords | |MagicWords | ||
− | | | + | |Shows the page name, as it was created (see change of article titles) |
|} | |} | ||
− | ''' | + | '''Variables of Hallo Welt!''' |
{| class="wikitable" | {| class="wikitable" | ||
!Variable | !Variable | ||
!Output | !Output | ||
− | ! | + | !Description |
|- | |- | ||
|<nowiki>{{#hwinfobox:}}</nowiki> | |<nowiki>{{#hwinfobox:}}</nowiki> |