Jump to content

Template:Medium.com/doc

From Wikipedia, the free encyclopedia

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

Usage

[edit]
Unnamed parameters
{{Medium.com | account_name }}
{{Medium.com | account_name | Displayed Name }}
Named parameters
{{Medium.com | id= account_name }}
{{Medium.com | id= account_name | name= Displayed Name }}
Using Wikidata property P3899
{{Medium.com}}
{{Medium.com | name= Displayed Name }}

Examples

[edit]

Unnamed parameters

[edit]

URL:

https://medium.com/@ev

Usage:

{{Medium.com | ev | Ev Williams }}

Output:

Ev Williams on Medium

Named parameters

[edit]

URL:

https://medium.com/@stephthegeek

Usage:

{{Medium.com | id= stephthegeek | name= Stephanie Pakrul }}

Output:

Stephanie Pakrul on Medium

No parameters and Wikidata property not defined

[edit]

Usage:

{{Medium.com}}

Output:

{{Medium.com}} 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:Medium.com in articles based on its TemplateData.

TemplateData for Medium.com

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: ev is the account name in https://medium.com/@ev. This parameter is optional if Wikidata property P3899 exists, but required if not.

Default
Wikidata property P3899
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