Template:GR Page header and text: Difference between revisions

From FamilySearch Wiki
No edit summary
(updated to call Template:New page title, instead of creating the page title in this template.)
(5 intermediate revisions by 2 users not shown)
Line 21: Line 21:
{{GR button main}}
{{GR button main}}
{{#switch: {{lc:{{{Page type|}}} }} |
{{#switch: {{lc:{{{Page type|}}} }} |
guided research={{#if: {{{Page title|}}}| {{New page title|New title={{{Page title|}}}|}} |
guided research={{#if: {{{Page title|}}}| {{New page title|{{{Page title|}}} }} |
  {{New page title|New title={{{Location|}}} Guided Research|}}
  {{New page title|{{{Location|}}} Guided Research}}
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   <p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br>
   <p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br>
  <p style="font-size:20px">'''Select the type of information you are looking for?'''</p>
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
|
|
guidedresearch={{#if: {{{Page title|}}}| {{New page title|New title={{{Page title|}}}| }} |
guided research={{#if: {{{Page title|}}}| {{New page title|{{{Page title|}}} }} |
  {{New page title|New title={{{Location|}}} Guided Research|}}
  {{New page title|{{{Location|}}} Guided Research}}
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   <p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br>
   <p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br>
  <p style="font-size:20px">'''Select the type of information you are looking for?'''</p><br>
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
|
|
can't find=
can't find=
{{{Location|}}} Births - Why can't I find a record?
{{{Location|}}} Births - Why can't I find a record?
{{#if: {{{Page title|}}}| {{New page title|New title={{{Page title|}}}| }} |
{{#if: {{{Page title|}}}| {{New page title|{{{Page title|}}} }} |
  {{New page title|New title={{{Location|}}} {{{Vital type|}}} - Why can't I find a record?|}}
  {{New page title|{{{Location|}}} {{{Vital type}}} - Why can't I find a record?}}
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
Line 45: Line 47:
|<nowiki></nowiki>}}  <!-- end switch statement -->
|<nowiki></nowiki>}}  <!-- end switch statement -->


<noinclude>[[Category:templates|Guided Research]][[Category:Guided Research]][[Category:Guided Research Templates]]</noinclude>
<noinclude>[[Category:templates|Guided Research]][[Category:Guided Research]]</noinclude>

Revision as of 06:34, 4 June 2019

Example 1

{{GR Page header and text|
  Location=Ohio|
  Page type=Guided Research|   <!-- Current options Guided Research and Can't Find-->
}}  
   

Example 2

{{GR Page header and text|
  Location=Ohio|
  Vital type=birth|
  Page type=Can't find|   <!-- Current options Guided Research and Can't Find-->
  Page title=This is a different title|
  Page text=This is different text|
}}