Jump to content

Template:Template parameter value/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Alex 21 (talk | contribs) at 15:39, 21 June 2018 (Create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Usage

The purpose of this template is to gain the value of a template's parameter in an article, for usage elsewhere. For example, gaining the value of the |num_episodes= parameter in the {{Infobox television}} template in an article, to use in another article.

Syntax

Main overview

{{Template parameter value|ARTICLE|TEMPLATE|COUNT|PARAMETER|COUNT}}

Examples

Basic example

{{Template parameter value|List of Lucifer episodes|Episode table|3|OriginalAirDate|24}}

May 14, 2018 (2018-05-14)

{{Template parameter value|Lucifer (TV series)|Infobox television||num_episodes}}

93

Parameters

Parameter Description Type Status
1 Article The article where the template and value exist.
Example: List of Lucifer episodes
Text Required
2 Template The template where the value is held in the form of a parameter.
Example: Episode table
Text Required
3 Numbered usage of template How many usages of the above template are counted. Setting to blank (do not exclude) sets the value to 1. Exclusion means that the third parameter will become the parameter.
Example: 24
Text Optional setting
Required inclusion
4 Parameter The parameter that holds the required value.
Example: OriginalAirDate
Text Required
5 Numbered usage of parameter How many usages of the above parameter are counted within the found template. Setting to blank sets the value to 1. Can be excluded.
Example: 3
Text Optional