Template:Ml-multi: Difference between revisions
Template page
More actions
m DePiep moved page User:DePiep/ML to User:DePiep/ml |
No edit summary |
||
| Line 4: | Line 4: | ||
|style={{#if:{{{small|}}}|font-size: 90%}} | |style={{#if:{{{small|}}}|font-size: 90%}} | ||
|separator={{{separator|dot}}} | |separator={{{separator|dot}}} | ||
|1={{user:DePiep/ml/{{{1| | |1={{user:DePiep/ml/{{{1|talk}}}|module={{{module|}}}|Project={{{Project|}}}}} | ||
|2={{user:DePiep/ml/{{{2| | |2={{user:DePiep/ml/{{{2|subpg}}}|module={{{module|}}}|Project={{{Project|}}}}} | ||
|3={{user:DePiep/ml/{{{3| | |3={{user:DePiep/ml/{{{3|hist}}}|module={{{module|}}}|Project={{{Project|}}}}} | ||
}}{{#if:{{{sup|}}} | }}{{#if:{{{sup|}}} | ||
|</sup> | |</sup> | ||
Revision as of 12:04, 6 March 2013
[[::Module:]] (User:DePiep/ml/talk · User:DePiep/ml/subpg · User:DePiep/ml/hist)
This documentation is transcluded from Template:Ml-multi/doc.
Usage
This is a metatemplate to produce a linklist for modules. Currently it is only used by {{Mdl}}.
{{ml-multi
| module= [module page name, e.g., String]
| sandbox= [sandbox page in Module namespace]
}}
{{mdl|module=DateI18n}}→ [[::Module:DateI18n]] (User:DePiep/ml/talk · User:DePiep/ml/subpg · User:DePiep/ml/hist)
Possible improvements
- The module's sandbox page is to be entered by parameter. It may be determined automatically.
- Allow modules in other projects than
en:to be linked to, e.g., test2:Module:Coordinates ([1]). - Internally: truly free multi-template (no hardcoded links)
Technically
Inspired by w:template:user-multi, through not fully implemented (link options are hardcoded so far)