Template:ButtonsGroup: Difference between revisions

Changed case for if standard PAGENAME-"Genealogy" doesn't exist.
No edit summary
(Changed case for if standard PAGENAME-"Genealogy" doesn't exist.)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<div class="online_records_button" style="align-content:center;">[[{{{RecordsLink|{{#replace:{{PAGENAME}}|Genealogy|}} Online Genealogy Records}}}|{{{RecordsName|{{#replace:{{PAGENAME}}|Genealogy|}} Online Genealogy Records}}}]]</div>
<div class="online_records_button" style="align-content:center;">[[{{{RecordsLink|{{#replace:{{PAGENAME}}|Genealogy|}} Online Genealogy Records}}}|{{{RecordsName|{{#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>
{{#ifexist: {{#replace:{{PAGENAME}}|Genealogy|}} Getting Started |<div class="red_online_button" style="align-content:center;">[[{{{StartedLink|{{#replace:{{PAGENAME}}|Genealogy|}} Getting Started}}}|Getting<br>Started]]</div>}}
{{#if:{{{StartedLink|}}}|<div class="red_online_button" style="align-content:center;">[[{{{StartedLink|}}}|Getting<br>Started]]</div>|{{#ifexist: {{#replace:{{PAGENAME}}|Genealogy|}} Getting Started |<div class="red_online_button" style="align-content:center;">[[{{{StartedLink|{{#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>
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:150px; margin-left:25px;"><nowiki>
<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:260px; margin-left:25px;"><nowiki>
<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==
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