Template:Root/doc

From Bonkipedia
Revision as of 23:47, 5 April 2020 by [[mw:]]>~riley (→‎Usage: Fix lint errors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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