قالب:SP-MSP
This template is used to construct a link to the Scottish Parliament website's page on an individual Member of the Scottish Parliament (MSP).
The link may be formatted in several different ways.
Usage
Basic usage
The basic usage takes the MSP's name from the title of the article, and creates a link formatted in a style suited to the external links section of an article:
{{SP-MSP}}
e.g. on the article Tricia Marwick,
{{SP-MSP}}→ قالب:SP-MSP/core
Specified name
If the name of the MSP is not the same as the current article, the name may be specified with a single, unnamed parameter:
e.g.
{{SP-MSP|Tricia Marwick}}→ قالب:SP-MSP/core{{SP-MSP|Ken Macintosh}}→ قالب:SP-MSP/core{{SP-MSP|Alison Johnstone}}→ قالب:SP-MSP/core
Modes
The template supports four different modes, for use in different contexts. These are specified using the |mode= parameter:
- mode=profile (default)
{{SP-MSP|Tricia Marwick|mode=profile}}→ قالب:SP-MSP/core
- mode=cite (for use inside
<ref>...</ref>tags)
{{SP-MSP|Tricia Marwick|mode=cite}}→ قالب:SP-MSP/core
- mode=url (just the bare URL of the profile page)
{{SP-MSP|Tricia Marwick|mode=url}}→ قالب:SP-MSP/core
- mode=nameonly (the only text is the linked name)
{{SP-MSP|Tricia Marwick|mode=nameonly}}→ قالب:SP-MSP/core
Sub-templates
- {{SP-MSP/core}}
- {{SP-MSP/URL}}
| The above documentation is transcluded from قالب:SP-MSP/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |