Template:Box2/doc

From Spanking Art
Jump to navigationJump to search
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 = will set the radius of the corners. Defaults to 10px
Syntax
Type {{Box2}} somewhere.
Sample output
{{Box2|foo}} gives...
foo
{{Box2|foo|corner=round}} gives...
foo
{{Box2|foo|center}} gives...
foo
{{Box2|foo|center|80%}} gives...
foo
{{Box2|foo|center|80%|round}} gives...
foo
{{Box2
| text = foo
| align= center
| width = 80%
}}

gives...

foo
{{Box2
| text = foo
| align= center
| text-align = left
| width = 80%
| corner = round
| rad = 5px
}}

gives...

foo
{{Box2
| 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 = 300px
| corner = round
}}

gives...

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.
{{Box2
| image = Example.jpg
| iSize = 100px
| width = 300px
| corner = round
| width=80%
}}

gives...

Example.jpg "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
https://spankingart.org/wiki/Template:Box2/doc
spankingart.org
crawl=CC-MAIN-2021-21
22893
application/http; msgtype=response
sha1:DA2B3J4UBH63ZMLR6FU23LGNDJSMOZM3
<urn:uuid:0d422482-2111-439f-8dec-0b4f47d27824>
2021-05-09T08:03:19Z
172.67.135.232
text/html
sha1:SKBCUHT36FHPXIVS6MO2A3Q32CVFBGYA
<urn:uuid:f247ee5c-1b43-424e-a063-c111d6a094ce>
https://spankingart.org/wiki/Template:Box2/doc
response
<urn:uuid:1119f15e-75cd-4304-895a-51f77c335385>
isPartOf: CC-MAIN-2021-21
publisher: Common Crawl
description: Wide crawl of the web for May 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-188.ec2.internal
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/