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>Waldyrious
(→‎Usage: update documentation)
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:
 
<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>
 
<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>

Revision as of 09:40, 14 July 2017

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