Difference between revisions of "Template:slink/doc"

From WikiCorporates
Jump to navigation Jump to search
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<small><< [[Template:slink]]</small>
+
__NOTOC__
−
 
 
 
=== Usage ===
 
=== Usage ===
 
Small template to "pretty print" a section link.
 
Small template to "pretty print" a section link.
  
 
==== Examples ====
 
==== Examples ====
−
Say we want to link to section "General Municipal Boilermakers" on page "Trade Unions":
+
===== Link to a section on a different page =====
−
<pre>{{Section link|Trade Unions|General Municipal Boilermakers}}</pre>
+
Say we want to link to section "General Municipal Boilermakers" on page "Trade Unions". Then:
 +
<pre>{{slink|Trade Unions#General Municipal Boilermakers}}</pre>
 
will result in:<br/>
 
will result in:<br/>
−
{{Section link|Trade Unions#General Municipal Boilermakers}}
+
{{slink|Trade Unions#General Municipal Boilermakers}}
 +
<p>&nbsp;</p>
  
−
Or if we want to link to a section on the same page, then:
+
===== Link to a section on the same page =====
−
<pre>{{Section link|#General Municipal Boilermakers}}</pre>
+
Or if we want to link to a section on the same page. Then:
 +
<pre>{{slink|#General Municipal Boilermakers}}</pre>
 
will result in:<br/>
 
will result in:<br/>
−
{{Section link|#General Municipal Boilermakers}}
+
{{slink|#General Municipal Boilermakers}}
  
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
+
<includeonly>[[Category:WikiCorporates templates]]</includeonly>

Latest revision as of 14:45, 30 May 2020

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:

{{slink|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:

{{slink|#General Municipal Boilermakers}}

will result in:
§ General Municipal Boilermakers