Difference between revisions of "Template:RolyPolysWordInfobox"

From Osamu Sato Wiki
Jump to navigation Jump to search
m (we would need a different color for this…maybe)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{| align=right width="250px" style="border: 2px solid #888; background: #BFBFBF; font-size:12px; -moz-border-radius:7px; margin-top: 0px; margin-left:3px; margin-bottom:3px; float: right;"
 
{| align=right width="250px" style="border: 2px solid #888; background: #BFBFBF; font-size:12px; -moz-border-radius:7px; margin-top: 0px; margin-left:3px; margin-bottom:3px; float: right;"
!bgcolor="#a705ed" colspan="2"|<font color="#FFF">'''{{{word}}}'''</font>
 
|-
 
 
|bgcolor="#000" colspan="2" style="padding:3px;"|[[{{{image}}}|{{{width}}}px|center]]
 
|bgcolor="#000" colspan="2" style="padding:3px;"|[[{{{image}}}|{{{width}}}px|center]]
 
|-
 
|-
Line 13: Line 11:
 
==Use==
 
==Use==
 
This infobox is for use on pages related to the words in Roly Polys. It makes use of various parameters to change its content on the fly:
 
This infobox is for use on pages related to the words in Roly Polys. It makes use of various parameters to change its content on the fly:
*'''word:''' The name of the word in English.
 
 
*'''image:''' An image of the word. It comes pre-formatted as being centered.
 
*'''image:''' An image of the word. It comes pre-formatted as being centered.
 
*'''width:''' A custom parameter for image width. Should be an integer (e.g. do not include "px" after it).
 
*'''width:''' A custom parameter for image width. Should be an integer (e.g. do not include "px" after it).
Line 23: Line 20:
 
==Sample==
 
==Sample==
 
{{RolyPolysWordInfobox
 
{{RolyPolysWordInfobox
|word=Against
 
 
|image=File:Against.png
 
|image=File:Against.png
|width=177
+
|width=200
 
|features=[[Pon]], [[Banaten]], [[Cho]]
 
|features=[[Pon]], [[Banaten]], [[Cho]]
 
|previous=[[Z]]
 
|previous=[[Z]]
Line 38: Line 34:
 
|-
 
|-
 
|<pre style="background-color: inherit; border: none; color: inherit; padding: inherit">{{RolyPolysWordInfobox
 
|<pre style="background-color: inherit; border: none; color: inherit; padding: inherit">{{RolyPolysWordInfobox
|word=Against
 
 
|image=File:Against.png
 
|image=File:Against.png
|width=177
+
|width=200
 
|features=[[Pon]], [[Banaten]], [[Cho]]
 
|features=[[Pon]], [[Banaten]], [[Cho]]
 
|previous=[[Z]]
 
|previous=[[Z]]
Line 53: Line 48:
 
|-
 
|-
 
|<pre style="background-color: inherit; border: none; color: inherit; padding: inherit">{{RolyPolysWordInfobox
 
|<pre style="background-color: inherit; border: none; color: inherit; padding: inherit">{{RolyPolysWordInfobox
|word=
 
 
|image=
 
|image=
 
|width=
 
|width=

Latest revision as of 12:17, 7 May 2024

[[{{{image}}}|{{{width}}}px|center]]
Features: {{{features}}}
{{{previous}}} ← {{{current}}} → {{{next}}}


Use

This infobox is for use on pages related to the words in Roly Polys. It makes use of various parameters to change its content on the fly:

  • image: An image of the word. It comes pre-formatted as being centered.
  • width: A custom parameter for image width. Should be an integer (e.g. do not include "px" after it).
  • features: Characters that the word features.
  • previous: The previous word.
  • current: The current word.
  • next: The next word.

Sample

Against.png
Features: Pon, Banaten, Cho
ZAgainstBlue


The code beneath produces the infobox you see to the right.

Sample Code:
{{RolyPolysWordInfobox
|image=File:Against.png
|width=200
|features=[[Pon]], [[Banaten]], [[Cho]]
|previous=[[Z]]
|current=[[Against]]
|next=[[Blue]]
}}

The blank code can be seen beneath.

Sample Code:
{{RolyPolysWordInfobox
|image=
|width=
|features=
|previous=
|current=
|next=
}}