Template:Substack handle/doc
| This is a documentation subpage for Template:Substack handle. It may contain usage information, categories and other content that is not part of the original template page. |
| File:Lua-Logo.svg | This template uses Lua: |
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 source]- 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 }}
Examples
[edit source]Unnamed parameters
[edit source]URL:
Usage:
{{Substack handle | kareem | Kareem Abdul-Jabbar }}
Output:
Named parameters
[edit source]URL:
Usage:
{{Substack handle | id= paulkrugman | name= Paul Krugman }}
Output:
No parameters and Wikidata property not defined
[edit source]Usage:
{{Substack handle}}
Output:
- Substack handle/doc on SubstackLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
TemplateData
[edit source]TemplateData for Substack handle
This template displays an external link to a page at Substack. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 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.
| String | optional |
| name | name 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.
| String | optional |