Template:SCP: Difference between revisions

From Roat Pkz
Jump to navigation Jump to search
No edit summary
Tag: Reverted
(Replaced content with "<includeonly>{{#invoke:SCP|main}}</includeonly><noinclude>{{/doc}}</noinclude>")
Tags: Replaced Manual revert
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation}}
<includeonly>{{#invoke:SCP|main}}</includeonly><noinclude>{{/doc}}</noinclude>
The '''SCP''' template displays a clickable skill icon picture that links to the skill page. This can be also be used in other templates that display skill icons.
 
==Usage==
<pre>{{SCP|<skill>|<number>|link = (optional) yes}}</pre>
 
==Examples==
Just skill:<br/>
<pre>{{SCP|Magic}}</pre>
{{SCP|Magic}}
 
Skill and level:<br/>
<pre>{{SCP|Magic|50}}</pre>
{{SCP|Magic|50}}
 
Skill, level, and link:<br/>
<pre>{{SCP|Magic|50|link=yes}}</pre>
{{SCP|Magic|50|link=yes}}
 
==Non-skill clickpics==
This template can produce a number of clickpics which are not skill icons.
 
{| class="wikitable align-center-2"
! Name !! Image !! Link
|-
|<code>overall</code> || {{SCP|Overall}} || [[Skills]]
|-
|}
 
==Parameters==
<templatedata>
{
    "description": "",
    "params": {
        "1": {
            "label": "Skill",
            "description": "The name of the skill.",
            "default": "Stats",
            "type": "string"
        },
        "2": {
            "label": "Level",
            "description": "The skill level to display.",
            "type": "number"
        },
        "link": {
            "label": "Link",
            "description": "Filled in with 'yes' to display the skill name as a link at the end.",
            "type": "string"
        },
        "sort": {
            "label": "Sort",
            "description": "Applies data-sort-value='level'| in front of the icon and text if used; Only use on the first instance in a table row.",
            "type": "string"
        }
    }
}
</templatedata>
 
<includeonly>[[Category:Image templates|{{PAGENAME}}]]</includeonly>

Latest revision as of 11:04, 30 March 2024