Yahoo Web Search

Search results

  1. A template is a Wikipedia page created to be included in other pages. It usually contains repetitive material that may need to show up on multiple articles or pages, often with customizable input. Templates sometimes use MediaWiki parser functions, nicknamed "magic words", a simple scripting language .

  2. People also ask

  3. How a page is created. All Wikipedia pages are created by accessing a page title that does not yet exist, usually by clicking on a red-colored link (which denotes non-existence, as opposed to a blue link which, with some exceptions, indicates the linked page exists).

    • General
    • Parameters
    • Examples
    • Hints and Workarounds
    • Process
    • Coding A Template
    • Handling Parameters
    • System Variables and Conditional Logic
    • Nesting Templates
    • Inclusion Control: Noinclude, Includeonly, and Onlyinclude

    Using a template is much like calling a function in a programming language – call it, and it returns a value. For a template, the return value is called the expansionof the template and is treated as part of the calling page source. Like functions, some templates accept parameters that affect the output. Calling a template causes it to be either tr...

    The basic transclusion syntax given above can be extended with parameters, which are used to control the template's output. The syntax for this is{{Template name|parameter|parameter|...}}where Template name is the name of the template, and each parameter may either contain just a value (these are called unnamed parameters) or be of the form name=va...

    Note: If you wish to experiment with any of these, you can use the template sandbox or your user page or sandbox. You can try out your template with Special:ExpandTemplates. An example of a very simple template can be found at Template:TM, which expands to wikitext that places the trademark symbol (™), linked to the trademarkarticle, at that point ...

    The following points may be worth noting when using templates: 1. Templates are not the only method of transclusion, in some cases, other methods such as selective transclusionare more appropriate. 2. An unnamed parameter value cannot contain an ordinary equals sign, as this would be interpreted in the parameter specification as a named parameter (...

    Templates are just Wikipedia pages. They are created, deleted, and edited in much the same way as any other page.

    Anything that can be included on a normal page or article can be included on a template, including other templates (called subtemplates). Templates often make use of programming features—parameters, parser functions, and other magic words—which allow the transcluded content to vary depending on context. There are also special tags to control which ...

    In template code, the value of a parameter is represented by items enclosed between triple braces, which is a parameter reference. 1. The code {{{xxx}}}expands to the value of the parameter named "xxx". 2. The codes {{{1}}}, {{{2}}}, and so on are expanded to the first, second, and so on unnamed parameters. (Note that an unnamed parameter can alter...

    Template code often makes use of the variables and parser functions described at Help:Magic wordsto make the template's behavior depend on the environment in which it is included (such as the current time or namespace). Parser functions can be used for some arithmetic calculations and string manipulations on variables and parameter values, but cert...

    A template may call another template—this is called nesting and the called template is called, in this context, a subtemplate. When WikiMedia expands the template, it expands subtemplates as the calls to them appear, so that the final product is essentially the result of expanding templates from the most deeply nested out. While fairly straightforw...

    By default, when a page calls a template, MediaWiki includes the expansion of the entire template in the calling page. However, it is possible to modify that behavior, using tags that specify which parts of the template code are to be included. This makes it possible for the template to contain information only for display when the template page it...

  4. See the documentation of each module about how to create the appropriate template on your wiki and link it to the Lua code. Some CSS or JavaScript enhancements on Dev Wiki also have related templates.

  5. 4 days ago · Templates are standard wiki pages whose content is designed to be transcluded (embedded) inside other pages. Templates follow a convention that the name is prefixed with "Template:", assigning it to that namespace; besides this, you can create them like any other wiki page.

  6. Wikipedia:Article Layout Template. This is a dummy article to help you get started with creating pages in the wiki. The first paragraph is usually a short dictionary-style definition of the subject matter. The gives the reader a quick answer, which may be all they required, and reassures them that they have come to the right page.

  7. For a list of tools that can help create some of the templates below, see: Wikipedia:Citation tools. Citations are commonly embedded in reference templates. For more information, see: Wikipedia:Footnotes.

  1. People also search for