Template:Infobox skill: Difference between revisions
Jump to navigation
Jump to search
(+(paginae)text support, (ditch initial non-doc infobox).) |
(Infobox: +Support for paginae-text part 2 (displayed at top of page).) |
||
Line 5: | Line 5: | ||
! colspan="2" | {{{name|{{PAGENAME}}}}} | ! colspan="2" | {{{name|{{PAGENAME}}}}} | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
| colspan="2" style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=152 }}<p style="margin:0px;margin-top:0.5em"><i>{{{caption|{{#if:{{{text|}}}|<span style="display:inline-block;border:2px silver outset;border-radius: 8px;">"{{{text}}}"</span>}} }}}</i></p>{{#set:skill/text|{{{ | | colspan="2" style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=152 }}<p style="margin:0px;margin-top:0.5em"><i>{{{caption|{{#if:{{{text|{{{ptext1|}}}}}}|<span style="display:inline-block;border:2px silver outset;border-radius: 8px;">"{{{text|{{{ptext1}}}}}}"</span>}} }}}</i></p>{{#set:skill/ptext1|{{{text|{{{ptext1|?}}}}}}}} | ||
|- | |- | ||
! colspan="2" {{RoB_style|infoboxsection}} | | ! colspan="2" {{RoB_style|infoboxsection}} | | ||
Line 33: | Line 33: | ||
[[Category:Skills|{{PAGENAME}}]] | [[Category:Skills|{{PAGENAME}}]] | ||
{{#set:object_type=skill}} | {{#set:object_type=skill}} | ||
}}</includeonly | }}{{#if:{{{ptext2|}}}| | ||
<div style="display:flex;border:2px silver outset;border-radius: 8px;"><span style="text-align: center;font-style: italic;">"{{{ptext2|}}}" | |||
</span></div>}}{{#set:skill/ptext2|{{{ptext2|}}}}}</includeonly | |||
><noinclude>{{documentation}}</noinclude> | ><noinclude>{{documentation}}</noinclude> |
Revision as of 09:19, 23 October 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Example result | |
---|---|
{{{caption}}} Property "Skill/ptext1" (as page type) with input value "{{{ptext1}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. | |
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}}}"
Property "Skill/ptext2" (as page type) with input value "{{{ptext2}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
- 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
- skillcost -> lpcost (nr)
- (auto) -> object_type as "skill" (text)
- at-page:
- req -> skillreq (page)
- Categories
- (auto) -> Skills
Visit Template:Infobox skill/doc to edit this text! (How does this work?)