Template:FSHI: Difference between revisions
(Added new handling for alt (Alt Text).) |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#switch: {{#expr: {{#if: {{{DGS | <includeonly>{{#switch: {{#expr: {{#if: {{{DGS|}}} | 1 | 0 }} + {{#if: {{{ID|}}} | 2 | 0 }} + {{#if: {{{Image|}}} | 3 | 0 }} }} | ||
| | | 6 = [https://www.familysearch.org/records/images/image-details?imageGroupNumbers={{{DGS|}}}&page=1&rmsId={{{ID|}}}&imageIndex={{#iferror: {{#expr: {{{Image|}}} - 1 }} | {{{Image|}}} }}&singleView=true DGS {{{DGS|}}} Image# {{{Image|}}}] <!-- Case for Image --> | ||
| 3 = [https://www.familysearch.org/records/images/image-details?imageGroupNumbers={{{DGS|}}}&page=1&rmsId={{{ID|}}}&imageIndex=0 DGS {{{DGS|}}} Item {{{Item|?}}}] <!-- Case for Item --> | |||
| 1 = [https://www.familysearch.org/records/images/beta/search-results?imageGroupNumbers={{{DGS|}}}&page=1 DGS {{{DGS|}}}] <!-- Case for DGS Only --> | |||
| | | Error (no DGS) }}</includeonly> | ||
| | |||
| Error (no DGS | |||
<noinclude>[[Category:WikiProject FamilySearch Historical Records templates]]{{Documentation}}</noinclude> | <noinclude>[[Category:WikiProject FamilySearch Historical Records templates]]{{Documentation}}</noinclude> | ||
Revision as of 06:53, 9 May 2024
| The above documentation is transcluded from Template:FSHI/doc. (editEditors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |