Maxcrc MediaWiki:Keyword und Variablen/en: Unterschied zwischen den Versionen
← Maxcrc MediaWiki:Keyword und Variablen/en
(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…“) |
(Übernehme Bearbeitung einer neuen Version der Quellseite) |
<languages />
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) |
Variables[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 "Template:" {{Template: Template Name}} </ nowiki> must be used in conjunction with the name. {| class="wikitable" !Variable !Output !Description |- |<nowiki>{{SITENAME}} |BlueSpice |Name of the Wiki |- |{{CURRENTTIME}} |20:16 |Time (24-hour HH:mm format) |- |{{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}} |MagicWords |Shows the page name, as it was created (see change of article titles) |} Variables of Hallo Welt!
Variable | Output | Description |
---|---|---|
{{#hwinfobox:}} | shows five latest changes and date when they occured | |
{{{#userslink:(who?)}} | names all users who are online
|
<languages /> ===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 name. {| class="wikitable" !Variable !Output !Description |- |<nowiki>{{SITENAME}}</nowiki> |BlueSpice |Name of the Wiki |- |<nowiki>{{CURRENTTIME}}</nowiki> |20:16 |Time (24-hour HH:mm format) |- |<nowiki>{{CURRENTDAY}}</nowiki> |9 |Current day (no prefix of zero characters) |- |<nowiki>{{CURRENTMONTH}}</nowiki> |06 |month (with prefix zero character) |- |<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 article |- |<nowiki>{{PAGENAME}}</nowiki> |MagicWords |Shows the page name, as it was created (see change of article titles) |} '''Variables of Hallo Welt!''' {| class="wikitable" !Variable !Output !Description |- |<nowiki>{{#hwinfobox:}}</nowiki> | |shows five latest changes and date when they occured |- |{<nowiki>{{#userslink:(who?)}}</nowiki> | |names all users who are online<br /> |}
Zeile 1: | Zeile 1: | ||
+ | <languages /> | ||
===Keywords=== | ===Keywords=== |