Template:Babel: Difference between revisions
Jump to navigation
Jump to search
m →Custom headers, footers etc.: fixed userbox per userbox migration |
Passing arguments, including user boxes from the User: namesapce |
||
Line 112: | Line 112: | ||
*[[Template:Babel]] - Allows 1 to 100 boxes.<br />Format: <nowiki>{{Babel|<box1>|<box2>|<box3>...}}</nowiki> | *[[Template:Babel]] - Allows 1 to 100 boxes.<br />Format: <nowiki>{{Babel|<box1>|<box2>|<box3>...}}</nowiki> | ||
*[[Template:Babel-N]] - Allows any number of boxes.<br>Format: <nowiki>{{Babel-N |1={{User <box1>}}{{User <box2>}}{{User <box3>}}...}}</nowiki> | *[[Template:Babel-N]] - Allows any number of boxes.<br>Format: <nowiki>{{Babel-N |1={{User <box1>}}{{User <box2>}}{{User <box3>}}...}}</nowiki> | ||
==Passing parameters to included user boxes== | |||
The trick is to use the {{tl|!}} template. See below for an example. | |||
==User boxes from the "User:" namespaces== | |||
The Babel box prefixes its arguments with "User ", so it will work with the User: namespace. For example, this would include the <nowiki>{{</nowiki>[[:User:Urhixidur/Userboxes/Asteroid|User:Urhixidur/Userboxes/Asteroid]]}} user box, and pass it a parameter as well: | |||
<pre> | |||
{{Babel|<box1>|<box2>|:Urhixidur/Userboxes/Asteroid{{!}}<parameter>|<box 4>|...}} | |||
</pre> | |||
==Custom headers, footers etc.== | ==Custom headers, footers etc.== |