Difference between revisions of "Template:Ballotpedia"
Jump to navigation
Jump to search
imported>Elegie (Use HTTPS for the Ballotpedia link in order to provide increased user privacy/security) |
imported>Waldyrious (add default value for first parameter) |
||
| Line 1: | Line 1: | ||
| − | [https://ballotpedia.org/{{trim|{{{1}}}}} {{{2|{{PAGENAMEBASE}}}}}] at [[Ballotpedia]]<noinclude> | + | [https://ballotpedia.org/{{trim|{{{1|{{urlencode:{{PAGENAMEBASE}}|WIKI}}}}}}} {{{2|{{PAGENAMEBASE}}}}}] at [[Ballotpedia]]<noinclude> |
{{documentation}} | {{documentation}} | ||
<!-- Add categories to the /doc subpage and interwikis at Wikidata --> | <!-- Add categories to the /doc subpage and interwikis at Wikidata --> | ||
</noinclude> | </noinclude> | ||
Revision as of 09:35, 14 July 2017
Template:PAGENAMEBASE at Ballotpedia
Function
Link to a Ballotpedia article.
Usage
Provide the url path (after the first level) as the first parameter, and the name as the second parameter. Both parameters are optional, and will fall back to the article title as a default value.
Example: {{Ballotpedia|Chuck_Soderberg|Chuck Soderberg}} → Chuck Soderberg at Ballotpedia
| The above documentation is transcluded from Template:Ballotpedia/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |