Difference between revisions of "Template:Eval/doc"

From Moegirlpedia
Jump to: navigation, search
(Created page with "This module/template provides the possibility to parse almost any Wiki text almost anywhere. == Usage == Eval in the following format refers to: * Write <code>#invoke:Eval</...")
 
(Expanding a template)
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
  
 
=== Expanding a template ===
 
=== Expanding a template ===
<code>{{ Eval | template | template name | parameter list... }} </code>
+
<div class="mw-code">{{ <nowiki/> ''Eval'' | template | '''template name''' | '''parameter list'''... }} </div>
  
 
;'''Parameters'''
 
;'''Parameters'''

Latest revision as of 19:38, 23 February 2022

This module/template provides the possibility to parse almost any Wiki text almost anywhere.

Usage

Eval in the following format refers to:

  • Write #invoke:Eval when using modules;
  • Write Eval when using templates.

Expanding a template

{{ Eval | template | template name | parameter list... }}
Parameters
  • Template name: The name of the template to be expanded, without adding the Template:namespace prefix;
  • Parameter list: all parameters of the template. The format is:
    • parameter name = wikitext or wikitext;
    • When the parameter name is a number (or does not display and write [parameter name]=), the parameter value can write the parameter text of multiple templates to be expanded, such as [template parameter 1]|[template parameter 2]|…. Finally, the numbered parameters will be concatenated in order to become the anonymous parameter list of the template to be expanded;
    • When the parameter name is not a number, it will be equivalent to writing the parameter of the same name of the template to be expanded. These parameters will be concatenated after the anonymous parameter list.