Diferencia entre revisiones de «Ayuda:Plantillas»

(New page: == No Theme Rings == It is forbidden in the German-speaking subjects Metin2Wiki rings, ie combinations of several articles on the same topic to create. Are permitted only navigation b...)
 
Línea 4: Línea 4:
  
  
It is forbidden in the German-speaking subjects Metin2Wiki rings, ie combinations of several articles on the same topic to create. Are permitted only navigation bars or other compilations as well as link boxes, a full list of peer elements. Are only permitted navigation bars or other compilations as well as link boxes, a full list of peer elements.
+
It is forbidden in the German-speaking subjects Metin2Wiki rings, ie combinations of several articles on the same topic to create. Are permitted only navigation bars or other compilations as well as link boxes, a full list of peer elements.
 
 
  
  
 
== Plantillas ==
 
== Plantillas ==
 
  
 
To create a simple Plantilla in an article to use, there are three possibilities:
 
To create a simple Plantilla in an article to use, there are three possibilities:
  
     1. In the main application, you add a Plantilla with ((title)) them. When viewing the page replaces the MediaWiki software that then by the content of the presentation of "title". Changes anyone submitting changes to the presentation.  
+
     1. In the main application, you add a Plantilla with ((title)) them. When viewing the page replaces the MediaWiki software that then by the content of the presentation of "title". Changes anyone submitting changes to the presentation.
     2. ((subst: title)) also adds the contents of the Plantilla, replacing the text directly, but when you save the Plantilla. In this way, for example, new users welcome, which are then on their side even when you edit the text to find the welcome and no confusing presentation presented. Other Plantillas are designed so that they, along with ((subst: title)) tag, for example, the Plantilla deletion request.  
+
     2. ((subst: title)) also adds the contents of the Plantilla, replacing the text directly, but when you save the Plantilla. In this way, for example, welcomes new users, which are then on their side even when you edit the text to find the welcome and no confusing Plantilla: Plantilla. Other Plantillas are designed so that they, along with ((subst: title)) tag, eg the Plantilla deletion request.
     3. ((msgnw: title)) in the article shows the source code of the Plantilla. This feature is rarely, really only to the Declaration of artwork needed.  
+
     3. ((msgnw: title)) in the article shows the source code of the Plantilla. This feature is rarely, really only to the Declaration of artwork needed.
  
Pages that are not in the Plantilla namespace is, you can still be considered a Plantilla, if one room with the name indicates.   For example, ((Metin2Wiki Guide)) Metin2Wiki the page Plantilla as a guide mount. If a page from the article namespace mount, you have to have a colon before the name: This would ((Test)), for example, the test article as a Plantilla mount.  
+
Pages that are not in the Plantilla namespace is, you can still be considered a Plantilla, if one room with the name indicates. For example, ((Metin2Wiki Guide)) the page Metin2Wiki Guide mount as a Plantilla. If a page from the article namespace mount, you have to have a colon before the name: This would ((Test)), for example, the test article as a Plantilla mount.
  
  
Línea 23: Línea 21:
 
== Conditional inclusion of code blocks ==
 
== Conditional inclusion of code blocks ==
  
 
 
 
The following tags should only be used by the process as a Plantilla:
 
The following tags should only be used by the process as a Plantilla:
  
<onlyinclude> <onlyinclude>
+
<onlyinclude>
     If the Plantilla is considered directly, and have <onlyinclude> </ onlyinclude> no effect on everything that stands in between. If the Plantilla but on the other side is involved, will only appear between what <onlyinclude> and </ onlyinclude> stands. With <onlyinclude> can documentation, categories and interwiki links in Plantillas are inserted without the need for this to appear in the articles. There may be two or more non-<onlyinclude> nested blocks are available in a Plantilla.
+
     If the Plantilla is considered directly, and have <onlyinclude> </ onlyinclude> no effect on everything that stands in between. If the Plantilla but on the other side is involved, will only appear between what <onlyinclude> and </ onlyinclude> stands. With <onlyinclude> can documentation, categories and interwiki links in Plantillas are inserted without the need for this to appear in the articles. There may be two or more non-nested <onlyinclude> blocks are available in a Plantilla.
<includeonly> <includeonly>
+
<includeonly>
     Everything in a Plantilla between <includeonly> and </ includeonly>, is displayed only if the Plantilla on the other side involved. With <includeonly> can be, for example, all pages that contain a certain Plantilla to automatically add a category. <includeonly> Can also be used in <onlyinclude> units are available.
+
     Everything in a Plantilla between <includeonly> and </ includeonly>, is displayed only if the Plantilla on the other side involved. With <includeonly> can be, for example, all pages that contain a certain Plantilla to automatically add a category. <includeonly> can also be used in stand <onlyinclude> blocks.
<noinclude> <noinclude>
+
<noinclude>
     Everything in a Plantilla between <noinclude> and </ noinclude>, will only be displayed when the Plantilla itself is considered. <onlyinclude> should delimit the actual text of the submission documentation, categories and Interwikilinks to be preferred. <noinclude> can also be used in stand <onlyinclude> blocks.
