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:AgeInfobox"

From OpenUru
Jump to navigation Jump to search
(Make "image" optional)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>'''Example:'''</noinclude>
 
 
<includeonly>
 
<includeonly>
 
[[Category:Ages]]
 
[[Category:Ages]]
{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em;"
+
{| style="float: right; width: 20em; background-color: #FFEECC; border: 1px dashed #FFCC66; padding: 0.5em; margin-left: 0.5em;"
 
{{#if:{{{tn_image|}}}|
 
{{#if:{{{tn_image|}}}|
! colspan="2" style="text-align: center; margin-bottom: 1em;" {{!}} <span class="plainlinks">[{{{image}}} {{{tn_image}}}]</span>
+
! colspan="2" style="text-align: center; margin-bottom: 1em;" {{!}} {{#if:{{{image|}}}|<span class="plainlinks">[{{{image}}} {{{tn_image}}}]</span>|{{{tn_image}}} }}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 21: Line 20:
 
|-
 
|-
 
{{#if:{{{hahr|}}}|
 
{{#if:{{{hahr|}}}|
{{!}} colspan="2" style="font-size: 0.95em; text-align: center;" {{!}} {{{hahr}}}
+
{{!}} colspan="2" style="font-size: 0.95em; text-align: center;" {{!}} in {{{hahr}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if:{{{ecosystem|}}}|
 
{{#if:{{{ecosystem|}}}|
{{!}} colspan="2" style="font-size: 0.95em; text-align: center;" {{!}} {{{name}}}'s ecosystem:}}
+
{{!}} colspan="2" style="font-size: 0.95em; text-align: center;" {{!}} {{{name}}}'s ecosystem: {{{ecosystem}}} }}
 
|-
 
|-
 
{{#if:{{{type|}}}|
 
{{#if:{{{type|}}}|
Line 49: Line 48:
 
{{#if:{{{journal|}}}|
 
{{#if:{{{journal|}}}|
 
! Journal
 
! Journal
{{!}} {{{journal}}}
+
{{!}} [[{{{journal}}}]]
 
{{!}}-|
 
{{!}}-|
 
{{#if:{{{journals|}}}|
 
{{#if:{{{journals|}}}|
 
! Journals
 
! Journals
{{!}} {{{journals}}}
+
{{!}} [[{{{journals}}}]]
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Latest revision as of 14:22, 26 December 2011

This template is an infobox for ages. It has fourteen possible parameters (note that many are optional and some are mutually exclusive):

  • tn_image A thumbnail of the age image, stored in the wiki. Normally this should be set to 300 pixels wide and provides a link to a larger image if present (optional).
  • image: An image of the age, stored in the wiki (optional). Will be ignored unless "tn_image" is also used.
  • 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 this parameter can be used to set the name manually.
  • writer: The name of the 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 writer.
  • hahr: The hahr the age was written.
  • ecosystem: The age's ecosystem. If this parameter is used, name must be used too. It doesn't matter what value ecosystem 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 Type=Garden. It will display 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 is not necessary.
  • phase: Restoration phase of the age. 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 journal if there is more than one journal.
  • linkInPoints: Link-in points. For simplicity, don't list the journey cloths.

Example

http://assets.openuru.org/wiki/newgreeters/KIimage0001TN.jpg
Stub

Written by Editor

in 9663
Stub's ecosystem: xyzzy
Type Small Age
Connected places Age_1, Age_2
Restoration phase 1
Released 2006-09-18
Journal Stub journal
Link-in points Pedestal

{{AgeInfobox| tn_image=http://assets.openuru.org/wiki/newgreeters/KIimage0001TN.jpg| name=Stub|writer=Editor|hahr=9663|ecosystem=xyzzy|type=Small| connected=Age_1, Age_2|phase=1|released=2006-09-18|journal=Stub journal| linkInPoints=Pedestal}}

yields the box shown on the right:



Note: This template is adapted from the "Age" template at Mystlore.com[1], contributed by Chucker, Gorobay, and Koena and published under Creative Commons Attribution Non-Commercial License[2].