Template:PolitiFact/doc
Jump to navigation
Jump to search
| icon | This is a documentation subpage for Template:PolitiFact. 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: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/doc on PolitiFact, an American nonprofit fact-checking websitesLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
See also
[edit source]