In Memoriam: Tai'lahr

OpenUru.org, along with the rest of the Mystonline community, is mourning the loss of Tai'lahr on October 16th, 2019.

Rest in Peace, friend.

Difference between revisions of "How to Use the Infobox and AgeInfobox for Articles"

From OpenUru
Jump to navigation Jump to search
m (Changed the Infobox text for better wording.)
m (Removed the workaround after finding inconsistencies in the code; edited for OpenUru wiki-wide use.)
Line 2: Line 2:
 
{{NewGreeters}}
 
{{NewGreeters}}
 
[[Category:Ages]]
 
[[Category:Ages]]
This page is a tutorial for the Infobox and AgeInfobox templates. While the two are visually similar, they both have their quirks when using the same image for thumbnails due to the way the OpenUru wiki handles images. I'll give you a brief description of how to utilize them for New Greeters articles, and provide a workaround for the aforementioned image resizing quirks.  
+
This page is a tutorial for the Infobox and AgeInfobox templates. While the two are visually similar, they both have their quirks when using the same image for thumbnails due to the way the OpenUru wiki handles images. Make sure you have a thumbnail sized image if you'd like to utilize the "tn_image" feature. I'll give you a brief description of how to utilize these boxes for articles.
  
 
==Using [[Template:Infobox]]==
 
==Using [[Template:Infobox]]==
Line 36: Line 36:
 
The AgeInfobox template can be used for descriptions of ages. The generalized parameters are described in detail [[Template:AgeInfobox|here]]. I'll give you a simple example using Ae'gura:  
 
The AgeInfobox template can be used for descriptions of ages. The generalized parameters are described in detail [[Template:AgeInfobox|here]]. I'll give you a simple example using Ae'gura:  
 
{{AgeInfobox|tn_image=http://assets.openuru.org/wiki/newgreeters/KIimage0001TN.jpg| name=Ae'gura|writer=Ri'neref|ecosystem=[[Ecosystem of D'ni]]|type=Large| connected=Many|phase=Open|released=November, 11th, 2003|journal=Many| linkInPoints=Many}}
 
{{AgeInfobox|tn_image=http://assets.openuru.org/wiki/newgreeters/KIimage0001TN.jpg| name=Ae'gura|writer=Ri'neref|ecosystem=[[Ecosystem of D'ni]]|type=Large| connected=Many|phase=Open|released=November, 11th, 2003|journal=Many| linkInPoints=Many}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
==Using the Infobox Workaround==
 
When the image used is too large for the thumbnail, this workaround markup code can be used:
 
<syntaxhighlight lang="html4strict">
 
{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em;"
 
! colspan="2" style="text-align: center; margin-bottom: 1em;" | [http://"URLHEREx2" http://"URLHEREx2"]
 
|-
 
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | Description Box
 
|-
 
| colspan="2" style="font-size: 0.95em; text-align: center;" | Sub Discription1
 
|-
 
| colspan="2" style="font-size: 0.95em; text-align: center;" | Sub Discription2
 
|-
 
| colspan="2" style="font-size: 0.95em; text-align: center;" | Further Info
 
|-
 
! Type
 
| Fill this in
 
|-
 
! Released
 
| MM,DD,YY
 
|-
 
! Custom Parameter1
 
| Custom Discription1
 
|-
 
! Custom Parameter2
 
| Custom Discription2
 
|-
 
|}</syntaxhighlight>
 
This code works the same way as the Infobox template, except the image in question does not have to be re-sized to fit in the box. Here is what the code above looks like when filled with information detailing Ae'gura:
 
 
{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em;"
 
! colspan="2" style="text-align: center; margin-bottom: 1em;" | [http://assets.openuru.org/wiki/newgreeters/KIimage0001.jpg http://assets.openuru.org/wiki/newgreeters/KIimage0001TN.jpg]
 
|-
 
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | Ae'gura
 
|-
 
| colspan="2" style="font-size: 0.95em; text-align: center;" | Written by Ri'neref
 
|-
 
| colspan="2" style="font-size: 0.95em; text-align: center;" | Written arround 0 BE
 
|-
 
| colspan="2" style="font-size: 0.95em; text-align: center;" | [[Eco System of D'ni]]
 
|-
 
! Type
 
| Large Age (Part of D'ni/Earth)
 
|-
 
! Restoration phase
 
| Open
 
|-
 
! Released
 
| November 11, 2003
 
|-
 
! Journal
 
| Many
 
|-
 
! Link-in points
 
| Many
 
|-
 
|}
 

Revision as of 23:05, 26 December 2011



The New Greeters


The Guild of New Greeters, for a Better D'ni.

New Greeters links: Home | Wiki Index | Forum | Archive | News

This page is a tutorial for the Infobox and AgeInfobox templates. While the two are visually similar, they both have their quirks when using the same image for thumbnails due to the way the OpenUru wiki handles images. Make sure you have a thumbnail sized image if you'd like to utilize the "tn_image" feature. I'll give you a brief description of how to utilize these boxes for articles.

Using Template:Infobox

The Infobox template can be used for description markups or summaries. The generalized parameters are described in detail here. The basic parameters can be filled to describe or summarize any article, object, or location. I'll give you a simple example using the New Greeters:

{{Infobox|title=New Greeters|subtitle=The Guild of New Greeters, for a Better D'ni|image=http://assets.openuru.org/wiki/newgreeters/dniGuilds-150x150.png|
tn_image=http://assets.openuru.org/wiki/newgreeters/dniGuilds-150x150.png|heading1=Guild Type|value1=Modern, Adapted Traditional|heading2=Website|value2=http://newgreeters.openuru.org/}}

This code produces the following:

http://assets.openuru.org/wiki/newgreeters/dniGuilds-150x150.png
New Greeters
The Guild of New Greeters, for a Better D'ni
Guild Type Modern, Adapted Traditional
Website http://newgreeters.openuru.org/












Using Template:AgeInfobox

The AgeInfobox template can be used for descriptions of ages. The generalized parameters are described in detail here. I'll give you a simple example using Ae'gura:

http://assets.openuru.org/wiki/newgreeters/KIimage0001TN.jpg
Ae'gura

Written by Ri'neref

Ae'gura's ecosystem: Ecosystem of D'ni
Type Large Age
Connected places Many
Restoration phase Open
Released November, 11th, 2003
Journal Many
Link-in points Many