Difference between revisions of "Template:M links"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 1: Line 1:
<span class="plainlinks nourlexpansion lx" style="{{{style|}}}">{{yesno|{{{sandboxlinks|no}}}<!--
+
<span class="plainlinks nourlexpansion lx" style="{{{style|}}}">{{{prefix|}}} {{yesno|{{{sandboxlinks|no}}}<!--
 
----- sandboxlinks=no -----
 
----- sandboxlinks=no -----
 
-->|no=[[:Module:{{{1|Example}}}|{{ucfirst:{{{1|Example}}}}}]]&#x20;<!--
 
-->|no=[[:Module:{{{1|Example}}}|{{ucfirst:{{{1|Example}}}}}]]&#x20;<!--
Line 14: Line 14:
  
 
----- sandboxlinks=yes -----
 
----- sandboxlinks=yes -----
-->|yes='''M:{{{1|Example}}}'''[[:Module:{{{1|Example}}}/sandbox|/sandbox]]&#x20;<!--
+
-->|yes='''{{{1|Example}}}'''[[:Module:{{{1|Example}}}/sandbox|/sandbox]]&#x20;<!--
 
--><span style="font-size:85%; {{{liststyle|}}}">(<span style="background:#dbffdb;"><!--
 
--><span style="font-size:85%; {{{liststyle|}}}">(<span style="background:#dbffdb;"><!--
 
-->[{{fullurl:Module:{{ucfirst:{{{1|Example}}}}}/sandbox|action=edit}} edit]<!--
 
-->[{{fullurl:Module:{{ucfirst:{{{1|Example}}}}}/sandbox|action=edit}} edit]<!--
Line 34: Line 34:
 
----- 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 -->}}}}<!--
-->)</span></span><noinclude>
+
-->)</span></span> {{suffix|}}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 06:54, 7 April 2014

Example (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test) Template:Suffix}

50px 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) Template:Suffix}
  • 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) Template:Suffix}
  • {{m links|Track gauge|template=}}
Track gauge (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test) Template:Suffix} (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) Template:Suffix}
This can also help to prevent changing the live version code by accident.

See also

{{t links}}