Template:Root/doc

From Bonkipedia
Revision as of 18:02, 12 November 2022 by ManfredoDo (talk | contribs) (1 revision imported: Template documentation pages)
(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