Template:Test

From TheKolWiki
Jump to: navigation, search


{{Test}}
{{#ifexpr:{{{1|1}}}>={{CURRENTDAY}}

|[[File:Advent_{{{1|1}}}.gif|Section #{{{1|1}}}]] |[[File:Torn{{#rand:1|13}}.gif|Torn-Out Section]]

}}

Instructions

Similar to the Sandbox, this page is here for you to play around with templates. Do what you like with it, but please leave this explanatory section.

Insert your desired template contents above between the "includeonly" tags, and alter the instance below to include any parameters you may need. You may need to purge this page to see the effects of changes to this template's code. The same also holds for any other template. Otherwise, you may have to wait several minutes before the wiki starts using the new code.

Always give a template a category, even if it is Category:Test Templates. For help on how a template works, read some documentation.

Current Test: AdventCalendarSection

Explanation

This template generates a cell for the expanded Advent Calendar used since 2013.

The first parameter is the day associated with the cell. If the day is same or less than today's day ({{CURRENTDAY}}), the template will display the appropriate section image. If the day is greater than today's day, the template will show a random torn section image.

Usage

{{Test|5}}

Torn-Out Section

{{Test|12}}

Torn-Out Section