Template:GR Start here: Difference between revisions
m (Text replacement - "FindMyPast" to "Findmypast") |
m (optimized) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{Vital type|}}}| <!-- create heading. Either "Start a 'Vital type' index", or 'Search an index' --> | {{#if: {{{Vital type|}}}| <!-- create heading. Either "Start a 'Vital type' index", or 'Search an index' --> | ||
== | == Search a {{lc:{{{Vital type}}} }} index == | ||
| | | | ||
== Search an index == | == Search an index == | ||
Line 14: | Line 14: | ||
| {{#expr: {{#var: i }} + 1 }} <!-- increase var:i by 1 --> | | {{#expr: {{#var: i }} + 1 }} <!-- increase var:i by 1 --> | ||
}} | }} | ||
}}<noinclude> | }}<br> | ||
<noinclude> | |||
:'''Code example''': | :'''Code example''': | ||
<nowiki> | <nowiki> | ||
Line 55: | Line 56: | ||
}, | }, | ||
"Website 1, Website 2...Website n": { | "Website 1, Website 2...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; | "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 1=Ancestry", | "example": "Website 1=Ancestry", | ||
"type": "string", | "type": "string", | ||
Line 64: | Line 65: | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Guided Research]][[Category:Templates|Guided Research | [[Category:Guided Research]][[Category:Templates|Guided Research]]</noinclude> |
Revision as of 21:20, 12 October 2020
Search an index
Start here:[edit source]
- 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 start here |Vital= |Search link 1= |Website 1= |Search link 2= |Website 2= }}
Template:GR start here - On the GuidedResearch pages, this template creates the 'Search a (Vital type) index' title and the 'Start Here' title. Also, the links in the section are output.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Vital type | 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 | optional |
Search link 1 | Search link 1 | entire string containing the link to be printed in the 'Start here' section. 'Search link' will be output exactly as entered.
| String | required |
Search link 2; Search link 3; .... | Search link 'n' | You can have as many Search links as needed to be printed in the 'Start here' section
| String | optional |
Website 1, Website 2...Website n | Website 1, 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 |