Template:Has parent: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#ask: Has parent ::+[[{{{1}}}]] |?Has parent |format=plainlist |mainlabel=- |template=Has parent |link=none }} » [[{{{1}}}]]</includeonly><noinclude>{...")
 
(Added category)
 
Line 5: Line 5:
  |template=Has parent
  |template=Has parent
  |link=none
  |link=none
}} » [[{{{1}}}]]</includeonly><noinclude>{{doc}}</noinclude>
}} » [[{{{1}}}]]</includeonly><noinclude>{{doc}}[[Category:Prototype documentation templates]]</noinclude>

Latest revision as of 14:22, 26 July 2019

[View] [Edit] [Page history]

Documentation

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
List of all templates