Template:Power-box

From xat wiki

Introduction

This template is the new basis for articles on powers to:

  • Keep a consistent layout and allow it to be changed without having to edit 344 (and counting) articles
  • Have untranslatable stuff preset and save space
  • Make adding new articles as fast and efficient as possible.

With this template, I also made it possible to include more than 10 smiley previews under articles (up to 40).

Instructions

Attributes

  • id - power ID
  • power - name of the power
  • heading - short description of a power
  • status - See below for valid statuses (remove attribute for unlimited user powers)
limited
limited group
limited epic
group
epic
epic group
limited epic group
collection
  • featuredimage - image displayed when hovering over article's link
  • info - detailed information of a power
  • smiley1-40 - used for listing smilies for preview
    • sg1-40 - value "yes" to set a gray background for a smiley (e.g. |smiley5=snowy|sg5=yes)
  • pawn1-40 / pc1-40 - pawns for preview
    • pg1-40 - value "yes" to set a gray background for a pawn (e.g. |pawn5=snowy|pg5=yes)
to remove limited pawns from an article, simply add "pawnsdisabled" attribute with a value yes
  • example1-15 - used for showing examples of a power (i.e. backs)
    • eg1-40 - value "yes" to set a gray background for an example (e.g. |example5=snowy|eg5=yes)
examplelink1-10 - use direct image link instead of getstrip.
  • bug - link to a bug tracker submission if the power has issues that require fixing.

Categories

Value "yes" if the power has the following features:

  • smiley - power has more than one smiley
  • function
  • effect
  • hug
  • jinx
  • flix
  • blast
  • game
  • allpowers
  • pawn - power is a pawn
  • gameban
  • macros
  • sticker

Value "yes" if the power relates to the following themes:

  • animal
  • food
  • valentinesday
  • stpatricksday
  • easter
  • independenceday
  • halloween
  • thanksgiving
  • christmas
  • newyear
  • earthday
  • leisure - leisure activities
  • anatomy - human body
  • environment
  • fantasy
  • science
  • shape
  • birthday
  • blackfriday
  • accessory
  • kaoani
  • anime

Generator

Daniel has provided us with a generator that makes using this template a lot easier.

Usage: Just go to https://i.xat.wiki/power-box/?power=nameofpower

Example: https://i.xat.wiki/power-box/?power=flower

and copy the content within the box to an article on powers. Make sure to fill in heading, info and status fields (where required).

Base

While using the above generator is recommended, I'm including the template below just in case.

<languages/>
{{power-box
|id=POWER ID
|power=NAME OF THE POWER
|heading= <translate> 
HEADING GOES HERE
</translate>
|status= <translate> 
IF LIMITED/EPIC/GROUP POWER
</translate>
|info= <translate> 
MAIN CONTENT GOES HERE
</translate>
|smiley1=smileycodegoeshere
|smiley2=smileycodegoeshere
|smiley3=smileycodegoeshere
|smiley4=smileycodegoeshere
|smiley5=smileycodegoeshere
|smiley6=smileycodegoeshere
|smiley7=smileycodegoeshere
|smiley8=smileycodegoeshere

|pawn1=pawnnamegoeshere|pc1=pawncodegoeshere
|pawn2=pawnnamegoeshere|pc2=pawncodegoeshere
|pawn3=pawnnamegoeshere|pc3=pawncodegoeshere

|category1=yes
|category2=yes
}}

Finally

Use the preview button to make sure the article has no errors in it.

That's it for now. My dear editors, if you have any questions, contact me on facebook, chat or e-mail me at [email protected]