Template:GR Next step: Difference between revisions
(Created page with "<noinclude> :'''Code example''': <nowiki> {{GR Next step| Section heading=| <!-- don't include if using standard 'Next Step' heading --> Vital type=Death| Number of...") |
m (Text replacement - "FindMyPast" to "Findmypast") |
||
(30 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<br> | |||
=== If the {{lc:{{{Vital type|}}}|}} record was not found, try this next: === | |||
{{#vardefine: i | 1}}{{#while: <!-- loop through the 'Search link #' and print out. --> | |||
| {{{Search link {{#var: i}} |}}} | |||
|<nowiki/> | |||
{{GR print link | |||
|Search link={{{Search link {{#var:i}}|}}} | |||
|Website={{{Website {{#var:i}}|}}}|}}<br> | |||
{{#vardefine: i | |||
| {{#expr: {{#var: i }} + 1 }} <!-- increase var:i by 1 --> | |||
}} | |||
}}<br> | |||
<noinclude> | <noinclude> | ||
:'''Code example''': | :'''Code example''': | ||
<nowiki> | <nowiki> | ||
{{GR Next step| | The following is an example of a call to the template. You can have as many links as desired, just make sure to start at 1 and do not skip any numbers in your list. (don't have 1, 2, 4, 6 - only 1 and 2 will be output.) See below for definitions of input values. | ||
{{GR Next step | |||
|Section heading= <!-- don't include if using standard 'Next Step' heading --> | |||
|Vital type=Death | |||
|Search link 1= | |||
|Website 1= | |||
|Search link 2= | |||
|Website 2= | |||
{{ | |Search link 3= <-- Add as many 'Search links' as needed --> | ||
|Website 3= | |||
}}</nowiki> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Vital type": { | |||
"label": "Vital type", | |||
Search link | "description": "defines the header of the dropdown section on the Guided Research page. Current recommended vital types are Birth, Marriage and Death.", | ||
Search link | "example": "Vital type=Marriage", | ||
"type": "string", | |||
"default": "null", | |||
"required": true | |||
}, | |||
"Search link 1": { | |||
"description": "entire string containing the link to be printed in the 'Next step' section. 'Search link #' will be output exactly as entered.", | |||
"example": "Search link 2=1500s-1900s: '''<u>[https://www.familysearch.org/search/record/results?count=20&offset=0&query=%2Brecord_country%3AItaly%20%2Brecord_type%3A1 Italy Marriage Collections]</u>'''", | |||
"type": "string", | |||
"default": "null", | |||
"required": true | |||
}, | |||
"Search link 2,...Search link n": { | |||
"label": "Search link 2,...Search link n", | |||
"description": "You can have as many 'Search link #'s as needed to be printed in the 'Next step' section on the GuidedResearch page", | |||
"example": "Search link 2=1500s-1900s: '''<u>[https://www.familysearch.org/search/record/results?count=20&offset=0&query=%2Brecord_country%3AItaly%20%2Brecord_type%3A1 Italy Marriage Collections]</u>'''", | |||
"type": "string", | |||
"default": "null" | |||
}, | |||
"Website 1": { | |||
"label": "Website 1", | |||
"description": "Sending a website name that corresponds with a 'Search link #' will result in the following being added to the end of the printed link on the GuidedResearch page: FamilySearch => at FamilySearch; Findmypast => at Findmypast ($); Ancestry => at Ancestry ($); American Ancestors => at American Ancestors ($); myherMyHeritage => at MyHeritage ($);", | |||
"example": "Website 1=MyHeritage", | |||
"type": "string" | |||
}, | |||
"Website 2,...Website n": { | |||
"label": "Website2,...Website n", | |||
"description": "Sending a website name that corresponds with a Search link will will result in the following being added to the end of the printed link on the GuidedResearch page: FamilySearch => at FamilySearch; Findmypast => at Findmypast ($); Ancestry => at Ancestry ($); American Ancestors => at American Ancestors ($); myherMyHeritage => at MyHeritage ($);", | |||
"example": "Website 2=FamilySearch", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"Vital type", | |||
"Search link 1", | |||
"Search link 2,...Search link n", | |||
"Website 1", | |||
"Website 2,...Website n" | |||
] | |||
} | |||
</templatedata> | |||
[[Category:Guided Research]][[Category:Templates|Guided Research]]</noinclude> |
Latest revision as of 17:06, 17 May 2022
If the record was not found, try this next:
- Code example:
The following is an example of a call to the template. You can have as many links as desired, just make sure to start at 1 and do not skip any numbers in your list. (don't have 1, 2, 4, 6 - only 1 and 2 will be output.) See below for definitions of input values. {{GR Next step |Section heading= <!-- don't include if using standard 'Next Step' heading --> |Vital type=Death |Search link 1= |Website 1= |Search link 2= |Website 2= |Search link 3= <-- Add as many 'Search links' as needed --> |Website 3= }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Vital type | Vital type | defines the header of the dropdown section on the Guided Research page. Current recommended vital types are Birth, Marriage and Death.
| String | required |
Search link 1 | Search link 1 | entire string containing the link to be printed in the 'Next step' section. 'Search link #' will be output exactly as entered.
| String | required |
Search link 2,...Search link n | Search link 2,...Search link n | You can have as many 'Search link #'s as needed to be printed in the 'Next step' section on the GuidedResearch page
| String | optional |
Website 1 | Website 1 | Sending a website name that corresponds with a 'Search link #' will result in the following being added to the end of the printed link on the GuidedResearch page: FamilySearch => at FamilySearch; Findmypast => at Findmypast ($); Ancestry => at Ancestry ($); American Ancestors => at American Ancestors ($); myherMyHeritage => at MyHeritage ($);
| String | optional |
Website2,...Website n | Website 2,...Website n | Sending a website name that corresponds with a Search link will will result in the following being added to the end of the printed link on the GuidedResearch page: FamilySearch => at FamilySearch; Findmypast => at Findmypast ($); Ancestry => at Ancestry ($); American Ancestors => at American Ancestors ($); myherMyHeritage => at MyHeritage ($);
| String | optional |