Template:Root/doc: Difference between revisions

From Bonkipedia
[[mw:]]>~riley
m (→‎Usage: Fix lint errors)
 
m (1 revision imported: Template documentation pages)
 
(No difference)

Latest revision as of 18:02, 12 November 2022

Usage

{{subpages}} makes links within a set of subpages, according to a common root. Often this will be within a small micro lexicon for an extension or similar. It takes one anonymous argument which is the destination sibling page. The default if this argument is missing will be the immediate superpage in the hierarchy. Another named argument level sets the number of subparts to extract. Default level is two (2).

  • {{root}}: builds a link for the superpage in the hierarchy
  • {{root|example}}: builds a link for the sibling subpage example in the hierarchy
  • {{root|example|level=1}}: builds a link for the example sibling at level one (1) in the hierarchy