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) |
VariablenVariables[Bearbeiten | Quelltext bearbeiten]
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 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:" {{Template: VorlagennameTemplate Name}} in Verbindung mit dem Namen angewendet werden.
</ nowiki> must be used in conjunction with the name. {| class="wikitable" !Variable !Output !Description |- |<nowiki>{{SITENAME}}
|BlueSpice
|Name of the Wiki |- |{{CURRENTTIME}}
|20:16
Zeit|Time (24-
Stundenhour HH:mm
Formatformat)
|- |{{CURRENTDAY}}
|9 |Current day (no prefix of zero characters) |- |{{CURRENTMONTH}}
|06
|month (with prefix zero character) |- |{{NUMBEROFARTICLES}}
|495 |Shows the number of all existing articles in the wiki (in the main namespace) |- |{{NAMESPACE}}
| |Displays the namespace of the article |- |{{PAGENAME}}
Variablen von |MagicWords |Shows the page name, as it was created (see change of article titles) |} Variables of Hallo Welt!
Variable | Output Beschreibung | Description |
---|---|---|
{{#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) |} ==Variablen== 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 werdenVariables== 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" !Variable !Output !BeschreibungDescription |- |<nowiki>{{SITENAME}}</nowiki> |BlueSpice |Name des Wikis of the Wiki |- |<nowiki>{{CURRENTTIME}}</nowiki> |20:16 |ZeitTime (24-Stundenhour HH:mm Formatformat) |- |<nowiki>{{CURRENTDAY}}</nowiki> |9 |Aktueller Tag (keine führende NullCurrent day (no prefix of zero characters) |- |<nowiki>{{CURRENTMONTH}}</nowiki> |06 |Monat (mit führender Nullmonth (with prefix zero character) |- |<nowiki>{{NUMBEROFARTICLES}}</nowiki> |495 |Zeigt die Anzahl aller existierenden Artikel im Wiki (im Hauptnamensraum) |- |<nowiki>{{NAMESPACE}}</nowiki> | |Zeigt den Namensraum des Artikels anShows the number of all existing articles in the wiki (in the main namespace) |- |<nowiki>{{NAMESPACE}}</nowiki> | |Displays the namespace of the article |- |<nowiki>{{PAGENAME}}</nowiki> |MagicWords |Zeigt den Seitennamen, so wie er angelegt wurde (vgl. hierzu Änderung von Artikeltiteln) |} '''Variablen vonShows the page name, as it was created (see change of article titles) |} '''Variables of Hallo Welt!''' {| class="wikitable" !Variable !Output !BeschreibungDescription |- |<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> |