User:NBarto/sandbox/navigation/template

Uses LST to retrieve "parentpage" and "navabbr" parameters at current page and parentpage. Because <section> tags are useless when put in a transcluded page, this is not done recursively but by explicitly going through a (limited) number of ancestors. Currently 4, and at least 2 (active page included.) Stops as soon as no parentpage parameter is found.

The template itself takes no parameters.

example

Navigation: [[ |]] → [[User:NBarto/sandbox/navigation/template|]]