Test: Difference between revisions

From EUSwiki
Jump to navigation Jump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Special:ContributionScores}}
{{Special:ContributionScores}}
===Default, nothing special===
=Header 1=
{{Button-master|1=http://directory.mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff}}
==Header 2==
Default attributes are: Internal link, large button, float left, black text.
===Header 3===
==Attributes==
;Definition 1:This is a def 1
'''Options 1 - 4 are necessary''', 5-9 offer options<br>
;Def2:This is a def 2
::1 = Page title or Link (Link requires #5)<br>
::2 = Button text<br>
::3 = FontAwesome Icon<br>
::4 = Button Color<br>
---<br>
::5 = internal/external (optional, external default)<br>
::6 = text color (optional, white default)<br>
::7 = Float Button position, left or right (optional, no float by default)<br>
::8 = Button size, small or large (optional, large default)<br>
::9 = Icon placement, ileft or iright (optional, default ileft)
 
===5 Type of link===
{{col-begin}}{{col-break}}
Default the link is presumed to be external (meaning a page not on the wiki). 5 is therefore not necessary for this.
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff}}
<code><nowiki>
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff}}</nowiki></code>
{{col-break}}
If you want it to got to a page on the wiki, ''you must specify that <code>5=internal</code>''.
{{Button-master|1=Launchpad|2=Default button appearance|3=fas fa-folder|4=#0000ff|5=internal}}
<code><nowiki>
{{Button-master|1=Launchpad|2=Default button appearance|3=fas fa-folder|4=#0000ff|5=internal}}</nowiki></code>
{{col-end}}
===6 Text Color===
If you'd like to change the link color, using either words, hex, or rgba(), set ''<code>6=color of choice</code>''.
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|6=#000000}}
<code><nowiki>
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|5=#000000}}</nowiki></code>
Default the text is white, 6= is not necessary for this case.
===7 Button position===
If you want the button to float to the right of the page, use <code>7=right</code>.
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|7=right}}
<code><nowiki>
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|7=right}}</nowiki></code>
Additionally, if you want it to float=left (meaning that all other objects, headers included, will stay to the right of the block), you can specity <code>7=left</code>.
===8 Button size===
You can make the button teeny, <code>8=small</code>.
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|8=small}}
<code><nowiki>
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|8=small}}</nowiki></code>
===9 Icon placement===
The icon can be on the right side as well.
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|9=iright}}
<code><nowiki>
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|9=iright}}</nowiki></code>

Latest revision as of 21:34, 30 May 2018

Last 7 days (Top 10)

Header 1

Header 2

Header 3

Definition 1
This is a def 1
Def2
This is a def 2