Test: Difference between revisions
Malcolmmcc (talk | contribs) |
Malcolmmcc (talk | contribs) |
||
| Line 16: | Line 16: | ||
9 = Icon placement, ileft or iright (optional, default ileft) | 9 = Icon placement, ileft or iright (optional, default ileft) | ||
===5 Type of link=== | |||
{{col-begin}}{{col-break}} | {{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. | Default the link is presumed to be external (meaning a page not on the wiki). 5 is therefore not necessary for this. | ||
| Line 28: | Line 28: | ||
{{Button-master|1=Launchpad|2=Default button appearance|3=fas fa-folder|4=#0000ff|5=internal}}</nowiki></code> | {{Button-master|1=Launchpad|2=Default button appearance|3=fas fa-folder|4=#0000ff|5=internal}}</nowiki></code> | ||
{{col-end}} | {{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>''. | 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}} | {{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|6=#000000}} | ||
| Line 34: | Line 34: | ||
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|5=#000000}}</nowiki></code> | {{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. | 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>. | 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}} | {{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|7=right}} | ||
| Line 40: | Line 40: | ||
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|7=right}}</nowiki></code> | {{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>. | 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>. | 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}} | {{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|8=small}} | ||
<code><nowiki> | <code><nowiki> | ||
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|8=small}}</nowiki></code> | {{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. | 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}} | {{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|9=iright}} | ||
<code><nowiki> | <code><nowiki> | ||
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|9=iright}}</nowiki></code> | {{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|9=iright}}</nowiki></code> | ||
Revision as of 22:31, 12 May 2018
Last 7 days (Top 10) |
|||||
|
Default, nothing special
Template:Button-master Default attributes are: Internal link, large button, float left, black text.
Attributes
Options 1 - 4 are necessary, 5-9 offer options
1 = Page title or Link (Link requires #5)
2 = Button text
3 = FontAwesome Icon
4 = Button Color
---
5 = internal/external (optional, external default)
6 = text color (optional, white default)
7 = Float Button position, left or right (optional, no float by default)
8 = Button size, small or large (optional, large default)
9 = Icon placement, ileft or iright (optional, default ileft)
5 Type of link
|
Default the link is presumed to be external (meaning a page not on the wiki). 5 is therefore not necessary for this.
Template:Button-master
|
If you want it to got to a page on the wiki, you must specify that |
6 Text Color
If you'd like to change the link color, using either words, hex, or rgba(), set 6=color of choice.
Template:Button-master
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|5=#000000}}
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 7=right.
Template:Button-master
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|7=right}}
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 7=left.
8 Button size
You can make the button teeny, 8=small.
Template:Button-master
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|8=small}}
9 Icon placement
The icon can be on the right side as well.
Template:Button-master
{{Button-master|1=http://mcgilleus.ca|2=Default button appearance|3=fas fa-folder|4=#0000ff|9=iright}}