Editing User:Optimatum/Sandbox/Template:Quality

From Fallen London Wiki (Staging)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 +
{{Noembed|{{#set:Has Game Type=Quality}}}}<!--
 +
Link Guide & apply restriction banners when appropriate (checked from Guide page):
 +
-->{{SMWBanners}}<!--
 +
Set icon:
 +
-->{{#if:{{{Icon|}}}|[[Has icon::File:{{{Icon}}}{{!}}right]]|[[Category:Qualities without Icon parameter]]}}<!--
 +
Set some local variables:
 +
-->{{#vardefine:quality|{{#titleparts:{{PAGENAME}}}}}}<!--
 +
--><!--
 +
-->{{#vardefineecho:desc|{{{Description|}}}}}<!--
 +
-->{{#if: {{{Available At|}}} |<p><i>{{{Available At}}}</i></p>|<br><br>}}<!--
 +
-->{{#if: {{{Description|}}} | {{#seo:|description={{#var:desc}}}} }}<!--
 +
-->{{#if: {{{Game Instructions|}}} | <p><b><i>Game Instructions: {{{Game Instructions}}}</i></b></p> }}<!--
 +
##############
  
 +
Display access information (Fate, Legacy, etc)
 +
 +
##############
 +
-->
 +
{{#if:{{{Access|{{{Fate|}}}}}}
 +
  |'''{{#switch:{{{Access|Fate}}}
 +
    |Fate = This quality is only available by spending {{FontFate}}.
 +
    |Legacy = This quality is currently only available by spending {{FontFate}}, but could be obtained for free in the past.[[Category:Fate]]
 +
    |Festival = This quality is only available during certain times of the year.
 +
    |Code = This quality can only be obtained from an Access Code.
 +
    |Developer = This quality has only ever been shown off by a Developer, and has never been obtainable in-game.
 +
    |Failbetter Games = This quality is only ever handed out by Failbetter Games, and has never been obtainable in-game.
 +
    |Location = This quality only exists in a specific location and cannot be possessed or used anywhere else.
 +
    |Retired = This quality can no longer be obtained.<!--
 +
    -->{{#ifeq: {{#var:defsort}}|no||{{DEFAULTSORT:~|noerror}}}}<!--
 +
    -->{{#if:{{#var:embedcontext}}||{{#set:Is retired=yes}}}}<!--
 +
    -->[[Category:Retired|{{#titleparts:{{PAGENAME}}}}]][[Category:Retired Qualities|{{#titleparts:{{PAGENAME}}}}]]
 +
  }}''' {{#if:{{{Access info|}}}|For details, see [[{{{Access info}}}]].{{#if:{{{Origin|}}}|<br>It was originally introduced during [[{{{Origin}}}|{{#explode:{{{Origin}}}|#}}]].}}}}
 +
<nowiki />|}}
 +
 +
<!--
 +
-->{{#if: {{{Wiki Note|}}} | <p><br><span>{{Wiki Note|{{{Wiki Note}}}}}</span></p> }}<!--
 +
-->{{SetSMW/ID|ID={{{ID|}}}|else=[[Category:Qualities with Unknown ID]]}}
 +
<!--
 +
##############
 +
 +
Sources and uses
 +
 +
##############
 +
-->
 +
{{#ifeq: {{{Raise|yes}}}|yes|
 +
*Click here for '''{{Property category
 +
    |Object = {{#var:quality}}
 +
    |Property = Gains
 +
    |Description = Actions that raise
 +
    |Header = {{#if:{{{Icon|}}}|[[File:{{{Icon}}}|right]]}}Actions which raise '''[[{{#var:quality}}]]'''}}''' this quality
 +
}}
 +
{{#ifeq: {{{Lower|yes}}}|yes|
 +
*Click here for '''{{Property category
 +
    |Object = {{#var:quality}}
 +
    |Property = Loses
 +
    |Description = Actions that lower
 +
    |Header = {{#if:{{{Icon|}}}|[[File:{{{Icon}}}|right]]}}Actions which lower '''[[{{#var:quality}}]]'''}}''' this quality
 +
}}
 +
<br>
 +
{{Property listing
 +
    |Object = {{#var:quality}}
 +
    |Property = Use
 +
    |Record = Uses
 +
    |Extra = Use type
 +
    |Description = all pages which use or require this quality
 +
    |Header = {{#if:{{{Icon|}}}|[[File:{{{Icon}}}|right]]}}This page contains all '''uses''' of '''[[{{#var:quality}}]]''':
 +
* Cards and storylets that unlock if you have it (or a specific level or range of it)
 +
* Actions requiring it (or a specific level or range of it)
 +
* Game text that varies when you have it (or a specific level or range of it)
 +
* Numerical values (such as difficulty level or reward amounts) which vary based on your level of it
 +
|When empty = This quality has no recorded '''uses'''.}}
 +
{{Property listing
 +
    |Object = {{#var:quality}}
 +
    |Property = Against
 +
    |Record = Has challenge
 +
    |Extra = Difficulty
 +
    |Description = pages which have a challenge based on this quality
 +
    |Header = {{#if:{{{Icon|}}}|[[File:{{{Icon}}}|right]]}}This page lists all challenges against '''[[{{#var:quality}}]]''', and their default challenge level (if known).}}
 +
{{#ifexpr:{{#ask:[[Has effect::{{#var:quality}}]]|format=count}}>0|{{#ifexist:{{#var:quality}} Items|See [[{{#var:quality}} Items]] for items that modify this quality.<br/>}}}}<!--
 +
-->{{#ifeq:{{{Attribute}}}|yes|{{#ifexpr:{{#ask:[[Has effect::{{#var:quality}};<0]]|format=count}}>0|See [[Stat-reducing items#{{#var:quality}}|{{#var:quality}}-reducing Items]] for items that reduce this quality.<br/><br/>}}}}<!--
 +
-->{{#ifeq:{{{Attribute}}}|yes|<!--
 +
-->{{#if:{{{Cap Raise|}}}|The cap on this quality is raised by [[{{Noembed|Has cap raise::}}{{{Cap Raise}}}]].|}}<!--
 +
-->[[Category:Attributes]]|}}
 +
{{#if:{{{Has cap|}}}|It is impossible to raise this quality beyond the '''cap [[{{Noembed|Has cap::}}{{{Has cap}}}]]''' under any circumstance. Excess from actions raising the quality is wasted after hitting the cap!}}
 +
{{#if: {{{Unlocked with|<noinclude>test</noinclude>}}}|
 +
== Unlocked with ==
 +
*[[{{{Unlocked with}}}]]<!--
 +
-->}}<!--
 +
--><includeonly>{{#ifeq:{{{Quality type}}}|World Qualities|[[Category:World Qualities using Quality Template]]|}}<!--
 +
-->{{#switch: {{NAMESPACE}}|Category|=[[Category:{{{Quality type|Qualities with Unknown Type}}}]]<!--
 +
  -->{{#ifeq:{{{Discrete|}}}|yes|<!--
 +
    -->{{Noembed|[[Category:Discrete Qualities]]{{#set:Increase Type=Discrete}}}}|<!--
 +
    -->{{Noembed|[[Category:Pyramidal Qualities]]{{#set:Increase Type=Pyramidal}}}}<!--
 +
  -->}}|<!--
 +
-->}}{{#ifeq: {{PAGESINCAT:{{#var:quality}} Sources}}|0||[[Category:Qualities with both Gain and Source Categories]]}}<!--
 +
--></includeonly><!--
 +
end of template, check for errors
 +
-->{{#invoke:check for unknown parameters|check
 +
|unknown=[[Category:Template:Quality using unknown parameters|_VALUE_]]
 +
|preview=<span class="error">_VALUE_ is not an recognized parameter. Check [[Template:Quality]] for all recognized parameters</span>
 +
|Icon|Description|Description|Available At|Quality type|Game Instructions|Wiki Note|Discrete|Unlocked with|Raise|Attribute|Cap Raise|Lower|ID|Has cap|Access|Access info|Origin}}<!--
 +
set categories/documentation
 +
--><noinclude>[[Category:Quality-like templates|*]]{{Documentation}}</noinclude>

Please note that all contributions to Fallen London Wiki (Staging) are considered to be released under the Creative Commons Attribution-ShareAlike (see Fallen London Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)