Template:SCP

From Old School Near-Reality Wiki
Revision as of 23:42, 2 October 2022 by Jacmob (talk | contribs) (Created page with "<includeonly>{{#invoke:SCP|main}}</includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:SCP/doc. [edit] [history] [purge]
Template:SCP invokes function main in Module:SCP using Lua.

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

{{SCP|<skill>|<number>|link = (optional) yes}}

Examples

Just skill:

{{SCP|Magic}}

Magic

Skill and level:

{{SCP|Magic|50}}

Magic 50

Skill, level, and link:

{{SCP|Magic|50|link=yes}}

Magic 50 Magic

Non-skill clickpics

This template can produce a number of clickpics which are not skill icons.

Name Image Link
overall File:Stats icon.png Skills
diary File:Achievement Diaries icon.png Achievement Diary
combatachievement File:Combat achievements.png Combat Achievements
combat Combat level Combat level
combatstyle Combat styles Combat styles
favour File:Kourend Favour icon.png Kourend Favour
minigame File:Minigame icon.png Minigames
music File:Music.png Music
quest File:Quest point icon.png Quest points
time File:Watch.png Time
total File:Stats icon.png Total level

Parameters

Template parameters

ParameterDescriptionTypeStatus
Skill1

The name of the skill.

Default
Stats
Stringoptional
Level2

The skill level to display.

Numberoptional
Linklink

Filled in with 'yes' to display the skill name as a link at the end.

Stringoptional
Sortsort

Applies data-sort-value='level'| in front of the icon and text if used; Only use on the first instance in a table row.

Stringoptional