Jump to content

Template:OpenSecrets/doc

From Wikipedia, the free encyclopedia

Template:OpenSecrets displays an external link to a page at OpenSecrets, a website that tracks and publishes data on campaign finance and lobbying. It is intended for use in the external links section of an article.

Usage

[edit]
Unnamed parameters
{{OpenSecrets | user name or number }}
{{OpenSecrets | user name or number | Displayed Name }}
Named parameters
{{OpenSecrets | id= user name or number }}
{{OpenSecrets | id= user name or number | name= Displayed Name }}
Using Wikidata property
{{OpenSecrets}}
{{OpenSecrets | name= Displayed Name }}

Examples

[edit]

Linking to a profile or page

[edit]

In this example, the OpenSecrets ID is d000067823 and the link text is Alphabet Inc.:

https://www.opensecrets.org/orgs/summary?id=d000067823
* {{OpenSecrets | d000067823 | Alphabet Inc. }}

Using Wikidata

[edit]

Generally, Wikidata should contain article subjects' OpenSecrets IDs in property OpenSecrets organization ID (P4691), allowing the ID parameter to be omitted:

* {{OpenSecrets}}
* {{OpenSecrets |name=NAME }}

If the Wikidata property is not defined, the output is:

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

TemplateData for OpenSecrets

Generate a link to a OpenSecrets profile in a standard format.

Template parameters

ParameterDescriptionTypeStatus
Account IDid 1

ID of the OpenSecrets account (part of the web page address, for www.OpenSecrets.com/example/ the account id is "example"). This parameter is optional if Wikidata property P4691 exists, but required if not.

Default
Wikidata property P4691
Example
d000067823
Lineoptional
Display namename 2

Display name for the OpenSecrets account

Default
Name of the page
Example
Alphabet Inc.
Lineoptional

See also

[edit]