Template:--

From AddOn Studio
Revision as of 23:59, 4 February 2021 by Bear (talk | contribs) (Created page with "Uses named template in 'Template' namespace with the same root page as the caller's root page. Allows modularization and shorter more readable pages. Category:Navigation t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Calls template with the same sub-page root name, in the 'Template' namespace. Allows for modularization and shorter more readable pages.

Usage
  • 1 - name of template, or path to template after root page
  • 2 to 5 - parameters 1 to 4 to be passed to called template
Note: Can only be used outside Template namespace. Otherwise using in a 2nd template farther down will causes wm to falsely think its stuck in a loop.
Example
{{--|id||FunctionName}}

can be substituted for

{{../id||FunctionName}}

which no longer works correctly in new fandom version of wikimedia


Template