Template:PolitiFact
Jump to navigation
Jump to search
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| File:Lua-Logo.svg | This template uses Lua: |
Template:PolitiFact displays an external link to a page at PolitiFact, an American nonprofit fact-checking website. It is intended for use in the external links section of an article.
Usage
[edit source]- Unnamed parameters
{{PolitiFact | user name or number }}{{PolitiFact | user name or number | Displayed Name }}
- Named parameters
{{PolitiFact | id= user name or number }}{{PolitiFact | id= user name or number | name= Displayed Name }}
- Using Wikidata property
{{PolitiFact}}{{PolitiFact | name= Displayed Name }}
Examples
[edit source]Linking to a profile or page
[edit source]In this example, the PolitiFact ID is allen-west and the link text is Allen West:
- https://www.politifact.com/personalities/allen-west
* {{PolitiFact | allen-west | Allen West }}- Allen West on PolitiFact, an American nonprofit fact-checking websites
Using Wikidata
[edit source]Generally, Wikidata should contain article subjects' PolitiFact IDs in property (P3393), allowing the ID parameter to be omitted:
* {{PolitiFact}}* {{PolitiFact |name=NAME }}
If the Wikidata property is not defined, the output is:
- PolitiFact on PolitiFact, an American nonprofit fact-checking websitesLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).