Template:Box3/doc

From wiki.jriver.com
< Template:Box3
Revision as of 06:08, 11 April 2014 by Glynor (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{

 #ifeq: Template | Template 
 | {{
   #ifeq: {{ #if:  | {{{reusedemo}}} | Wiki.jriver.com }} | Wikia Templates
   | {{
     #ifeq: Box3 | {{ #ifeq: {{ #titleparts: Box3/doc | 1 | -1 }} | doc | Box3 | Box3/doc }}
     | 
     | :Error: {{{name}}} parameter is unused or incorrect! Please replace {{SPW{{ #if: is not on | |is not on }}{{ #ifeq: Box3 | ¬ | | |name=Box3 }}}} with {{SPW{{ #if: is not on | |is not on }}|name=Box3}}.
}}:{{ #switch: is not on | is on = This template or a similar one is on the Starter Pages Wikia, whence it is incorporated in every new Wikia site and can be copied to older ones. | is newer = This template is newer than a similar one on the Starter Pages Wikia. This template may therefore have bug fixes or improvements when compared to the older version.{{ #ifeq: {{ #titleparts: Box3/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Box3/doc | 1 | -1 }} | doc | | }} }} | is not on = This template is not on the Starter Pages Wikia. It can be copied to other Wikia sites, but it is not included on any by default.{{ #ifeq: {{ #titleparts: Box3/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Box3/doc | 1 | -1 }} | doc | | }} }} | #default = Editors have not checked whether this template is or is not on the Starter Pages Wikia.{{ #ifeq: {{ #titleparts: Box3/doc | 1 | 1 }} | SPW | | {{ #ifeq: {{ #titleparts: Box3/doc | 1 | -1 }} | doc | | }} }} }}

|

   {{ #ifeq: {{ #titleparts: Box3/doc | 1 | -1 }} | doc |  | }}
 }}

}}

Description
This template is used to encapsulate something in a box.
Options
  • text = This is defaults the the first parameter and should contain the contents of the box.
  • align = if sent to center it will center the box. It defaults to the second parameter.
  • padleft = change left side padding between box edge and text. It defaults to 0.5em.
  • padright = change right side padding between box edge and text. It defaults to 0.5em.
  • text-align = Will govern the alignment of text. Will default to what align is set to or the second parameter.
  • width = set the width of the box. It defaults to 100% or the third parameter.
  • corner = if set to round will round the corners of the box. It will default to the fourth parameter.
  • rad = set the radius of the corners, defaults to 10px
  • image = will assign an image to the left side of the box. Example.jpg
  • iSize = will set the width of the image. 112px
The color is set be the theme's class="accent"
Syntax
Type {{#ifeq:|code|}}{{{{#if:|{{{prefix}}}:}}Box3{{#if:||<{{{2}}}>}}{{#if:||<{{{3}}}>}}{{#if:||<{{{4}}}>}}{{#if:||<{{{5}}}>}}{{#if:||<{{{6}}}>}}{{#if:||<{{{7}}}>}}{{#if:||<{{{8}}}>}}{{#if:||<{{{9}}}>}}{{#if:||<{{{10}}}>}}{{#if:||<{{{11}}}>}}{{#if:||<{{{12}}}>}}{{#if:||<{{{13}}}>}}{{#if:||<{{{14}}}>}}{{#if:||<{{{15}}}>}}{{#if:||<{{{16}}}>}}{{#if:||<{{{17}}}>}}{{#if:||<{{{18}}}>}}{{#if:||<{{{19}}}>}}{{#if:||<{{{20}}}>}}{{#if:||<{{{21}}}>}}}}{{#ifeq:|code|}} somewhere.
Sample output
{{Box3|foo}} gives...
{{#if:||
Error creating thumbnail: File missing
}}foo
{{Box3|foo|corner=round}} gives...
{{#if:||
Error creating thumbnail: File missing
}}foo
{{Box3|foo|center}} gives...
{{#if:||
Error creating thumbnail: File missing
}}foo
{{Box3|foo|center|80%}} gives...
{{#if:||
Error creating thumbnail: File missing
}}foo
{{Box3|foo|center|80%|round}} gives...
{{#if:||
Error creating thumbnail: File missing
}}foo
{{Box3
| text = foo
| align= center
| width = 80%
}}

gives...

{{#if:||
Error creating thumbnail: File missing
}}foo
{{Box3
| text = foo
| align= center
| text-align = left
| width = 80%
| corner = round
| rad = 5px
}}

gives...

{{#if:||
Error creating thumbnail: File missing
}}foo
{{Box3
| text = The design of the dress was understated,
but with bold accents.
One could accuse it of too much color blocking,
but in the current mood of the economy, this style might be
just what is needed for the season.
| padleft = 4em
| padright = 4em
| width = 150px
| corner = round
}}

gives...

{{#if:||
Error creating thumbnail: File missing
}}The design of the dress was understated,

but with bold accents. One could accuse it of too much color blocking, but in the current mood of the economy, this style might be just what is needed for the season.

{{Box3|
|image=Example.jpg
|iSize=112px
| align= center
| text = Rose are red
| padleft=0px
| width = 43%
}}

gives...

{{#if:Example.jpg||
Error creating thumbnail: File missing
}}Rose are red