Template:GR Page header and text: Difference between revisions

From FamilySearch Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
  <nowiki>{{GR Page header and text|
<u>Example 1</u>:
Location=Ohio|
  <nowiki>
Page title style=generic|   <!-- generic will print 'Location' Guided Research -->
{{GR Page header and text|
Page title=|                <!-- only required if Page header style is not 'generic' -->
  Location=Ohio|
Page text style=generic|     <!-- generic will print generic sentence below the page title -->
  Vital type=birth|
Page text=|                 <!-- only required if Page text style is not 'generic' -->
  Page type=Guided Research|   <!-- Current options Guided Research and Can't Find-->
Page text size=}}      <!-- this is only used if non-generic page text, and it is not required. -->
}}     
<u>Example 2</u>:
<nowiki>
{{GR Page header and text|
  Location=Ohio|
  Vital type=birth|
  Page type=Guided Research|   <!-- Current options Guided Research and Can't Find-->
  Page title=This is a different title|
  Page text=This is different text|
}}       
</nowiki>
</nowiki>
</noinclude>
</noinclude>
__NOEDITSECTION__
__NOEDITSECTION__
{{#if: {{{Page title|}}}|
{{#switch: {{lc:{{{Page type|}}} }} |
{{#switch: {{lc:{{{Page title|}}} }} |
"guided research"=
"guided research"=<h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} Guided Research</h1>
  {{#if: {{{Page title|}}}|<h1 id="firstHeading" class="firstHeading" lang="en">{{{Page title|}}}</h1>|
{{#if: {{lc:Page text style:"generic"}}|
  <h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} Guided Research</h1>
<p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br><br>
  |<nowiki></nowiki>}}
<p style="font-size:20px">'''Which type of information are you looking for?'''</p><br>
  {{#if: {{Page text|}}|<p>{{{Page text|}}}</p>|
|{{#if: {{{Page text|}}}| <!-- if not generic and Page text is defined -->
  <p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br><br>
{{#if: {{{Page text size|}}}|<h{{{Page text size}}}>{{{Page text}}}</h{{{Page text size}}}>|<p>{{{Page text|}}}</p>}}|<nowiki></nowiki>}}|<nowiki></nowiki>}}
  <p style="font-size:20px">'''Which type of information are you looking for?'''</p><br>
<!-- "can't find" creates the page header and text for 'Why can't I find the records' page -->
  |<nowiki></nowiki>}}
"can't find"=<h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} {{{Vital type|}}}s - Why can't I find the record?</h1>|
  <!-- "can't find" creates the page header and text for 'Why can't I find the records' page -->
<h1 id="firstHeading" class="firstHeading" lang="en">{{{Page title|}}}</h1>
"can't find"=
{{#if: {{lc:{{{Page text}}}:"generic"}}|
Ohio Births - Why can't I find the record?
<p>This page will give you additional guidance and resources to find {{{lc:Vital type|}}} information for your ancestor. Use this page after first completing the {{lc:Vital type|}} section of the  [[GuidedResearch:{{{Location|}}}|{{{Location|}}} Guided Research]] page.</p><br><br>
  {{#if: {{{Page title|}}}|<h1 id="firstHeading" class="firstHeading" lang="en">{{{Page title|}}}</h1>|
|{{#if: {{{Page text|}}}| <!-- if not generic and Page text is defined -->
  <h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} {{{Vital type}}} - Why can't I find the record?</h1>
{{#if: {{{Page text size|}}}|<h{{{Page text size}}}>{{{Page text}}}</h{{{Page text size}}}>|<p>{{{Page text|}}}</p>}}|<nowiki></nowiki>}}|<nowiki></nowiki>}}|
  |<nowiki></nowiki>}}
}}  <!-- end switch statement -->
  {{#if: {{Page text|}}|<p>{{{Page text|}}}</p>|
}} <!-- end main if statement -->
  <p>This page will give you additional guidance and resources to find {{{lc:Vital type|}}} information for your ancestor. Use this page after first completing the {{lc:Vital type|}} section of the  [[GuidedResearch:{{{Location|}}}|{{{Location|}}} Guided Research]] page.</p><br><br>
|<nowiki></nowiki>}}
|<nowiki></nowiki>}}  <!-- end switch statement -->
 


[[Category:templates|{{PAGENAME}}]]
[[Category:templates|{{PAGENAME}}]]

Revision as of 11:49, 12 June 2018

Example 1:

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