diff --git a/images/noimage.png b/images/noimage.png new file mode 100644 index 0000000..1a2aede Binary files /dev/null and b/images/noimage.png differ diff --git a/local.css b/local.css index ec831d6..9d90096 100644 --- a/local.css +++ b/local.css @@ -28,7 +28,13 @@ body { td, th { border-right: 1px solid; border-top: 1px solid; - padding-right: 1em + padding-right: 2ex +} +.ibox td, .ibox th { + font-size: 0.75em +} +.ibox-img { + height: 150px } h1, h2, h3, h4, h5, h6 { font-family: serif @@ -41,20 +47,29 @@ a { } blockquote { border-left: 2px solid; - padding-left: 1em + padding-left: 2ex } .pageheader { background: left / contain no-repeat url("/xevv/images/header.png"); image-rendering: crisp-edges } +.ibox-head { + width: 100%; + text-align: center; + margin-top: 0.5em; + margin-bottom: 0.5em +} +.sidebar { + padding: 0ex 1ex; +} a {color: #92ebf0} body {background-color: #0a0a0a; color: #eaeaea} h1, h2, h3, h4, h5, h6 {color: #9a9a9a} h3>span {color: #7a7a7a} td, th, fieldset, blockquote, .pageheader .actions ul, #pageinfo {border-color: #eaeaea} small {color: #777} -div.recentchanges {background: #1a1a1a !important; color: #eee !important} -.recentchanges .changelog {background: #2a2a2a !important; color: #fff !important} +div.recentchanges, .sidebar {background-color: #1a1a1a !important; color: #eee !important} +.recentchanges .changelog {background-color: #2a2a2a !important; color: #fff !important} @media(prefers-color-scheme: light) { a {color: #2a7fe8} body {background-color: #f5f5f5; color: #151515} @@ -62,6 +77,6 @@ div.recentchanges {background: #1a1a1a !important; color: #eee !important} h3>span {color: #858585} td, th, fieldset, blockquote, .pageheader .actions ul, #pageinfo {border-color: #151515} small {color: #888} - div.recentchanges {background: #e5e5e5 !important; color: #111 !important} - .recentchanges .changelog {background: #d5d5d5 !important; color: #000 !important} + div.recentchanges, .sidebar {background-color: #e5e5e5 !important; color: #111 !important} + .recentchanges .changelog {background-color: #d5d5d5 !important; color: #000 !important} } diff --git a/templates/iboxperson.mdwn b/templates/iboxperson.mdwn new file mode 100644 index 0000000..446268f --- /dev/null +++ b/templates/iboxperson.mdwn @@ -0,0 +1,96 @@ +[[!templatebody < +

+[[!color + foreground=black + background=white + text=""]] +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
First appearance
Based on
Nickname
Nicknames
Species
Gender
Class
Affiliation
Origin
Born
Heightdm
Weightkg
Parent
Parents
+ +ENDBODY]] + +This template is a simple info box for people or characters. + +Parameters: + +| Name | Description | +| ----------- | ----------- | +| name | Required. Name of the person. | +| colorfg | The foreground color for the name. Defaults to black. | +| colorbg | The background color for the name. Defaults to white. | +| image | Image to be displayed below the name. | +| first | Where the character first appeared. | +| basedon | What the character is based on. | +| nickname(s) | Nick name(s) of the person. | +| species | Species of the character. | +| gender | Gender of the person. | +| class | In games, what class the character is. | +| affiliation | Who the character is affiliated with. | +| origin | Origin point of the character. | +| born | When the character was born, and their original name, if any. | +| height | The height of the person, in decimeters. | +| weight | The weight of the person, in kilograms. | +| parent(s) | The parent(s) of the character. | + +Example usage: + + \[[!sidebar content=""" + \[[!template + id=iboxperson + name="John Doe" + image="/xevv/images/noimage.png" + first="Spingy Bingus" + basedon="Jane Doe" + nickname=Joe + height=42 + weight=800]] + """]]