Difference between revisions of "Template:slink/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m (→‎Examples)
Line 5: Line 5:
  
 
==== Examples ====
 
==== Examples ====
−
Say we want to link to section "General Municipal Boilermakers" on page "Trade Unions":
+
'''Link to a section on a different page:'''
 +
Say we want to link to section "General Municipal Boilermakers" on page "Trade Unions". Then:
 
<pre>{{Section link|Trade Unions|General Municipal Boilermakers}}</pre>
 
<pre>{{Section link|Trade Unions|General Municipal Boilermakers}}</pre>
 
will result in:<br/>
 
will result in:<br/>
 
{{Section link|Trade Unions#General Municipal Boilermakers}}
 
{{Section link|Trade Unions#General Municipal Boilermakers}}
 +
<br/>
  
−
Or if we want to link to a section on the same page, then:
+
''' Link to a section on the same page:'''
 +
Or if we want to link to a section on the same page. Then:
 
<pre>{{Section link|#General Municipal Boilermakers}}</pre>
 
<pre>{{Section link|#General Municipal Boilermakers}}</pre>
 
will result in:<br/>
 
will result in:<br/>

Revision as of 15:57, 9 September 2018

<< Template:slink

Usage

Small template to "pretty print" a section link.

Examples

Link to a section on a different page: Say we want to link to section "General Municipal Boilermakers" on page "Trade Unions". Then:

{{Section link|Trade Unions|General Municipal Boilermakers}}

will result in:
Trade Unions § General Municipal Boilermakers

Link to a section on the same page: Or if we want to link to a section on the same page. Then:

{{Section link|#General Municipal Boilermakers}}

will result in:
§ General Municipal Boilermakers