Template:OpenSecretsPeople

![]() | This template uses Lua: |
Template:OpenSecretsPeople 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
{{OpenSecretsPeople | user name or number }}
{{OpenSecretsPeople | user name or number | Displayed Name }}
- Named parameters
{{OpenSecretsPeople | id= user name or number }}
{{OpenSecretsPeople | id= user name or number | name= Displayed Name }}
- Using Wikidata property
{{OpenSecretsPeople}}
{{OpenSecretsPeople | 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/personal-finances/net-worth?cid=d000067823
* {{OpenSecrets | d000067823 | Alphabet Inc. }}
- Alphabet Inc. on OpenSecrets, a website that tracks and publishes data on campaign finance and lobbying
Using Wikidata
[edit]Generally, Wikidata should contain article subjects' OpenSecrets IDs in property OpenSecrets people ID (P2686), allowing the ID parameter to be omitted:
* {{OpenSecretsPeople}}
* {{OpenSecretsPeople |name=NAME }}
If the Wikidata property is not defined, the output is:
- {{OpenSecrets}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for OpenSecretsPeople
Generate a link to a OpenSecrets profile in a standard format.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Account ID | id 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 P2686 exists, but required if not.
| Line | optional |
Display name | name 2 | Display name for the OpenSecrets account
| Line | optional |
See also
[edit]- {{OpenSecrets}} which uses Wikidata property Facebook page ID (P4003)
- OpenSecrets