Template:RecordSearch

From FamilySearch Wiki

(Difference between revisions)
(fix inlcudeoonly)
(fix waypoint parameter link)
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://pilot.familysearch.org FamilySearch Record Search],  [http://pilot.familysearch.org/recordsearch/start.html#c={{{1}}};p=collectionDetails;t=searchable ''{{{2|CID {{{1}}}}}}'']
+
{{#if: {{{1|}}} | [{{#switch: {{{access}}}
<includeonly>
+
| browse = https://www.familysearch.org/search/image/index#uri=https://api.familysearch.org/records/collection/{{{1}}}/waypoints
[[Category:FamilySearch Record Collections|{{{1}}}]]
+
| waypoint = https://www.familysearch.org/search/image/index#uri=https://api.familysearch.org/records/waypoint/{{{1}}}
</includeonly><noinclude>
+
| #default = https://www.familysearch.org/search/collection/show#uri=http://hr-search-api:8080/searchapi/search/collection/{{{1}}}
=== Usage ===
+
}} {{{2|Record Collection {{{1}}}}}}]  
This template can be used to link to collections available for search from the [http://pilot.familysearch.org FamilySearch Record Search – Pilot Site]. It takes two parameters
+
| [https://www.familysearch.org/search/collection/list Historical Record Collections]
# The CID reference for the collection
+
}}<noinclude>
# The text to be displayed in the link. ''optional''
+
{{Documentation}}
#* If omitted the CID reference number will be displayed instead.
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
+
=== Example ===
+
{| cellspacing="0" border="1"
+
!style="width:50%"|You type
+
!style="width:50%"|You get
+
|-
+
|
+
<pre>
+
{{CID|1610550}}
+
</pre>
+
|
+
{{CID|1610550}}
+
|-
+
|
+
<pre>
+
{{CID|1610550|England, Cheshire Nonconformist Church Records}}
+
</pre>
+
|
+
{{CID|1610550|England, Cheshire Nonconformist Church Records}}
+
|}
+
[[Category:External link templates|CID]]
+
 
</noinclude>
 
</noinclude>

Revision as of 10:44, 21 April 2012

Historical Record Collections

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

Contents

Purpose

When Record Search changed from beta to production, articles that had used this template were all updated with a single edit to this template.

Usage

This template can be used to link to specific FamilySearch Historical Record Collections available for search. It can take three parameters

  1. The reference for the collection optional
    • If omitted the URL for the site will be displayed
  2. The text to be displayed in the link. optional
    • If omitted the reference number will be displayed instead.
  3. access= optional named parameter. If the parameter is omitted it will default to the correct output for searchable collections
    • Used for linking to a Browse image only collection. This is done by using access=browse.
    • Used for linking to a specific browsing waypoint within a collection. This is done by using access=waypoint.

Example

You type You get
{{RecordSearch|1610550}}

Record Collection 1610550

{{RecordSearch 
|1610550
|England, Cheshire Nonconformist Church Records
}}

England, Cheshire Nonconformist Church Records

{{RecordSearch
|1462401
|Argentina National Census, 1869
|access=browse
}}

Argentina National Census, 1869

{{RecordSearch
|14031753
|Probate records for Rensselaer County
|access=waypoint
}}

Probate records for Rensselaer County

{{RecordSearch}}

Historical Record Collections

See also