Template:ButtonsGroup: Difference between revisions
No edit summary |
(→Usage) |
||
Line 15: | Line 15: | ||
==Usage== | ==Usage== | ||
When used on Country pages or where the pagename conforms to the name/link for the target pages: | When used on Country pages or where the pagename conforms to the name/link for the target pages: | ||
<pre style="max-width: | <pre style="max-width:170px; margin-left:25px;"><nowiki> | ||
{{ButtonsGroup}} | {{ButtonsGroup}} | ||
</nowiki></pre> | </nowiki></pre> | ||
When the name/link for "Online Genealogy Records" and link for "Getting Started" needs to be modified: | When the name/link for "Online Genealogy Records" and link for "Getting Started" needs to be modified: | ||
<pre style="max-width: | <pre style="max-width:310px; margin-left:25px;"><nowiki> | ||
{{ButtonsGroup | {{ButtonsGroup | ||
|RecordsName=Records Display Name | |RecordsName=Records Display Name | ||
Line 27: | Line 27: | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
==Notes== | ==Notes== |
Revision as of 20:43, 2 June 2025
ButtonsGroup template
This will return the "<Name> Online Genealogy Records", "Online Research Help", & "Getting Started" buttons, examples below.
Usage[edit source]
When used on Country pages or where the pagename conforms to the name/link for the target pages:
{{ButtonsGroup}}
When the name/link for "Online Genealogy Records" and link for "Getting Started" needs to be modified:
{{ButtonsGroup |RecordsName=Records Display Name |RecordsLink=Records Link |StartedLink=Started Link }}
Notes[edit source]
- The template reads the pagename, strips anything after a comma and removes the word "Genealogy" for use on as the name/link for "Online Genealogy Records" and link for "Getting Started" 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.