|
|
| Line 2: |
Line 2: |
| <div class="online_records_button" style="align-content:center;">[[{{#replace:{{PAGENAME}}|Genealogy|}} Online Genealogy Records]]</div> | | <div class="online_records_button" style="align-content:center;">[[{{#replace:{{PAGENAME}}|Genealogy|}} Online Genealogy Records]]</div> |
| <div class="community_button" style="align-content:center;">[[Online Research Help|Online<br>Research Help]]</div> | | <div class="community_button" style="align-content:center;">[[Online Research Help|Online<br>Research Help]]</div> |
| <div class="red_online_button" style="align-content:center;">[[{{#replace:{{PAGENAME}}|Genealogy|}} Getting Started|Getting<br>Started]]</div> | | {{#ifexist: {{#replace:{{PAGENAME}}|Genealogy|}} Getting Started |<div class="red_online_button" style="align-content:center;">[[{{#replace:{{PAGENAME}}|Genealogy|}} Getting Started|Getting<br>Started]]</div>}} |
| </div></includeonly><noinclude> | | </div></includeonly><noinclude> |
| <big>'''ButtonsGroup template'''</big><br> | | <big>'''ButtonsGroup template'''</big><br> |
| This will return the "<Name> Online Genealogy Records", "Online Research Help", & "Getting Started" buttons, examples below. | | This will return the "<Name> Online Genealogy Records", "Online Research Help", & "Getting Started" buttons, examples below. |
|
| |
|
| |
| <div style="display:flex; flex-flow:row wrap; justify-content:flex-start; gap:20px;"> | | <div style="display:flex; flex-flow:row wrap; justify-content:flex-start; gap:20px;"> |
| <div class="online_records_button" style="align-content:center;">[[Dominican Republic Online Genealogy Records]]</div> | | <div class="online_records_button" style="align-content:center;">[[Dominican Republic Online Genealogy Records]]</div> |
| Line 15: |
Line 13: |
|
| |
|
|
| |
|
| | | ==Usage== |
| Usage: | |
| <pre style="max-width:150px; margin-left:25px;"><nowiki> | | <pre style="max-width:150px; margin-left:25px;"><nowiki> |
| {{ButtonsGroup}} | | {{ButtonsGroup}} |
| </nowiki></pre> | | </nowiki></pre> |
|
| |
|
| | |
| | ==Notes== |
| | # The template reads the pagename, strips anything after a comma and removes the word "Genealogy" which matches the usage on Country pages. |
| | # The template checks if the "Getting Started" page exists and displays the button if so, hiding it otherwise. |
| | # There are several pages that don't have the same name/link format as Country pages, the template can be updated to include parameters to handle these cases if necessary. |
|
| |
|
| [[Category:Template]] | | [[Category:Template]] |