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
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em; margin-left: 0.5em;"
[[<!--C-->Category:Ages]]
+
{{#if:{{{tn_image|}}}|
{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em;"
+
! colspan="2" style="text-align: center; margin-bottom: 1em;" {{!}} {{#if:{{{image|}}}|<span class="plainlinks">[{{{image}}} {{{tn_image}}}]</span>|{{{tn_image}}} }}
{{#if:{{{image|}}}|
 
! colspan="2" style="text-align: center; margin-bottom: 1em;" {{!}} [[Image:{{{image}}}|240px]]
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | {{#if:{{{name|}}}|
+
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | {{#if:{{{title|}}}|
{{{name}}}|
+
{{{title}}}
{{PAGENAME}}}}
+
}}
 
|-
 
|-
| colspan="2" style="font-size: 0.95em; text-align: center;" |
+
{{#if:{{{subtitle|}}}|
{{#if:{{{writer|}}}|
+
{{!}} colspan="2" style="text-align: center; margin-bottom: 1em;" {{!}} {{{subtitle}}}
Written by [[{{{writer}}}]][[<!--C-->Category:Ages written by {{{writer}}}]]|
+
{{!}}-
{{#if:{{{writers|}}}|
 
Written by {{{writers}}}[[<!--C-->Category:Ages written by {{{writers}}}]]|
 
Writer unknown
 
 
}}
 
}}
 +
{{#if:{{{heading1|}}}|
 +
! {{{heading1|}}}
 +
{{!}} {{{value1}}}
 +
{{!}}-
 
}}
 
}}
|-
+
{{#if:{{{heading2|}}}|
{{#if:{{{hahr|}}}|
+
! {{{heading2|}}}
{{!}} colspan="2" style="font-size: 0.95em; text-align: center;" {{!}} {{{hahr}}}
+
{{!}} {{{value2}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{ecosystem|}}}|
+
{{#if:{{{heading3|}}}|
{{!}} colspan="2" style="font-size: 0.95em; text-align: center;" {{!}} [[:Category:{{{name}}}'s ecosystem|{{{name}}}'s ecosystem]]}}
+
! {{{heading3|}}}
|-
+
{{!}} {{{value3}}}
{{#if:{{{type|}}}|
 
! Type
 
{{!}} [[:Category:{{{type}}} Ages|{{{type}}} Age]] [[Category:{{{type}}} Ages]]
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{connected|}}}|
+
{{#if:{{{heading4|}}}|
! Connected places
+
! {{{heading4|}}}
{{!}} {{{connected}}}
+
{{!}} {{{value4}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{phase|}}}|
+
{{#if:{{{heading5|}}}|
! Restoration phase
+
! {{{heading5|}}}
{{!}} [[:Category:Ages in Restoration Phase {{{phase}}}|{{{phase}}}]] [[Category:Ages in Restoration Phase {{{phase}}}]]
+
{{!}} {{{value5}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{released|}}}|
+
{{#if:{{{heading6|}}}|
! Released
+
! {{{heading6|}}}
{{!}} {{{released}}}
+
{{!}} {{{value6}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{journal|}}}|
+
{{#if:{{{heading7|}}}|
! Journal
+
! {{{heading7|}}}
{{!}} {{{journal}}}
+
{{!}} {{{value7}}}
{{!}}-|
 
{{#if:{{{journals|}}}|
 
! Journals
 
{{!}} {{{journals}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
}}
+
{{#if:{{{heading8|}}}|
{{#if:{{{linkInPoints|}}}|
+
! {{{heading8|}}}
! Link-in points
+
{{!}} {{{value8}}}
{{!}} {{{linkInPoints}}}
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|}
+
|}</includeonly><noinclude>
</includeonly><noinclude>This template is an infobox for [[age]]s. It has twelve parameters:
+
{{documentation}}
*'''image:''' An image of the age. The image's width is set to 240 pixels.
 
*'''name:''' The title of the box is the name of the age. Usually this is the same as the name of the article. When it isn't (like in [[Gemedet (age)]]), this parameter can be used to set the name manually.
 
*'''writer:''' The name of the [[Guild of Writers|Writer]] who wrote the age. It automatically creates a link to the Writer's article.
 
*'''writers:''' The name of the writers of the age, for ages with multiple writers. Do not use this with <tt>writer</tt>.
 
*'''hahr:''' The [[hahr]] the age was written. To get the equivalent year in our calendar, you have to type it inside <tt><nowiki><hahr></nowiki></tt>.
 
*'''ecosystem:''' The [[:Category:Ages' ecosystems|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.
 
*'''type:''' The type of age. An article with this parameter filled will be put into the appropriate category. The category must end with the word "Ages", but don't type that; if it is a Garden Age, type <tt>Type=Garden</tt>. It will display [[:Category:Garden Ages|Garden Age]].
 
*'''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. Since almost all the ages were connected to D'ni, writing [[Earth]] or [[D'ni age|D'ni]] is not necessary.
 
*'''phase:''' [[Restoration phase]] of the age. An article with this parameter filled will be put into the appropriate category. For released ages, type "Open". For unreleased ages, type the number ("1" instead of "One").
 
*'''released:''' Date the age was released to the public.
 
*'''journal:''' Journal found in the age.
 
*'''journals:''' Journals found in the age. Use this instead of <tt>journal</tt> if there is more than one journal.
 
*'''linkInPoints:''' [[Link-in point]]s. For simplicity, don't list the [[journey cloth]]s.
 
 
 
===Example===
 
<tt><nowiki>
 
{{age|image=http://assets.openuru.org/wiki/newgreeters/KIimage0001TN.jpg|name=Ae'gura|type=Large}}</nowiki></tt> 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;" | image:http://assets.openuru.org/wiki/newgreeters/KIimage0001.jpg
 
|-
 
| colspan="2" style="font-size: 1.3em; text-decoration: underline; text-align: center;" | Ae'gura
 
|-
 
! Type
 
| Large
 
|
 
|-
 
|}
 
 
 
It would also put the article into [[:Category:Ages]], [[:Category:Small Ages]], and [[:Category:Ages in Restoration Phase 1]].
 
 
</noinclude>
 
</noinclude>
 
+
[[Category:Ages]]
Original designed by Chucker, Gorobay, and Koena at mystlore.com
 

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.