Difference between revisions of "Template:Ballotpedia"

From blackwiki
Jump to navigation Jump to search
(Url format changed, now redirecting)
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.)
Line 1: Line 1:
[http://ballotpedia.org/{{{1}}} {{{2|{{PAGENAME}}}}}] at [[Ballotpedia]]<noinclude>
+
[http://ballotpedia.org/{{trim|{{{1}}}}} {{{2|{{PAGENAMEBASE}}}}}] at [[Ballotpedia]]<noinclude>
 
{{documentation}}
 
{{documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
+
<!-- Add categories to the /doc subpage and interwikis at Wikidata -->
 
</noinclude>
 
</noinclude>

Revision as of 23:25, 1 September 2015

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