Template:Infobox skill/doc: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "Category:Infobox templates" to "Category:templates infobox") |
(Switch property link "Skill/ptext?" to "Paginae/text?".) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{infobox skill | |||
| name = Example result | |||
| caption = {{{caption}}} | |||
| | |||
| ptext1 = {{{ptext1}}} | |||
| ptext2 = {{{ptext2}}} | |||
| ptext3 = {{{ptext3}}} | |||
| | |||
| skillcost = 1234 | |||
| req = [[skillreq::Metal Working]], [[skillreq::Rope Twining]], [[skillreq::Wheelwrighting]] | |||
}} | |||
;Description | ;Description | ||
:This template is used to create a skill infobox | :This template is used to create a skill infobox on skill pages. | ||
; | ;Basic syntax | ||
:Type <code>{{t|infobox skill|...}}</code> at the top of the page. Available parameters shown below. | |||
;Parameters<!--todo:pre vs nowiki - styling vs maintainability issue--> | |||
<pre> | |||
{{infobox skill | |||
General infobox parameters. Should only be used when needed or appropriate. | |||
| name | | name = Infobox Title (defaults to related page-name) | ||
| image | | image = File:Example.ext (defaults to "...") | ||
| caption | | imagewidth = 123 (To resize image if needed. Capped to a maximum of 152) | ||
| | | caption = text (Concise infobox-image caption text if needed) | ||
| req | |||
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]] | |||
}} | }} | ||
</pre> | |||
;Properties | |||
* [[Property:Paginae/text1|ptext1]] (text) | |||
* [[Property:Paginae/text2|ptext2]] (text) | |||
* [[Property:Paginae/text3|ptext3]] (text) | |||
* skillcost -> [[property:lpcost|lpcost]] (nr) | |||
* (auto) -> [[property:object_type|object_type]] as "skill" (text) | |||
* at-page: | |||
** req -> [[property:skillreq|skillreq]] (page) | |||
;Categories | |||
* (auto) -> [[:Category:Skills|Skills]] | |||
<includeonly>[[Category:templates | <includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Latest revision as of 09:39, 5 June 2023
Example result | |
---|---|
{{{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
- skillcost -> lpcost (nr)
- (auto) -> object_type as "skill" (text)
- at-page:
- req -> skillreq (page)
- Categories
- (auto) -> Skills