+
     Everything in a Plantilla between <noinclude> and </ noinclude>, will only be displayed when the Plantilla itself is considered. <onlyinclude> should delimit the actual text of the submission documentation, categories and Interwikilinks to be preferred. <noinclude> can also be used in stand <onlyinclude> blocks.
  
  
 
== Insert and use parameters ==
 
== Insert and use parameters ==
  
 +
Often be in a Plantilla contents appear, however, from page to page, for example a signature or the name of an individual image. This is achieved with parameters.
  
Often be in a Plantilla contents appear, however, from page to page, for example a signature or the name of an individual image. This is achieved with parameters.
+
In the presentation indicates it through three bodies, curly braces as placeholders, which can either be numbered or through freely chosen names are:
  
In the presentation indicates it through three bodies, curly braces as placeholders, which can either be numbered or through freely chosen names are:
+
According to Wikipedians (((1))) this page is copied from (((2)))
 +
According to Wikipedians Wikipedians ((())) this page is copied from (((source)))
  
According to Wikipedians (((1))) this page is copied from (((2)))
+
A wildcard can also act as Wikilink, if he will have two brackets is surrounded, like [[{{{ 1 }}}]].
According to Wikipedians Wikipedians ((())) this page is copied from (((source)))
 
  
A wildcard can also act as Wikilink, if he will have two brackets is surrounded, like [[{{{ 1 }}}]].
+
If such a Plantilla with parameters, it must be under the name of the Plantilla, each separated by a vertical line, and apart from this, the currently selected values:
  
If such a Plantilla with parameters, it must be under the name of the Plantilla, each separated by a vertical line, and apart from this, the currently selected values:  
+
((Title | wikiwichtel | http://www.irgendwo.de/))
 +
((Title | Wikipedians wikiwichtel = | source =)) http://www.irgendwo.de/
  
((Title | wikiwichtel | http://www.irgendwo.de/))
+
Attention, the first spelling makes the required only if the placeholders in the Plantilla are numbered, unless they are freely appointed. The second notation is recommended for Plantillas, multiple, slightly confusing parameters.
((Title | Wikipedians wikiwichtel = | source =)) http://www.irgendwo.de/
 
  
Attention, the first spelling makes the required only if the placeholders in the Plantilla are numbered, unless they are freely appointed. The second notation is recommended for Plantillas, multiple, slightly confusing parameters.  
+
If a parameter is not filled with content, so it appears empty.
  
If a parameter is not filled with content, so it appears empty.  
+
If a parameter is retrofitted into an existing Plantilla is inserted, may need to use the article be amended accordingly. Will do this, then either the default value of the parameter used, or the change has no implications for the Articles.
  
If a parameter is retrofitted into an existing Plantilla is inserted, may need to use the article be amended accordingly. Will do this, then either the default value of the parameter used, or the change has no implications for the Articles.  
+
MediaWiki also exist in some pre-defined variables, the parameter values are useful, for example the name of the current page (((PAGENAME))).
  
MediaWiki also exist in some pre-defined variables, the parameter values are useful, for example the name of the current page (((PAGENAME))).  
+
Note: parameters in the MediaWiki namespace are used differently ($ 1, $ 2 ...).
  
Note: parameters in the MediaWiki namespace are used differently ($ 1, $ 2 ...).
 
  
  
 
== Default parameter value defined ==
 
== Default parameter value defined ==
  
 
+
 
You can define a parameter so that, for him to use the presentation of no value to be specified. Without this information, then, a pre-defined value used. With a construct like (((1 | ((PAGENAME }}}}} entered, the first parameter, otherwise the name of the item. These constructs burdening the server is not as strong as pre-defined parameter values.
 
You can define a parameter so that, for him to use the presentation of no value to be specified. Without this information, then, a pre-defined value used. With a construct like (((1 | ((PAGENAME }}}}} entered, the first parameter, otherwise the name of the item. These constructs burdening the server is not as strong as pre-defined parameter values.
 
 
  
  
 
== Problem: equal sign in the parameter values ==
 
== Problem: equal sign in the parameter values ==
 +
About Are you a Plantilla parameter value as a text, which contains an equal sign, "thinks" the MediaWiki software, it wanted the suspected parameters before the equal sign the value after the equals sign to assign.
  
 +
This problem occurs for example if you have a URL that contains an equals sign (eg: http://de.wikipedia.org/w/index.php?title=Hilfe:Vorlagen&action=edit&section=3) as a parameter value to a Plantilla will pass.
  
About Are you a Plantilla parameter value as a text, which contains an equal sign, "thinks" the MediaWiki software, it wanted the suspected parameters before the equal sign the value after the equals sign to assign.  
+
To circumvent, imagine the parameter value where the "=" occurs when some of the n-th is, n = progress. (The name of the Plantilla remains in the parameter numbering outside.)
 +
Instead of: ((Example Plantilla | http://.../index.php?title=...&action=edit&section=3))
 +
Correct: ((Example Plantilla | 1 = http://.../index.php?title=...&action=edit&section=3))
  
This problem occurs for example if you have a URL that contains an equals sign (eg: http://de.wikipedia.org/w/index.php?title=Hilfe:Vorlagen&action=edit&section=3) as a parameter value to a Plantilla will pass.
+
The same measure should be noted if one parameter value as a "style" would like to pass:
 
+
Instead of: ((Example Plantilla | first parameter | a <span style="font-size:1.5em;"> b </ span> c))
To circumvent, imagine the parameter value where the "=" occurs when some of the n-th is, n = progress. (The name of the Plantilla remains in the parameter numbering outside.)
 
Instead of: ((Example Plantilla | http://.../index.php?title=...&action=edit&section=3))
 
Correct: ((Example Plantilla | 1 = http://.../index.php?title=...&action=edit&section=3))
 
 
 
The same measure should be noted if one parameter value as a "style" would like to pass:  
 
Instead of: ((Example Plantilla | first parameter | a <span style="font-size:1.5em;"> b </ span> c))  
 
 
Correct: ((Example Plantilla | first parameter | 2 = a <span style="font-size:1.5em;"> b </ span> c))
 
Correct: ((Example Plantilla | first parameter | 2 = a <span style="font-size:1.5em;"> b </ span> c))
  
Línea 89: Línea 81:
 
== Problem: Vertical line in parameter values ==
 
== Problem: Vertical line in parameter values ==
  
 +
 +
Since the character "|" for the separation of parameters is used, it may not even occur in parameter values. It may | be represented, unless you want table syntax in parameter values. There is then the following special Plantillas that are only in parameter values should be used:
 +
Plantilla {{!}} {{!-}} {{!!}} {{!-!}} {{!}}+ {{!~}} {{(!}} {{!)}}
 +
Contents | | - | | | --
 +
| | + | --
 +
! (| |)
  
Since the character "|" for the separation of parameters is used, it may not even occur in parameter values. It may | be represented, unless you want table syntax in parameter values. There is then the following special Plantillas that are only in parameter values should be used:
+
A related problem occurs in the curly brackets "((" and "))" on. If these strings enter, then the interpreter tries the intervening text to worse or deterioration as a Plantilla to interpret. The following Plantillas can be achieved through related queries that only need the interpreter to make substitutions, so it eliminates unnecessary cascades. These Plantillas will only in parameter values are:
Plantilla {{!}} {{!-}} {{!!}} {{!-!}} {{!}}+ {{!~}} {{(!}} {{!)}}
+
Plantilla {{((}} {{))}}
Contents | | - | | | --
+
Content () ()
| | + | --
 
! (| |)
 
 
 
A related problem occurs in the curly brackets "((" and "))" on. If these strings enter, then the interpreter tries the intervening text to worse or deterioration as a Plantilla to interpret. The following Plantillas can be achieved through related queries that only need the interpreter to make substitutions, so it eliminates unnecessary cascades. These Plantillas will only in parameter values are:  
 
Plantilla {{((}} {{))}}  
 
Content () ()  
 
  
For easy presentation of curly brackets for the ((and)) are used for. A more readable version is the text in <nowiki>-tags einzufassen if nothing is used as a Plantilla to be interpreted.
+
For easy presentation of curly brackets for the ((and)) are used for. A more readable version is the text in <nowiki>-tags einzufassen if nothing is used as a Plantilla to be interpreted.
This article is based on the article http://de.wikipedia.org/wiki/Hilfe:Vorlagen from the free encyclopedia Wikipedia and is available under the GNU Free Documentation License. In the Wikipedia is a list of authors available.
 

Revisión del 17:30 7 may 2009


No Theme Rings

It is forbidden in the German-speaking subjects Metin2Wiki rings, ie combinations of several articles on the same topic to create. Are permitted only navigation bars or other compilations as well as link boxes, a full list of peer elements.


Plantillas

To create a simple Plantilla in an article to use, there are three possibilities:

   1. In the main application, you add a Plantilla with ((title)) them. When viewing the page replaces the MediaWiki software that then by the content of the presentation of "title". Changes anyone submitting changes to the presentation.
   2. ((subst: title)) also adds the contents of the Plantilla, replacing the text directly, but when you save the Plantilla. In this way, for example, welcomes new users, which are then on their side even when you edit the text to find the welcome and no confusing Plantilla: Plantilla. Other Plantillas are designed so that they, along with ((subst: title)) tag, eg the Plantilla deletion request.
   3. ((msgnw: title)) in the article shows the source code of the Plantilla. This feature is rarely, really only to the Declaration of artwork needed.

Pages that are not in the Plantilla namespace is, you can still be considered a Plantilla, if one room with the name indicates. For example, ((Metin2Wiki Guide)) the page Metin2Wiki Guide mount as a Plantilla. If a page from the article namespace mount, you have to have a colon before the name: This would ((Test)), for example, the test article as a Plantilla mount.


Conditional inclusion of code blocks

The following tags should only be used by the process as a Plantilla:


    If the Plantilla is considered directly, and have  </ onlyinclude> no effect on everything that stands in between. If the Plantilla but on the other side is involved, will only appear between what  and </ onlyinclude> stands. With  can documentation, categories and interwiki links in Plantillas are inserted without the need for this to appear in the articles. There may be two or more non-nested  blocks are available in a Plantilla.