Difference between revisions of "Template:Ballotpedia/doc"

From blackwiki
Jump to navigation Jump to search
imported>Marquardtika
(Not apparently a wiki based on this: http://ballotpedia.org/Ballotpedia:About)
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
Provide the url path (after the first level) as the first parameter, and an optional name as the second parameter. If no name is provided for the second parameter, the template will use the name of the Wikipedia article.
+
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.
  
<nowiki>{{Ballotpedia|Ballotpedia name|name}}</nowiki>
+
Example: {{tlx|Ballotpedia|Chuck_Soderberg|Chuck Soderberg}} → {{Ballotpedia|Chuck_Soderberg|Chuck Soderberg}}
  
Example:
+
<includeonly>{{Sandbox other||
<br><nowiki>{{Ballotpedia|Chuck_Soderberg|Chuck Soderberg}}</nowiki>
 
<br>Appears as:
 
<br>{{Ballotpedia|Chuck_Soderberg|Chuck Soderberg}}
 
 
 
Example using default name:
 
<br><nowiki>{{Ballotpedia|Chuck_Soderberg}}</nowiki>
 
<br>Appears as:
 
<br>{{Ballotpedia|Chuck_Soderberg}}
 
 
 
<includeonly>
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
 
[[Category:Templates containing links to non-Wikimedia wikis]]
 
[[Category:Templates containing links to non-Wikimedia wikis]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
}}</includeonly>
</includeonly>
 

Latest revision as of 23:35, 23 April 2020

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