Difference between revisions of "Template:Aaregistry/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Jay D. Easy
blackwiki>Jay D. Easy
Line 1: Line 1:
 
{{Documentation subpage}}__NOTOC__
 
{{Documentation subpage}}__NOTOC__
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
+
{{template shortcut|aareg}}
 
'''Aaregistry''' displays an external link to a page at the African American Registry.
 
'''Aaregistry''' displays an external link to a page at the African American Registry.
 
: <code><nowiki>{{aaregistry|</nowiki>''Firstname Lastname'' '''or''' ''article title''|''Displayname''<nowiki>}}</nowiki></code>
 
: <code><nowiki>{{aaregistry|</nowiki>''Firstname Lastname'' '''or''' ''article title''|''Displayname''<nowiki>}}</nowiki></code>
  
 
=== Usage ===
 
=== Usage ===
{{template shortcut|aareg}}
 
 
To create a link to the page for [[Paul Winfield]], use only <code><nowiki>{{aaregistry}}</nowiki></code>. The template uses {{tlx|PAGENAMEBASE}} to create a default link.
 
To create a link to the page for [[Paul Winfield]], use only <code><nowiki>{{aaregistry}}</nowiki></code>. The template uses {{tlx|PAGENAMEBASE}} to create a default link.
  

Revision as of 19:35, 20 February 2019

Aaregistry displays an external link to a page at the African American Registry.

{{aaregistry|Firstname Lastname or article title|Displayname}}

Usage

To create a link to the page for Paul Winfield, use only {{aaregistry}}. The template uses {{PAGENAMEBASE}} to create a default link.

Example 1

Paul Winfield at the African American Registry

{{aaregistry}}

Using {{PAGENAMEBASE}}, a short URL for Paul Winfield is created. The website converts it to the full URL automatically.

https://www.aaregistry.org/story/Paul-Winfield

Example 2

John Harold Johnson at the African American Registry

{{aaregistry|John H. Johnson|John Harold Johnson}}

The short for John H. Johnson URL includes a period, which is also automatically parsed.

https://www.aaregistry.org/story/John-H.-Johnson

Example 3

Madame Sul-Te-Wan at the African American Registry

{{aaregistry|Beautiful and talented, Madame Sul-Te-Wan|Madame Sul-Te-Wan}}

As is the case for Madame Sul-Te-Wan, sometimes {{PAGENAMEBASE}} doesn't do the trick. In such cases the article title can be used.

https://www.aaregistry.org/story/Beautiful-and-talented,-Madame-Sul-Te-Wan

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Aaregistry

This template displays an external link to a page at the African American Registry.

Template parameters

ParameterDescriptionTypeStatus
Name1

The subject's full name or the article title.

Stringoptional
Display2

Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.

Stringoptional