Difference between revisions of "Template:Infobox Unique Item"

From BattleMaster Wiki
Jump to navigation Jump to search
(Removed redundant CSS ; Changed entire table width from px to % ; replaced template of CSS with the CSS)
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" border="1" style="float: right; width: 315px; border-spacing: 2px; font-size: 95%; text-align: left; border-collapse: collapse; margin-left: 1em;"
+
<includeonly>
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Type'''
+
{| class="infobox" border="1" style="float: right; width: 25%; border-spacing: 2px; font-size: 95%; text-align: left; border-collapse: collapse; margin-left: 1em;"
| width="50%" style="text-align:center;" | [[is itemtype::{{{type|(unknown)}}}]]
+
! width="50%" style="background: lightsteelblue;" | Type
 +
| width="50%" style="text-align:center;" | [[is itemtype::{{{type|(unknown)}}}|{{{type}}}]]
 
|-
 
|-
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Discovered by'''
+
! style="background: lightsteelblue;" | Discovered By
| width="50%" style="text-align:center;" | [[discovered by::{{{discoveredby|(unknown)}}}]]
+
| style="text-align:center;" | {{
 +
    #if: {{{discoveredby|}}} |
 +
        [[discovered by::{{{discoveredby}}}|{{{discoveredby}}}]] |
 +
        (unknown)
 +
}}
 
|-
 
|-
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Discovery date'''
+
! style="background: lightsteelblue;" | Discovery Date
| width="50%" style="text-align:center;" | {{#if:{{{discodate|}}} | [[discovery date::{{{discodate}}}]] | (unknown) }}  
+
| style="text-align:center;" | {{
 +
    #if: {{{discodate|}}} |
 +
        [[discovery date::{{{discodate}}}|{{{discodate}}}]] |
 +
        (unknown)
 +
}}  
 
|-
 
|-
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Discovery location'''
+
! style="background: lightsteelblue;" | Discovery Location
| width="50%" style="text-align:center;" | {{#if:{{{discoregion|}}} | [[{{{discoregion|(unknown)}}}]], [[located on::{{{island}}}]] | (unknown) }}
+
| style="text-align:center;" | {{
 +
    #if: {{{discoregion|}}} |
 +
        [[{{{discoregion|(unknown)}}}]], [[located on::{{{island}}}|{{{island}}}]] | {{
 +
            #if: {{{island|}}} |
 +
                  [[located on::{{{island}}}|{{{island}}}]] |
 +
                  (unknown)
 +
        }}
 +
}}
 
|-
 
|-
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Abilities'''
+
! style="background: lightsteelblue;" | Abilities
| width="50%" style="text-align:center;" | {{#if:{{{prestige|}}} | Prestige +{{{prestige}}}|}}{{#if:{{{abilities|}}}|<br>{{{abilities}}}|}}
+
| style="text-align:center;" | {{
 +
    #if: {{{prestige|}}} |
 +
        Prestige +[[prestige::{{{prestige}}}|{{{prestige}}}]] {{
 +
            #if: {{{abilities|}}} |
 +
                  <br>[[abilities::{{{abilities}}}|{{{abilities}}}]] |
 +
 
 +
        }} | {{
 +
            #if: {{{abilities|}}} |
 +
                  [[abilities::{{{abilities}}}|{{{abilities}}}]] |
 +
                  (unknown)
 +
        }}
 +
}}
 
|-
 
|-
| width="50%" style="background: lightsteelblue; text-align: center;" | '''Current Owner'''
+
! style="background: lightsteelblue;" | Current Owner
| width="50%" style="text-align:center;" | {{{owner|(unknown)}}}
+
| style="text-align:center;" | {{
 +
    #if: {{{owner|}}} |
 +
        [[owner::{{{owner}}}|{{{owner}}}]] |
 +
        (unknown)
 +
}}  
 
|}
 
|}
<includeonly>[[Category: Unique Items]] {{#if:{{{type|}}} | [[Category:{{{type}}}]] | }} </includeonly>
+
{{
<noinclude>The infobox should be added using the Infobox Unique Item template, as shown below:
+
    #if: {{{type|}}} |
 
+
        [[Category:{{{type}}} (unique)]] |
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 
{{Infobox Unique Item
 
|type=
 
|discoveredby=
 
|discodate=
 
|discoregion=
 
|island=
 
|prestige=
 
|abilities=
 
|owner=
 
 
}}
 
}}
</pre></div>
+
</includeonly>
Including this template will also automatically put the item into the "Unique Items" category.
+
<noinclude>
 
+
    {{SemanticCodes}}
 +
    {{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 03:34, 5 October 2019


Template-info.svg Semantic Coded Template
This template contains semantic coding. Do not use this template for anything other than its intended purpose.
Template-info.svg Template Documentation
This documentation is transcluded from Template:Infobox Unique Item/doc.

ExamplesSandbox

Description

This infobox displays information related to unique items. The infobox should be added using the Infobox Unique Item template, as shown below:

Parameters

Copy and paste the following template onto your page.

{{Infobox Unique Item
|type=
|discoveredby=
|discodate=
|discoregion=
|island=
|prestige=
|abilities=
|owner=
}}

Including this template will also automatically put the item into the "Unique Items" category.

Parameter Descriptions

  • type = The type of item. Valid values are: Weapon,Armour,Shield,Ring,Parchment,Book,Accessory. (See Property:Is itemtype.)
  • discoveredby = The name of the character that discovered the item.
  • discodate = Date item was discovered.
  • discoregion = Name of the region in which the item was discovered.
  • island = Island on which the item exists.
  • prestige = The prestige bonus of the item. Use the numerical value only. Do not add the "+" symbol. (i.e. use 5, not +5.)
  • abilities = Any additional skill bonus that the item has. Use the full bonus and skill name. i.e. "+10% Swordfighting".
  • owner = Name of the current owner.

Notes

  • Any parameters not used (e.g. if you don't know the discovery date or region) should be left blank, do not set them to anything like "(unknown)" - all that will be handled automatically by this template if you just leave the parameter blank.
  • Do not use any wiki links or templates when entering any information. These will break the semantic coding of the information. A way to link to the owner/finder's family page may be added in the future.
  • Date should be specified using one of the following formats. Do not use "10xx" years (i.e. Feb 17, 1011) for the date. The semantic wiki uses these dates in various places. Using the "wrong" dates will cause problems.
  • Feb 11 2000
  • 2002 March 16
  • 19 August 2003
See Property:Discovery date for more details on the date format.