Template:Has parent/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "Recursively lists all base classes of the prototype type given as the first parameter. Source code: <pre><nowiki>{{#ask: Has parent ::+[[{{{1}}}]] |?Has parent |format=p...")
 
(category)
 
Line 10: Line 10:


» [[PrototypeBase]] » [[Prototype/Item]] » [[Prototype/Tool]] » [[Prototype/Armor]]
» [[PrototypeBase]] » [[Prototype/Item]] » [[Prototype/Tool]] » [[Prototype/Armor]]
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 12:11, 27 August 2023

Recursively lists all base classes of the prototype type given as the first parameter. Source code:

{{#ask: [[Has parent ::+]][[{{{1}}}]]
 |?Has parent
 |format=plainlist
 |mainlabel=-
 |template=Has parent
 |link=none
}} » [[{{{1}}}]]

Example: Output for Prototype/Armor:

» PrototypeBase » Prototype/Item » Prototype/Tool » Prototype/Armor