Template:M links
Example (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test)
This template provides a list of links to a module. There are no restricted links (such as adding protection). A link to a related template can be added.
Usage
- <syntaxhighlight lang="text" class="" style="" inline="1">{{m links|Track gauge}}</syntaxhighlight> →
Track gauge (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test · Template:Track gauge)
- <syntaxhighlight lang="text" class="" style="" inline="1">{{m links|Track gauge|sandboxlinks=yes}}</syntaxhighlight> →
Track gauge/sandbox (edit · t · history · diff · links · /test · Source · e · t · hist · links · /subpages · /doc · /doc edit · Template:Track gauge)
Options
- Adding link to a template
When an eponymous module exists, it is added:
- <syntaxhighlight lang="text" class="" style="" inline="1">{{m links|Track gauge}}</syntaxhighlight> →
- Track gauge (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test · Template:Track gauge)
- Any other module (or none) can be linked:
- <syntaxhighlight lang="text" class="" style="" inline="1">{{m links|Track gauge|template=String}}</syntaxhighlight> →
- Track gauge (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test · Template:string)
- <syntaxhighlight lang="text" class="" style="" inline="1">{{m links|Track gauge|template=}}</syntaxhighlight> →
- Adding sandbox links
When working with the ../sandbox
of templates, the sandbox links can be made explicit:
- <syntaxhighlight lang="text" class="" style="" inline="1">{{m links|Track gauge|sandboxlinks=yes}}</syntaxhighlight> →
- This can also help to prevent changing the live version code by accident.
See also
{{t links}}