Template talk:FSHI2: Difference between revisions

From FamilySearch Wiki
Line 67: Line 67:




Nothing to do with the switch, only the carriage return:
===Nothing to do with the switch, only the carriage return===
{| class="wikitable"
{| class="wikitable"
! Wikitext !! Results !! Notes
! Wikitext !! Results !! Notes
Line 79: Line 79:
| <code><nowiki>Foo Bar</nowiki></code> ||  
| <code><nowiki>Foo Bar</nowiki></code> ||  
Foo Bar || 2nd with carriage returns
Foo Bar || 2nd with carriage returns
|}
===Use multiple line tables if you need the carraige return===
{| class="wikitable"
! Wikitext !! Results !! Notes
|-
| <code><nowiki>Foo Bar</nowiki></code>
| Foo Bar
| Normal text
|-
|
<code><nowiki>Foo Bar</nowiki></code>
|
Foo Bar
| Both with carriage returns
|-
|
<code><nowiki>Foo Bar</nowiki></code>
|
Foo Bar
| 2nd with carriage returns
|}
|}

Revision as of 18:09, 29 April 2024

Examples[edit source]

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}} This 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


Wrapping[edit source]

Examples of wrapping[edit source]

Wikitext Result 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


Isolated wrapping issue[edit source]

Wikitext Result 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) No line break is OK
{{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) || Extra line breaks the table

{{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) || Does this work?

{{Test14}}, {{Test14}}, {{Test14}}

6, 6, 6 || Does this work?

{{Test15}}

6 || Does this work?

{{#switch: 6 | 6 = 6 | 3 = 3 | 1 = 1 | Error }}

6 || Does this work?


Nothing to do with the switch, only the carriage return[edit source]

Wikitext Results Notes
Foo Bar Foo Bar Normal text

Foo Bar || Foo Bar || Both with carriage returns

Foo Bar

Foo Bar || 2nd with carriage returns

Use multiple line tables if you need the carraige return[edit source]

Wikitext Results Notes
Foo Bar Foo Bar Normal text

Foo Bar

Foo Bar

Both with carriage returns

Foo Bar

Foo Bar

2nd with carriage returns