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 "Template:Infobox/doc"

From OpenUru
Jump to navigation Jump to search
m
Line 1: Line 1:
This template is an infobox for page summaries. It has a wide range of customizable parameters for a wide array of wiki articles. Here are some of the ones used for age description pages:  
+
This template provides a generalized information box. It can be used to display a title accompanied by an optional image, optional subtitle, and a number of heading/value pairs:  
*'''image:''' The image to be displayed at the top of the infobox. The image's width is by default 300px wide. Please note the appropriate formatting for images when using this template.
+
*'''tn_image:''' URL of the thumbnail image to be displayed at the top of the infobox (optional). If used, "image" should also be supplied but may be the same URL if no larger image is available.
*'''name:''' The title of the box is the name of the box. Usually this is the same as the name of the article.  
+
*'''image:''' URL of larger version of thumbnail image.  
*'''writer:''' The name of the Writer who wrote the age.
+
*'''title:''' The title of the box (required).  
*'''writers:''' The name of the writers of the age, for ages with multiple writers. Do not use this with <tt>writer</tt>.
+
*'''subtitle''' A subtitle for the box (optional) may be used as a heading to the body table.
*'''hahr:''' The hahr or year the age was written.  
+
*'''heading1''' The name of the first information item (displayed on the left side)(optional).
*'''type:''' The type of age. (i.e. "Large Age," "Garden Age," "Pod Age," ect.)
+
*'''value1''' The value or data for the first information item (displayed on the right side)(optional, bu required if "heading1" is defined).
*'''phase:''' Restoration phase of the age. An unnecessary parameter for most articles.  
+
*'''...'''
*'''released:''' Date the age was released to the public. An unnecessary parameter, listed only for documentation.
+
*'''heading8''' The name of the first information item (displayed on the left side)(optional).
*'''journal:''' Journal found in the age, about the age. Please list as a link.  
+
*'''value8''' The value or data for the first information item (displayed on the right side)(optional, bu required if "heading8" is defined).
*'''journals:''' Journals found in the age. Use this instead of <tt>journal</tt> if there is more than one journal. Please list as links.
+
 
*'''linkInPoints:''' List of link-in points. For simplicity, don't list the "journey cloths."
+
Heading and Value pairs are optional, and up to eight pairs may be present in the infobox.
  
 
===Example===
 
===Example===
<syntaxhighlight lang="html4strict">{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em;"
+
{{Infobox|title=Title|subtitle=My subtitle|image=http://assets.openuru.org/wiki/demo/stats_large.png|tn_image=http://assets.openuru.org/wiki/demo/stats_small.png|heading1=First|value1=Value A|heading2=Second|value2=Another value}}
! 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]
+
<code><nowiki>{{Infobox|title=Title|subtitle=My subtitle|
|-
+
image=http://assets.openuru.org/wiki/demo/stats_large.png|
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | Ae'gura
+
tn_image=http://assets.openuru.org/wiki/demo/stats_small.png|
|-
+
heading1=First|value1=Value A}}</nowiki></code>  
! Type
 
| Large
 
|-
 
! Link-in points
 
| Many
 
|-
 
|}
 
</syntaxhighlight> yields:
 
{| 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
 
|-
 
! Type
 
| Large
 
|-
 
! Link-in points
 
| Many
 
|-
 
|}
 
 
 
Due to the way the OpenUru wiki handles image files, this template must be copied and pasted manually to achieve the optimum effect. You can add or remove lines of code as necessary. The full "Age" code used for Ae'gura is as follows:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<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://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;" | <hahr>0 BE</hahr>
 
|-
 
| 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
 
|-
 
|}
 
 
 
</syntaxhighlight>
 
 
 
Which in turn provides the following:
 
 
 
{| 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
 
|-
 
|}
 
  
Note: The original template, known as the "Age" template, was contributed by Chucker, Gorobay, and Koena on mystlore.com;[http://mystlore.com] used on the OpenUru wiki under the Creatie Commons License. [http://creativecommons.org/licenses/by-nc/2.5/]
+
yields the box shown on the right.
[[Category:New Greeters]]
 

Revision as of 13:41, 26 December 2011

This template provides a generalized information box. It can be used to display a title accompanied by an optional image, optional subtitle, and a number of heading/value pairs:

  • tn_image: URL of the thumbnail image to be displayed at the top of the infobox (optional). If used, "image" should also be supplied but may be the same URL if no larger image is available.
  • image: URL of larger version of thumbnail image.
  • title: The title of the box (required).
  • subtitle A subtitle for the box (optional) may be used as a heading to the body table.
  • heading1 The name of the first information item (displayed on the left side)(optional).
  • value1 The value or data for the first information item (displayed on the right side)(optional, bu required if "heading1" is defined).
  • ...
  • heading8 The name of the first information item (displayed on the left side)(optional).
  • value8 The value or data for the first information item (displayed on the right side)(optional, bu required if "heading8" is defined).

Heading and Value pairs are optional, and up to eight pairs may be present in the infobox.

Example

http://assets.openuru.org/wiki/demo/stats_small.png
Title
My subtitle
First Value A
Second Another value

{{Infobox|title=Title|subtitle=My subtitle| image=http://assets.openuru.org/wiki/demo/stats_large.png| tn_image=http://assets.openuru.org/wiki/demo/stats_small.png| heading1=First|value1=Value A}}

yields the box shown on the right.