Template:Infobox skill/doc: Difference between revisions

From Ring of Brodgar
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.
;Syntax
:Type <code>{{t|infobox skill|...}}</code> somewhere, with parameters as shown below.
;Default configuration


<pre>{{infobox skill
| name      = {{PAGENAME}}
| image      = Image:{{PAGENAME}}.png
| caption    = {{PAGENAME}}
| cost      =
| req        =
}}</pre>


;Sample output
;Basic syntax
:Type <code>{{t|infobox skill|...}}</code> at the top of the page. Available parameters shown below.


<pre>{{infobox skill
| name      = Flower Growing
| image      = Image:Example.jpg
| caption    = Bob the Flower
| cost      = testcost
| req        = testreq
}}</pre>


Results in...
;Parameters<!--todo:pre vs nowiki - styling vs maintainability issue-->
<pre>
{{infobox skill


{{infobox skill
    General infobox parameters. Should only be used when needed or appropriate.
| name       = Flower Growing
| name       = Infobox Title (defaults to related page-name)
| image     = Image:Example.jpg
| image       = File:Example.ext (defaults to "...")
| caption   = Bob the Flower
| imagewidth  = 123 (To resize image if needed. Capped to a maximum of 152)
| cost      = testcost
| caption     = text (Concise infobox-image caption text if needed)
| req       = testreq
 
    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 infobox|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 09:39, 5 June 2023

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