Template:ButtonsGroup: Difference between revisions

no edit summary
(Changed to add parameters for name/link)
No edit summary
Line 14: Line 14:


==Usage==
==Usage==
When used on Country pages or where the pagename conforms to the name/link for the target pages:
<pre style="max-width:150px; margin-left:25px;"><nowiki>
<pre style="max-width:150px; 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:
==Notes==
<pre style="max-width:260px; margin-left:25px;"><nowiki>
# 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, these parameters (both name/link for "Online Genealogy Records" and link for "Getting Started") can be overridden using the following:
#: <syntaxhighlight lang="linux-config" style="max-width:300px;">
{{ButtonsGroup
{{ButtonsGroup
|RecordsName=Records Display Name
|RecordsName=Records Display Name
Line 29: Line 26:
|StartedLink=Started Link
|StartedLink=Started Link
}}
}}
</syntaxhighlight>
</nowiki></pre>
 
 
==Notes==
# 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.


[[Category:Template]]
[[Category:Template]]
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
321,763

edits