Template:Prototype TOC/parent/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(param mention)
(category)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Generates the parent sections of a prototype TOC. It does this by recursively looking up the prototype parent of the first parameter and displaying it with [[Template:Prototype_TOC/section]].
Generates the parent sections of a prototype TOC. It does this by recursively looking up the prototype parent of the first parameter, which is a page name, and displaying it with [[Template:Prototype_TOC/section]].


Source code:
Source code:
Line 9: Line 9:
  |link=none
  |link=none
}}</nowiki></pre>
}}</nowiki></pre>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 12:13, 27 August 2023

Generates the parent sections of a prototype TOC. It does this by recursively looking up the prototype parent of the first parameter, which is a page name, and displaying it with Template:Prototype_TOC/section.

Source code:

{{Prototype_TOC/section|{{{1}}}|section-title=true}}{{#ask: [[Has parent ::+]][[{{{1}}}]]
 |?Has parent
 |format=plainlist
 |mainlabel=-
 |template=Prototype TOC/parent
 |link=none
}}