Template:DependencyList/doc: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Content added Content deleted
| No edit summary Tag: Reverted | No edit summary Tag: Manual revert | ||
| Line 1: | Line 1: | ||
| {{ | {{Documentation}} | ||
| This template is  | This template is meant to be used on module documentations. | ||
| {{T|DependencyList|<Module name>|category=<true/false>}} | |||
| For example: | |||
| All parameters are optional. If <code>Module name</code> is omitted the page name will be used instead; <code>/doc</code> is automatically removed.  | |||
| <code><nowiki>{{List|c=2 | |||
| </nowiki><br><nowiki>|*Number 1 </nowiki><br><nowiki> | |||
| *Number 2</nowiki><br><nowiki>}}</nowiki></code>  | |||
| If <code>category</code> is <code>false</code> then no categories will be added to the page, the default value is <code>true</code>. | |||
| would give {{List|c=2 | |||
| |*Number 1  | |||
| *Number 2}}. | |||
| ==Examples== | |||
| The 'c' parameter designates the number of columns created. | |||
| {{T|DependencyList|Module:Infobox Monster}} | |||
| {{DependencyList|Module:Infobox Monster|category=false}} | |||
| {{T|DependencyList|Module:Edit button}} | |||
| {{DependencyList|Module:Edit button|category=false}} | |||
| {{T|DependencyList|Module:Mmgsection}} | |||
| {{DependencyList|Module:Mmgsection|category=false}} | |||
Latest revision as of 11:34, 17 October 2024
Template:DependencyList invokes function main in Module:DependencyList using Lua.
This template is meant to be used on module documentations.
{{DependencyList|<Module name>|category=<true/false>}}
All parameters are optional. If Module name is omitted the page name will be used instead; /doc is automatically removed. 
If category is false then no categories will be added to the page, the default value is true.
Examples
{{DependencyList|Module:Infobox Monster}}
Module:Infobox Monster's function main is invoked by Template:Infobox Monster.
Module:Infobox Monster requires Module:Addcommas.
Module:Infobox Monster requires Module:Format eq stat.
Module:Infobox Monster requires Module:Infobox.
Module:Infobox Monster requires Module:Mainonly.
{{DependencyList|Module:Edit button}}
Module:Edit button is required by .
{{DependencyList|Module:Mmgsection}}
Module:Mmgsection's function main is invoked by Template:Mmgsection.
Module:Mmgsection requires Module:Currency.
Module:Mmgsection requires Module:Number.
Module:Mmgsection requires strict.
