Template:FSHI/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12: Line 12:
| 4 || imageIndex=  || specific image (starting with 1) || image
| 4 || imageIndex=  || specific image (starting with 1) || image
|}
|}
The template should go through the parameters and check them against what is required to return the correct URL.
#If the DGS number is the only one given it should return a string as found in #1 below.
#If the item and nr parameters are also present it should return a string as in #2 below.
#If all four parameters are present it should return a string as in #3 below.
Sample templates and output:
<pre>
#1 {{FSHI|DGS=8417008}}
#2 {{FSHI|DGS=8417008 |item=M9DP-VQB | nr=2}}
#3 {{FSHI|DGS=8417008 |item=M9DP-VQY |image=6}}
</pre>
Expecte output:
<pre>
#1 DGS 8417008 - https://www.familysearch.org/records/images/search-results?imageGroupNumbers=8417008&page=1
#2 DGS 8417008 item 2 - https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQB&imageIndex=0
#3 8417008 image# 6 - https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQY&imageIndex=6&singleView=true
</pre>
For testing purposes:
For testing purposes:
1. This URL is for the first image in a folder
1. This URL is for the first image in a folder
<pre>
<pre>