Difference between revisions of "Help:Layouts"

Line 5: Line 5:
  
  
== Templates ==
 
  
To create a simple template in an article to use, there are three possibilities:
 
 
    1. In the main application, you add a template 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 template, replacing the text directly, but when you save the template. 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 Template: Template. Other templates are designed so that they, along with {{ubst: title}} tag, eg the template deletion request.
 
    3. {{msgnw: title}} in the article shows the source code of the template. This feature is rarely, really only to the Declaration of artwork needed.
 
 
Pages that are not in the template namespace is, you can still be considered a template, if one room with the name indicates. For example, {{Metin2Wiki Guide}} the page Metin2Wiki Guide mount as a template. 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 template mount.
 
  
  
Line 64: Line 56:
  
 
== Problem: equal sign in the parameter values ==
 
== Problem: equal sign in the parameter values ==
About Are you a template 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 template will pass.
 
 
To circumvent, imagine the parameter value where the "=" occurs when some of the n-th is, n = progress. (The name of the template remains in the parameter numbering outside.)
 
Instead of: ((Example Template | http://.../index.php?title=...&action=edit&section=3))
 
Correct: ((Example Template | 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 Template | first parameter | a <span style="font-size:1.5em;"> b </ span> c))
 
Correct: ((Example Template | first parameter | 2 = a <span style="font-size:1.5em;"> b </ span> c))
 
  
  

Revision as of 16:53, 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:


    If the template is considered directly, and have  </ onlyinclude> no effect on everything that stands in between. If the template but on the other side is involved, will only appear between what  and </ onlyinclude> stands. With  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  blocks are available in a template.