Difference between revisions of "Template:M links"

From blackwiki
Jump to navigation Jump to search
imported>CLCStudent
m (Reverted edits by 2405:205:100C:84CF:0:0:162:B0 (talk) to last version by DePiep)
 
Line 31: Line 31:
 
-->{{middot}}[[Module:{{{1|Example}}}/doc|/doc]]<!--
 
-->{{middot}}[[Module:{{{1|Example}}}/doc|/doc]]<!--
 
-->{{middot}}[{{fullurl:Module:{{ucfirst:{{{1|Example}}}}}/doc|action=edit}} /doc edit]<!--
 
-->{{middot}}[{{fullurl:Module:{{ucfirst:{{{1|Example}}}}}/doc|action=edit}} /doc edit]<!--
--></span>}}<!--end no/yes
+
--></span>}}<!--end yes/no
 
----- module -----
 
----- module -----
 
--><span style="font-size:85%; {{{liststyle|}}}">{{#if:{{{template|}}}|{{middot}}<!--by param-->[[:Template:{{{template|}}}]]|{{#if:{{{template}}}|<!--auto add when eponymous bluelink-->{{#ifexist:Template:{{{1|}}}|{{middot}}[[:Template:{{{1|}}}]]}}|<!-- blank so no link -->}}}}<!--
 
--><span style="font-size:85%; {{{liststyle|}}}">{{#if:{{{template|}}}|{{middot}}<!--by param-->[[:Template:{{{template|}}}]]|{{#if:{{{template}}}|<!--auto add when eponymous bluelink-->{{#ifexist:Template:{{{1|}}}|{{middot}}[[:Template:{{{1|}}}]]}}|<!-- blank so no link -->}}}}<!--

Latest revision as of 12:03, 19 April 2020

Example (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test)

Template documentation[view] [edit] [history] [purge]

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

Options

Adding link to a template

When an eponymous module exists, it is added:

  • {{m links|Track gauge}}
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:
  • {{m links|Track gauge|template=String}}
Track gauge (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test · Template:string)
  • {{m links|Track gauge|template=}}
Track gauge (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test) (blank so not linked)
Adding sandbox links

When working with the ../sandbox of templates, the sandbox links can be made explicit:

  • {{m links|Track gauge|sandboxlinks=yes}}
Track gauge/sandbox (edit · t · history · diff · links · /test · Source · e · t · hist · links · /subpages · /doc · /doc edit)
This can also help to prevent changing the live version code by accident.

See also

{{t links}}