You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Template:2021 Coolest tool award/doc

From Wikitech-static
Jump to navigation Jump to search

<templatedata> { "description": "This can be placed on the pages of the winners of the 2021 Coolest Tool Award.", "paramOrder": [ "1", "2", "float", "type" ], "params": { "1": { "aliases": [ "tool" ], "description": "Name of the tool", "example": "MediaWiki", "type": "string", "default": "MediaWiki", "required": true, "label": "Tool" }, "2": { "aliases": [ "category" ], "label": "Category", "description": "The category the tool won in", "example": "Experience", "type": "string", "default": "Developer", "required": true }, "float": { "description": "Side of the page to float the box to (left, right, none)", "type": "string", "default": "none", "label": "Float" }, "type": { "label": "Type of banner", "description": "Depending on the type of banner, a different image or styles may show up", "example": "beater, noimage, logo", "type": "string", "default": "logo" } } } </templatedata>

Test cases

Default banner:

{{2021 Coolest tool award|Test tool name|Test category}}
Coolest Tool Award 2021 square logo.svg

Test tool name

2021 Coolest Tool
Award Winner

in the category
Test category


Beater variation:

{{2021 Coolest tool award|Test tool name|Test category|type=beater}}
Eggbeater stencil narrow - Orange.svg

Test tool name

2021 Coolest Tool
Award Winner

in the category
Test category


No image:

{{2021 Coolest tool award|Test tool name|Test category|type=noimage}}

Test tool name

2021 Coolest Tool
Award Winner

in the category
Test category


Now, we are going to change the alignment to the right:

{{2021 Coolest tool award|Test tool name|Test category|float=right}}
Coolest Tool Award 2021 square logo.svg

Test tool name

2021 Coolest Tool
Award Winner

in the category
Test category


This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment. This is a test paragraph for right alignment.

Now, we are going to change the alignment to the left:

{{2021 Coolest tool award|Test tool name|Test category|float=left}}
Coolest Tool Award 2021 square logo.svg

Test tool name

2021 Coolest Tool
Award Winner

in the category
Test category


This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment. This is a test paragraph for left alignment.