|
|
(9 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' -->
| | <noinclude> |
| == {{ucfirst:{{{Vital type}}} }} - Where can I find {{lc:{{{Vital type}}} }} records? ==
| | :'''Code example''': |
| | <nowiki> |
| | {{GR Start Here| |
| | Vital type=Birth| |
| | Number of search links=1| |
| | Search link 1=| |
| | Website 1=FamilySearch| |
| | Search link 2=| |
| | Website 2=Ancestry| |
| | Search link 3=| |
| | Website 3=FindMyPast| <-- Currently handling up to 5 Search links --> |
| | }}</nowiki></noinclude> |
| | {{#if: {{{Vital type|}}}| |
| | == Search a {{lc:{{{Vital type}}} }} index == |
| | | | | |
| == Search an index == | | == Search an index == |
| |}} | | |}} |
| === Start here: === | | === Start here: === |
| {{#vardefine: i | 1}}{{#while: <!-- loop through the 'Search link #' and print out. --> | | {{GR print link| |
| | {{{Search link {{#var: i}} |}}}
| | Number of search links={{{Number of search links|}}}| |
| |<nowiki/> | | Search link 1={{{Search link 1|}}}| |
| {{GR print link | | Website 1={{{Website 1|}}}| |
| |Search link={{{Search link {{#var:i}}|}}}
| | Search link 2={{{Search link 2|}}}| |
| |Website={{{Website {{#var:i}}|}}}|}}<br>
| | Website 2={{{Website 2|}}}| |
| {{#vardefine: i | | Search link 3={{{Search link 3|}}}| |
| | {{#expr: {{#var: i }} + 1 }} <!-- increase var:i by 1 -->
| | Website 3={{{Website 3|}}}| |
| }}
| | Search link 4={{{Search link 4|}}}| |
| }}<noinclude> | | Website 4={{{Website 4|}}}| |
| :'''Code example''':
| | Search link 5={{{Search link 5|}}}| |
| <nowiki>
| | Website 5={{{Website 5|}}}| |
| 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=
| |
| }}</nowiki>
| |
| <templatedata>
| |
| { | |
| "params": {
| |
| "Vital type": {
| |
| "label": "Vital type",
| |
| "description": "Vital type - defines the header of the dropdown section on the Guided Research page. Current recommended vital types are Birth, Marriage and Death.",
| |
| "example": "Vital type=Birth",
| |
| "type": "string",
| |
| "default": "null",
| |
| "autovalue": "null",
| |
| "required": false
| |
| },
| |
| "Search link 1": {
| |
| "label": "Search link 1",
| |
| "description": "entire string containing the link to be printed in the 'Start here' section. 'Search link' will be output exactly as entered.",
| |
| "example": "Search link 1=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",
| |
| "autovalue": "null",
| |
| "required": true
| |
| },
| |
| "Search link 'n'": {
| |
| "label": "Search link 2; Search link 3; ....",
| |
| "description": "You can have as many Search links as needed to be printed in the 'Start here' section",
| |
| "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",
| |
| "autovalue": "null"
| |
| },
| |
| "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; Findmypast => at Findmypast ($); Ancestry => at Ancestry ($); American Ancestors => at American Ancestors ($); myherMyHeritage => at MyHeritage ($);",
| |
| "example": "Website 1=Ancestry",
| |
| "type": "string",
| |
| "default": "null"
| |
| }
| |
| },
| |
| "description": "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."
| |
| } | |
| </templatedata>
| |
| [[Category:Guided Research]][[Category:Templates|Guided Research]][[Category:Guided Research Templates]]</noinclude>
| |