Jump to content

Template:Substack handle/doc

From Wikipedia, the free encyclopedia

Template:Substack handle displays an external link to a user's profile page at Substack's website. It is intended for use in the external links section of an article.

Please note: This is for linking to the profile pages of individual users. URLs for these pages are in the format substack.com/@handle. They should not be confused with URLs used for newsletter pages, which begin newsletter.substack.com.

Usage

[edit]
Unnamed parameters
{{Substack handle | account_name }}
{{Substack handle | account_name | Displayed Name }}
Named parameters
{{Substack handle | id= account_name }}
{{Substack handle | id= account_name | name= Displayed Name }}
Using Wikidata property P13568
{{Substack handle}}
{{Substack handle | name= Displayed Name }}

Examples

[edit]

Unnamed parameters

[edit]

URL:

https://substack.com/@kareem

Usage:

{{Substack handle | kareem | Kareem Abdul-Jabbar }}

Output:

Kareem Abdul-Jabbar on Substack

Named parameters

[edit]

URL:

https://substack.com/@paulkrugman

Usage:

{{Substack handle | id= paulkrugman | name= Paul Krugman }}

Output:

Paul Krugman on Substack

No parameters and Wikidata property not defined

[edit]

Usage:

{{Substack handle}}

Output:

{{Substack handle}} template missing ID and not present in Wikidata.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Substack handle in articles based on its TemplateData.

TemplateData for Substack handle

This template displays an external link to a page at Medium. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the account name in the URL. Example: kareem is the account name in https://substack.com/@kareem. This parameter is optional if Wikidata property P13568 exists, but required if not.

Default
Wikidata property P13568
Stringoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional