Difference between revisions of "Help:Layouts"

Line 13: Line 13:
 
The following tags should only be used by the process as a template:
 
The following tags should only be used by the process as a template:
  
<onlyinclude>
+
 
    If the template is considered directly, and have <onlyinclude> </ onlyinclude> no effect on everything that stands in between. If the template 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 templates 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 template.
 
<includeonly>
 
    Everything in a template between <includeonly> and </ includeonly>, is displayed only if the template on the other side involved. With <includeonly> can be, for example, all pages that contain a certain template to automatically add a category. <includeonly> can also be used in stand <onlyinclude> blocks.
 
<noinclude>
 
    Everything in a template between <noinclude> and </ noinclude>, will only be displayed when the template 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 template 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:
 
 
According to Wikipedians {{{1}}} this page is copied from {{{2}}}
 
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 template with parameters, it must be under the name of the template, 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/
 
 
Attention, the first spelling makes the required only if the placeholders in the template are numbered, unless they are freely appointed. The second notation is recommended for templates, multiple, slightly confusing parameters.
 
 
If a parameter is not filled with content, so it appears empty.
 
 
If a parameter is retrofitted into an existing template 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))).
 
 
Note: parameters in the MediaWiki namespace are used differently ($ 1, $ 2 ...).
 
  
  
Line 60: Line 33:
 
== 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 templates that are only in parameter values should be used:
 
Template {{!}} {{!-}} {{!!}} {{!-!}} {{!}}+ {{!~}} {{(!}} {{!)}}
 
Contents | | - | | | --
 
| | + | --
 
! (| |)
 
  
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 template to interpret. The following templates can be achieved through related queries that only need the interpreter to make substitutions, so it eliminates unnecessary cascades. These templates will only in parameter values are:
 
Template {{((}} {{))}}
 
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 template 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 template to be interpreted.

Revision as of 17:54, 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.




Conditional inclusion of code blocks

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



Insert and use parameters

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.


Problem: equal sign in the parameter values

Problem: Vertical line in parameter values

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 template to be interpreted.