Template:Power-box

From xat wiki
Revision as of 01:04, 24 January 2017 by Daniel (talk | contribs) (Reverted last 3 revisions.)

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:

  • 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
  • info - detailed information of a power
  • smiley1-40 - used for listing smilies for preview
  • pawn1-7 / pc1-7 - pawns for preview
to remove limited pawns from an article, simply add "pawnsdisabled" attribute with a value yes
  • color - change example box color
  • example1-10 - used for showing examples of a power (i.e. backs)
examplelink1-10 - use direct image link instead of getstrip.

Generator

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

Usage: Just go to https://oceanproject.fr/wiki/genpower/nameofpower

Example: https://oceanproject.fr/wiki/genpower/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
|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
}}

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]