Template:FSHI2: Difference between revisions
No edit summary |
No edit summary |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{#expr: {{#if: {{{DGS | <includeonly>{{#switch: {{#expr: {{#if: {{{DGS|}}} | 1 | 0 }} + {{#if: {{{Item|}}} | 2 | 0 }} + {{#if: {{{Image|}}} | 3 | 0 }} }} | ||
| | | 6 = [https://www.familysearch.org/records/images/image-details?imageGroupNumbers={{{DGS|}}}&page=1&rmsId={{{Item|}}}&imageIndex={{{Image|}}}&singleView=true DGS {{{DGS|}}} Image# {{{Image|}}}] <!-- Case for Image --> | ||
| 3 = [https://www.familysearch.org/records/images/image-details?imageGroupNumbers={{{DGS|}}}&page=1&rmsId={{{Item|}}}&imageIndex=0 DGS {{{DGS|}}} Item {{{Nbr|?}}}] <!-- 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><noinclude> | |||
| Error (no DGS | |||
{| class="wikitable" | {| class="wikitable" | ||
! Wikitext !! style="width:600px;" | Result !! Correct !! Notes | |||
|- | |- | ||
| <code><nowiki>{{FSHI2|DGS=8417008}}</nowiki></code> || {{FSHI2|DGS=8417008}} || ? || DGS only | |||
|- | |- | ||
| <code><nowiki>{{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}</nowiki></code> || {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}} || ? || DGS and Item number | |||
|- | |- | ||
| <code><nowiki>{{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}}</nowiki></code> || {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} || ? || DGS, Item number, and Image number | |||
|- | |- | ||
| <code><nowiki>{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}}</nowiki></code> || | |||
{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} || ? || 3 together | |||
|- | |- | ||
| <code><nowiki>{{FSHI2}}</nowiki></code> || {{FSHI2}} || ? || DGS missing | |||
|} | |} | ||
==Example of wrapping== | |||
{| class="wikitable" | |||
! Wikitext !! style="width:600px;" | Result !! Correct !! Notes | |||
|- | |||
| <code><nowiki>{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}}</nowiki></code> || {{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} || ? || Wraps | |||
|- | |||
| <code><nowiki>{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}}</nowiki></code> || | |||
{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} || ? || Forced new line | |||
|- | |||
| <code><nowiki>1, 2, 3</nowiki></code> || 1, 2, 3 || ? || Text is fine | |||
|- | |||
| <code><nowiki>[https://www.familysearch.org/records/images/beta/search-results?imageGroupNumbers=8417008&page=1 DGS 8417008], [https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQB&imageIndex=0 DGS 8417008 Item 2], [https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQY&imageIndex=6&singleView=true DGS 8417008 Image# 6]</nowiki></code> || [https://www.familysearch.org/records/images/beta/search-results?imageGroupNumbers=8417008&page=1 DGS 8417008], [https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQB&imageIndex=0 DGS 8417008 Item 2], [https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQY&imageIndex=6&singleView=true DGS 8417008 Image# 6] || ? || Links are fine (vs. Templates) | |||
|- | |||
| <code><nowiki>{{Test11}}, {{Test11}}, {{Test11}}</nowiki></code> || {{Test11}}, {{Test11}}, {{Test11}} || ? || Doesn't wrap | |||
|- | |||
| <code><nowiki>{{Test12}}, {{Test12}}, {{Test12}}</nowiki></code> || {{Test12}}, {{Test12}}, {{Test12}} || ? || Doesn't wrap | |||
|- | |||
| <code><nowiki>{{Test13|This=0|That=ABC}}, {{Test13|This=1|That=DEF}}, {{Test13|This=2|That=HIG}}</nowiki></code> || {{Test13|This=0|That=ABC}}, {{Test13|This=1|That=DEF}}, {{Test13|This=2|That=HIG}} || ? || Doesn't wrap | |||
|} | |||
</noinclude> | |||
Revision as of 16:16, 29 April 2024
Wikitext | Result | Correct | Notes |
---|---|---|---|
{{FSHI2|DGS=8417008}} |
DGS 8417008 | ? | DGS only |
{{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}} |
Error (no DGS or missing fields) | ? | DGS and Item number |
{{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} |
Error (no DGS or missing fields) | ? | DGS, Item number, and Image number |
{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} |
DGS 8417008, Error (no DGS or missing fields), Error (no DGS or missing fields) || ? || 3 together | ||
{{FSHI2}} |
Error (no DGS or missing fields) | ? | DGS missing |
Example of wrapping[edit source]
Wikitext | Result | Correct | Notes |
---|---|---|---|
{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} |
DGS 8417008, Error (no DGS or missing fields), Error (no DGS or missing fields) | ? | Wraps |
{{FSHI2|DGS=8417008}}, {{FSHI2|DGS=8417008|Item=M9DP-VQB|Nbr=2}}, {{FSHI2|DGS=8417008|Item=M9DP-VQY|Image=6}} |
DGS 8417008, Error (no DGS or missing fields), Error (no DGS or missing fields) || ? || Forced new line | ||
1, 2, 3 |
1, 2, 3 | ? | Text is fine |
[https://www.familysearch.org/records/images/beta/search-results?imageGroupNumbers=8417008&page=1 DGS 8417008], [https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQB&imageIndex=0 DGS 8417008 Item 2], [https://www.familysearch.org/records/images/image-details?imageGroupNumbers=8417008&page=1&rmsId=M9DP-VQY&imageIndex=6&singleView=true DGS 8417008 Image# 6] |
DGS 8417008, DGS 8417008 Item 2, DGS 8417008 Image# 6 | ? | Links are fine (vs. Templates) |
{{Test11}}, {{Test11}}, {{Test11}} |
Some text as a test, Some text as a test, Some text as a test || ? || Doesn't wrap | ||
{{Test12}}, {{Test12}}, {{Test12}} |
Test link, Test link, Test link || ? || Doesn't wrap | ||
{{Test13|This=0|That=ABC}}, {{Test13|This=1|That=DEF}}, {{Test13|This=2|That=HIG}} |
Test link ABC (6), Test link DEF (6), Test link HIG (6) | ? | Doesn't wrap |