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"

From OpenUru
Jump to navigation Jump to search
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{NewGreeters}}
+
<includeonly>{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em; margin-left: 0.5em;"
<noinclude>This template is an infobox for ages. It has twelve parameters:
+
{{#if:{{{tn_image|}}}|
*'''image:''' An image of the age. The image's width is by default 300px wide. Please note the appropriate formatting for images when using this template.
+
! colspan="2" style="text-align: center; margin-bottom: 1em;" {{!}} {{#if:{{{image|}}}|<span class="plainlinks">[{{{image}}} {{{tn_image}}}]</span>|{{{tn_image}}} }}
*'''name:''' The title of the box is the name of the age. Usually this is the same as the name of the article.
+
{{!}}-
*'''writer:''' The name of the Writer who wrote the age.
+
}}
*'''writers:''' The name of the writers of the age, for ages with multiple writers. Do not use this with <tt>writer</tt>.
+
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | {{#if:{{{title|}}}|
*'''hahr:''' The hahr or year the age was written.
+
{{{title}}}
*'''ecosystem:''' The age's ecosystem. Don't use this if the age's ecosystem category has not been created. If this parameter is used, <tt>name</tt> must be used too. It doesn't matter what value <tt>ecosystem</tt> has, as long as it is something. New Greeters, do not start new ecosystem pages unless they are necessary for walkthroughs.
+
}}
*'''type:''' The type of age. (i.e. "Large," "Garden Age," "Pod Age," ect.)
 
*'''connected:''' Ages or places that link to the age or are linked to from the age. To make links to them, you have to put them inside brackets. Use only for appropriate walkthroughs or information articles.
 
*'''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.
 
*'''journal:''' Journal found in the age, about the age. Please list as a link.
 
*'''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."
 
 
 
===Example===
 
<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
+
{{#if:{{{subtitle|}}}|
|-
+
{{!}} colspan="2" style="text-align: center; margin-bottom: 1em;" {{!}} {{{subtitle}}}
! Type
+
{{!}}-
| Large
+
}}
|-
+
{{#if:{{{heading1|}}}|
! Link-in points
+
! {{{heading1|}}}
| Many
+
{{!}} {{{value1}}}
|-
+
{{!}}-
|}
+
}}
</syntaxhighlight> yields:
+
{{#if:{{{heading2|}}}|
{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em;"
+
! {{{heading2|}}}
! 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]
+
{{!}} {{{value2}}}
|-
+
{{!}}-
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | Ae'gura
+
}}
|-
+
{{#if:{{{heading3|}}}|
! Type
+
! {{{heading3|}}}
| Large
+
{{!}} {{{value3}}}
|-
+
{{!}}-
! Link-in points
+
}}
| Many
+
{{#if:{{{heading4|}}}|
|-
+
! {{{heading4|}}}
|}
+
{{!}} {{{value4}}}
 
+
{{!}}-
 +
}}
 +
{{#if:{{{heading5|}}}|
 +
! {{{heading5|}}}
 +
{{!}} {{{value5}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{heading6|}}}|
 +
! {{{heading6|}}}
 +
{{!}} {{{value6}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{heading7|}}}|
 +
! {{{heading7|}}}
 +
{{!}} {{{value7}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{heading8|}}}|
 +
! {{{heading8|}}}
 +
{{!}} {{{value8}}}
 +
{{!}}-
 +
}}
 +
|}</includeonly><noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>
 
+
[[Category:Ages]]
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)
 
|-
 
! Connected places
 
| Many
 
|-
 
! 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)
 
|-
 
! Connected places
 
| Many
 
|-
 
! Restoration phase
 
| Open
 
|-
 
! Released
 
| November 11, 2003
 
|-
 
! Journal
 
| Many
 
|-
 
! Link-in points
 
| Many
 
|-
 
|}
 
 
 
Note: The original 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/]
 

Latest revision as of 14:12, 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" may also be supplied if larger image is available. It will be linked from the thumbnail.
  • image: URL of larger version of thumbnail image (optional).
  • 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, but is required if "heading1" is defined).
  • ...
  • heading8 The name of the eighth information item (displayed on the left side)(optional).
  • value8 The value or data for the eighth information item (displayed on the right side)(optional, but is 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|heading2=Second|value2=Another value}}

yields the box shown on the right.