Template:FSHI/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
== Purpose ==
This template will allow the creation of links to specific images in FamilySearch Historical Images ("Images").
=== Parameters ===
I think this template will need 4 parameters:
I think this template will need 4 parameters:
{| class="wikitable"
{| class="wikitable"
Line 12: Line 15:
| 4 || imageIndex=  || specific image (starting with 1) || image
| 4 || imageIndex=  || specific image (starting with 1) || image
|}
|}
 
=== Operation ===
The template should go through the parameters and check them against what is required to return the correct URL.
The template should go through the parameters and check them against what is required to return the correct URL.


Line 19: Line 22:
#If all four parameters are present it should return a string as in #3 below.
#If all four parameters are present it should return a string as in #3 below.


Sample templates and output:
Sample input and output:
<pre>
<pre>
#1 {{FSHI|DGS=8417008}}
#1 {{FSHI|DGS=8417008}}
Line 25: Line 28:
#3 {{FSHI|DGS=8417008 |item=M9DP-VQY |image=6}}
#3 {{FSHI|DGS=8417008 |item=M9DP-VQY |image=6}}
</pre>
</pre>
Expecte output:
Expected output:
<pre>
<pre>
#1 DGS 8417008 - https://www.familysearch.org/records/images/search-results?imageGroupNumbers=8417008&page=1
#1 DGS 8417008 - https://www.familysearch.org/records/images/search-results?imageGroupNumbers=8417008&page=1
Line 32: Line 35:
</pre>
</pre>


For testing purposes:
=== Testing Data ===
 
1. This URL is for the first image in a folder
1. This URL is for the first image in a folder
<pre>
<pre>