Template:\: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "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 <nowiki>{{==|id||FunctionName}}</nowiki>...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:


;Example
;Example
  <nowiki>{{==|id||FunctionName}}</nowiki>
  <nowiki>{{\|id||FunctionName}}</nowiki>
 
can be substituted for
<nowiki>{{../id||FunctionName}}</nowiki>
which no longer works correctly in new fandom version of wikimedia
 


[[Category:Navigation templates]]
[[Category:Navigation templates]]
Line 20: Line 15:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--


-->{{{{NAMESPACE}}/{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}}<!--
-->{{ {{NAMESPACE}}/{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}}<!--


--></includeonly></onlyinclude>
--></includeonly></onlyinclude>

Latest revision as of 03:53, 10 August 2023

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}}

Template