Difference between revisions of "Template:Ballotpedia"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(trim any leading spaces from first unnamed parameter that would break link, replace {{PAGENAME}} with {{PAGENAMEBASE}} to remove any disambiguation with article name is used as link text.)
imported>Elegie
(Use HTTPS for the Ballotpedia link in order to provide increased user privacy/security)
Line 1: Line 1:
[http://ballotpedia.org/{{trim|{{{1}}}}} {{{2|{{PAGENAMEBASE}}}}}] at [[Ballotpedia]]<noinclude>
+
[https://ballotpedia.org/{{trim|{{{1}}}}} {{{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 22:50, 10 May 2017

Template:PAGENAMEBASE at Ballotpedia

Template documentation[view] [edit] [history] [purge]

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