Template:ButtonsGroup: Difference between revisions
(→Notes) |
(→Notes) |
||
Line 27: | Line 27: | ||
|RecordsName=Records Display Name | |RecordsName=Records Display Name | ||
|RecordsLink=Records Link | |RecordsLink=Records Link | ||
|StartedLink=Started Link | |StartedLink=Started Link | ||
}} | }} |
Revision as of 13:12, 22 May 2025
ButtonsGroup template
This will return the "<Name> Online Genealogy Records", "Online Research Help", & "Getting Started" buttons, examples below.
Usage[edit source]
{{ButtonsGroup}}
Notes[edit source]
- 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. The default logic is used if the parameter doesn't exist, for example:
{{ButtonsGroup |RecordsName=Records Display Name |RecordsLink=Records Link |StartedLink=Started Link }}