Template:Eval

From Moegirlpedia
Revision as of 16:14, 21 February 2022 by LiaMinina (talk | contribs) (Created page with "<onlyinclude>{{ {{{|safesubst:}}}#switch:{{{1|}}} |wikitext = {{ {{{|safesubst:}}}#invoke:Eval|wikitext|{{{2|}}}}} |template = {{ {{{|safesubst:}}}#invoke:Eval|template}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

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.