Template:Template parameter value/doc

Usage
The purpose of this template is to gain the value of a template's parameter (named or numbered) 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.

This template works with named or numbered parameters; i.e. it can get the first parameter of Start date (the year). This template is case-sensitive; i.e. setting Viewers will not match viewers. Make sure that you are listing the article where the template exists, not where it's transcluded to.

Examples

 * 24th usage of |OriginalAirDate= in the 3rd usage of { {Episode table}} in List of Lucifer episodes


 * 2nd usage of |archiveurl= in the 1st usage of { {Series overview}} in List of Agents of S.H.I.E.L.D. episodes


 * 1st usage of |LineColor= in the 2nd usage of { {Episode list/sublist}} in Vikings (season 4)


 * 1st usage of |num_episodes= in the 1st usage of { {Infobox television}} in 12 Monkeys (TV series)


 * 3rd parameter in the 8th usage of { {Start date}} in The Big Bang Theory

Template data
{	"params": { "1": {			"label": "Page", "description": "The page to grab templates from", "type": "wiki-page-name", "required": true },		"2": {			"label": "Template", "description": "The template to look for in the target page", "type": "string", "required": true },		"3": {			"label": "Template index", "description": "Which occurrence of the template to check for parameters in", "type": "number" },		"4": {			"label": "Parameter", "description": "The name of the parameter to check for", "type": "string", "required": true },		"5": {			"label": "Parameter index", "description": "Which occurrence of the parameter to check for in the template. Does not apply if \"Ignore subtemplates\" is used", "type": "number" },		"ignore_subtemplates": { "aliases": [ "ist" ],			"label": "Ignore subtemplates", "description": "Giving this a value will make the template ignores subtemplates and their parameters when looking for a value in a template. Can be used for more precise grabbing of parameters as opposed to using a parameter index", "type": "boolean", "default": "no" },		"ignore_blank": { "label": "Ignore blank values", "description": "Ignores keys with blank values when deciding which index of a parameter to use. This option does nothing when using ignore_subtemplates", "type": "boolean", "default": "no" },		"only_subtemplates": { "label": "Only subtemplates", "description": "The inverse to ignore_subtemplates. Only keys that are in subtemplates of the template requested will be considered. ignore_subtemplates will take precedence over this option if both are enabled", "type": "boolean", "default": "no" },		"dontprocess": { "label": "Don't process", "description": "If enabled, the returning result won't be processed into wikitext, and will be returned as raw data.", "type": "boolean", "default": "no" },		"treat_as_regex": { "label": "Treat as regex", "description": "Treats the Templates input as a lua regex instead of a raw string", "type": "boolean", "default": "no" }	},	"description": "A template to grab the value of parameters from templates on a page", "format": "inline", "paramOrder": [ "1",		"2",		"3",		"4",		"5",		"ignore_subtemplates", "ignore_blank", "only_subtemplates", "dontprocess", "treat_as_regex" ] }