Difference between revisions of "Template:Team"
| Line 1: | Line 1: | ||
| − | <includeonly><span style="margin-left: 5px;{{#ifeq:{{{color|}}}|true| color: {{TeamAbbrToHexColor|{{{1}}}}};|}}">[[File:{{{1}}}.png|25px]] {{#ifeq:{{{link|}}}|false|{{TeamAbbrToName|{{{1}}}}}|[[{{TeamAbbrToName|{{{1}}}}}]]}}</span></includeonly><noinclude> | + | <includeonly><span style="margin-left: 5px;{{#ifeq:{{{color|}}}|true| color: {{TeamAbbrToHexColor|{{{1}}}}};|}}">[[File:{{{1}}}.png|25px]] {{#ifeq:{{{link|}}}|false|{{TeamAbbrToName|{{{1}}}}}|[[{{TeamAbbrToName|{{{1}}}}}| |
| + | {{#ifeq:{{{color|}}}|true|<span style="color:{{TeamAbbrToHexColor|{{{1}}}}};">{{TeamAbbrToName|{{{1}}}}}</span>|{{{1}}}}} | ||
| + | ]] | ||
| + | }}</span></includeonly><noinclude> | ||
This template is used to insert Golly teams with a link to the team's page. | This template is used to insert Golly teams with a link to the team's page. | ||
| + | |||
| + | ===Default Behavior=== | ||
Pass in a team abbreviation: | Pass in a team abbreviation: | ||
| Line 9: | Line 14: | ||
and it will insert an annotated link to a Golly team {{Team|BTX}} that you can embed into a paragraph of text. | and it will insert an annotated link to a Golly team {{Team|BTX}} that you can embed into a paragraph of text. | ||
| + | |||
| + | ===No Link=== | ||
To exclude the link, set the <code>link</code> argument to false: | To exclude the link, set the <code>link</code> argument to false: | ||
| Line 17: | Line 24: | ||
and it will insert an annotated team name without a link {{Team|BTX|link=false}} that you can embed into a paragraph of text. | and it will insert an annotated team name without a link {{Team|BTX|link=false}} that you can embed into a paragraph of text. | ||
| + | |||
| + | ===With Color=== | ||
You can also set <code>color</code> to true to color the text by the team's color: | You can also set <code>color</code> to true to color the text by the team's color: | ||
| Line 26: | Line 35: | ||
and it will insert an annotated team name with color {{Team|BTX|link=false|color=true}} that you can embed into a paragraph of text. | and it will insert an annotated team name with color {{Team|BTX|link=false|color=true}} that you can embed into a paragraph of text. | ||
| − | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consectetur erat in tortor elementum {{Game|4d9aa3a9-dd08-4ca8-9491-855ab7df7a43}}, vel fringilla ipsum tristique. Vivamus pellentesque fringilla pellentesque. Vestibulum condimentum commodo neque, eu mollis justo commodo at. Ut condimentum elit quis dolor vehicula luctus. Proin auctor nunc sit amet risus aliquam, et elementum purus venenatis {{Team|AA}}. Suspendisse ac sodales nibh. Integer placerat pharetra pharetra. Nullam convallis sem a feugiat sodales. Aliquam ultricies velit vel magna vestibulum convallis. Nunc ut dolor convallis lectus sodales faucibus eget quis dolor. | + | ===With Color And Link=== |
| + | |||
| + | Specifying just the color argument requires a little more trickery in the template: | ||
| + | |||
| + | <pre> | ||
| + | {{Team|AA|color=true}} | ||
| + | </pre> | ||
| + | |||
| + | and it will insert an annotated team name with team color and link {{Team|AA|color=true}} that you can embed into a paragraph of text. | ||
| + | |||
| + | ===Examples=== | ||
| + | |||
| + | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consectetur erat in tortor elementum {{Game|4d9aa3a9-dd08-4ca8-9491-855ab7df7a43}}, vel fringilla ipsum tristique. Vivamus pellentesque fringilla pellentesque. Vestibulum condimentum commodo neque, eu mollis justo commodo at. Ut condimentum elit quis dolor vehicula luctus. Proin auctor nunc sit amet risus aliquam, et elementum purus venenatis {{Team|AA|color=true}}. Suspendisse ac sodales nibh. Integer placerat pharetra pharetra. Nullam convallis sem a feugiat sodales. Aliquam ultricies velit vel magna vestibulum convallis. Nunc ut dolor convallis lectus sodales faucibus eget quis dolor. | ||
Donec vitae molestie massa, ac lacinia dolor. Nulla a vulputate quam. Curabitur finibus sollicitudin sem, quis sagittis dui. Morbi sit amet volutpat tellus. {{Team|SS}} | Donec vitae molestie massa, ac lacinia dolor. Nulla a vulputate quam. Curabitur finibus sollicitudin sem, quis sagittis dui. Morbi sit amet volutpat tellus. {{Team|SS}} | ||
Revision as of 00:29, 11 February 2021
This template is used to insert Golly teams with a link to the team's page.
Default Behavior
Pass in a team abbreviation:
{{Team|BTX}}
and it will insert an annotated link to a Golly team
BTX
that you can embed into a paragraph of text.
No Link
To exclude the link, set the link argument to false:
{{Team|BTX|link=false}}
and it will insert an annotated team name without a link
Baltimore Texas that you can embed into a paragraph of text.
With Color
You can also set color to true to color the text by the team's color:
{{Team|BTX|link=false|color=true}}
and it will insert an annotated team name with color
Baltimore Texas that you can embed into a paragraph of text.
With Color And Link
Specifying just the color argument requires a little more trickery in the template:
{{Team|AA|color=true}}
and it will insert an annotated team name with team color and link
Alewife Arsonists
that you can embed into a paragraph of text.
Examples
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consectetur erat in tortor elementum
4d9aa3a9-dd08-4ca8-9491-855ab7df7a43, vel fringilla ipsum tristique. Vivamus pellentesque fringilla pellentesque. Vestibulum condimentum commodo neque, eu mollis justo commodo at. Ut condimentum elit quis dolor vehicula luctus. Proin auctor nunc sit amet risus aliquam, et elementum purus venenatis
Alewife Arsonists
. Suspendisse ac sodales nibh. Integer placerat pharetra pharetra. Nullam convallis sem a feugiat sodales. Aliquam ultricies velit vel magna vestibulum convallis. Nunc ut dolor convallis lectus sodales faucibus eget quis dolor.
Donec vitae molestie massa, ac lacinia dolor. Nulla a vulputate quam. Curabitur finibus sollicitudin sem, quis sagittis dui. Morbi sit amet volutpat tellus.
SS
Related templates:
- {{Game}}