Difference between revisions of "Template:slink/doc"
Jump to navigation
Jump to search
m (→Link to a section on a different page) |
m (→Link to a section on the same page) |
||
| Line 15: | Line 15: | ||
===== Link to a section on the same page ===== | ===== Link to a section on the same page ===== | ||
Or if we want to link to a section on the same page. Then: | Or if we want to link to a section on the same page. Then: | ||
| − | <pre>{{ | + | <pre>{{slink|#General Municipal Boilermakers}}</pre> |
will result in:<br/> | will result in:<br/> | ||
{{slink|#General Municipal Boilermakers}} | {{slink|#General Municipal Boilermakers}} | ||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 11:46, 26 September 2018
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