Template:Infobox skill: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(+RequiredBy: count.)
(Implement "Infobox/pagina2" call.)
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly
<includeonly


>{| class="infobox boxed" style="font-size:89%; width:300px;"
>{| class="infobox boxed" style="font-size:89%; width:320px;"
|+ {{#if:{{REVISIONID}}
|+ {{Infobox/preview_mode_note}}
|
|<span style="
font-size: 0.8em;
font-style: italic;
color: blue;
background-color: yellow;
">Infobox Preview Mode:<br>Property Changes Not Shown.}}</span>
 
! colspan="2" | {{{name|{{PAGENAME}}}}}
! colspan="2" | {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
{{Infobox/image_cell
| colspan="2" style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=320 }}<br/><i>{{{caption|}}}</i>
  | image = {{{image|}}}
  | imagewidth = {{{imagewidth|}}}
  | maxsize = 152
  |
  | caption = {{{caption|}}}
  | ptext1 = {{{ptext1|}}}
}}
|-
|-
! colspan="2" {{RoB_style|infoboxsection}} |
! colspan="2" {{RoB_style|infoboxsection}} |
|-
|-
| style="width:60px;" | <b>[[LP]] Cost</b>
| style="width:60px;" | <b>[[LP]] Cost</b>
| [[skillcost::{{{cost|-999}}}]]
| [[lpcost::{{{skillcost|-999}}}]]
|-
|-
| <b>[[Skills | Skill(s)]]<br>Required</b>
| <b>[[Skills | Skill(s)]]<br>Required</b>
| {{{req|-999}}}
| {{{req|-999}}}
|-
|-
| <b>Skill(s)<br>Enabled</b>
| <b>[[Skills | Skill(s)]]<br>Enabled</b>
| {{#if: {{SkillsEnabled}} | {{SkillsEnabled}} | None}}
| {{#if: {{SkillsEnabled}} | {{SkillsEnabled}} | None}}
|-
| <b>[[Hearth Magics | Hearth Magic(s)]] Unlocked</b>
| {{#if: {{HearthMagicsUnlocked}} | {{HearthMagicsUnlocked}} | None}}
|-
|-
| <b>Required By</b> ({{RequiredBy|count}})
| <b>Required By</b> ({{RequiredBy|count}})
| {{#if: {{RequiredBy}} | {{RequiredBy}} | Nothing}}
| {{#if: {{RequiredBy}} | {{RequiredBy}} | Nothing}}
|-
|-
! colspan="2" | Back to [[:Category:Skills|Skills]]
! colspan="2" | Go to [[Skills]] Page
|}
|}<!--
{{#ifeq:{{NAMESPACE}}|{{ns:10}}| |
 
-->{{#ifeq:{{NAMESPACE}}|{{ns:10}}| |
[[Category:Skills|{{PAGENAME}}]]
[[Category:Skills|{{PAGENAME}}]]
{{#set:object_type=skill}}
{{#set:object_type=skill}}
}}</includeonly
}}<!--


><noinclude>
-->{{#if:{{{ptext2|}}}{{{ptext3|}}}<!-- block call on empty input -->
{{ {{PAGENAME}}
  | {{Infobox/pagina2
|                       <!-- Basic infobox parameters. Should only be used when needed -->
    | ptext2 = {{{ptext2|}}}
| name = {{{name}}}
    | ptext3 = {{{ptext3|}}}
| image = {{{image}}}
  }}
| imagewidth = {{{imagewidth}}}
}}<!--  
| caption = {{{caption}}}
 
|                      <!-- General object/tree data -->
--></includeonly
| cost = {{{cost}}}
 
| req = {{{req}}}
><noinclude>{{documentation}}</noinclude>
}}
<br style="clear:both;" />{{documentation}}</noinclude>

Latest revision as of 16:57, 20 May 2023

Template documentation (for the template shown above, sometimes hidden or invisible)
Example result
Infobox skill.png
{{{caption}}}

"{{{ptext1}}}"

LP Cost 1234
Skill(s)
Required
Metal Working, Rope Twining, Wheelwrighting
Skill(s)
Enabled
None
Hearth Magic(s) Unlocked None
Required By (0) Nothing
Go to Skills Page

"{{{ptext2}}}"


"{{{ptext3}}}"

Description
This template is used to create a skill infobox on skill pages.


Basic syntax
Type {{infobox skill|...}} at the top of the page. Available parameters shown below.


Parameters
{{infobox skill

    General infobox parameters. Should only be used when needed or appropriate.
| name        = Infobox Title (defaults to related page-name)
| image       = File:Example.ext (defaults to "...")
| imagewidth  = 123 (To resize image if needed. Capped to a maximum of 152)
| caption     = text (Concise infobox-image caption text if needed)

    Paginae parts.
| ptext1      = In-game/paginae text - part-1. (the poem/epigram/free verse or other general info-story/verse)
| ptext2      = In-game/paginae text - part-2. (general informational text related to skill)
| ptext3      = In-game/paginae text - part-3. (additional provide info/help)

    Skill specifics.
| skillcost   = 1234
| req         = [[skillreq::Metal Working]], [[skillreq::Rope Twining]], [[skillreq::Wheelwrighting]]
}}


Properties


Categories