v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Hairy Dude/Template:Quality"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(copy for testing)
 
(rm "not main namespace" check)
Line 1: Line 1:
{{#ifeq:{{NAMESPACE}}|||{{#if:{{#var:quality_displayed}}|[[Category:Pages with multiple quality templates]]|{{#vardefine:quality_displayed|1}}<includeonly>{{#switch:{{NAMESPACE}}|Masterwork|DF2014|v0.34|v0.31|40d|23a|Utility={{Category|ns={{NAMESPACE}}|{{#switch:{{ucfirst:{{lc:{{{1}}}}}}}|Tattered|Fine|Superior|Exceptional|Masterwork={{ucfirst:{{lc:{{{1}}}}}}}|#default=Unknown}} Quality Articles|{{PAGENAME}}}}|#default=[[Category:Quality ranks in invalid namespaces|{{PAGENAME}}]]}}</includeonly><div style="margin-top:0.1em; right:10px" class="topicon"><span style="font-size:75%">
+
{{#if:{{#var:quality_displayed}}|[[Category:Pages with multiple quality templates]]|{{#vardefine:quality_displayed|1}}<includeonly>{{#switch:{{NAMESPACE}}|Masterwork|DF2014|v0.34|v0.31|40d|23a|Utility={{Category|ns={{NAMESPACE}}|{{#switch:{{ucfirst:{{lc:{{{1}}}}}}}|Tattered|Fine|Superior|Exceptional|Masterwork={{ucfirst:{{lc:{{{1}}}}}}}|#default=Unknown}} Quality Articles|{{PAGENAME}}}}|#default=[[Category:Quality ranks in invalid namespaces|{{PAGENAME}}]]}}</includeonly><div style="margin-top:0.1em; right:10px" class="topicon"><span style="font-size:75%">
{{#switch:{{ucfirst:{{lc:{{{1}}}}}}}|Tattered|Fine|Superior|Exceptional|Masterwork=|#default=[[DF:Quality#Unknown|<span id="unknown-quality" style="padding:.2em; border:1px solid #f00; {{border radius|2px}} background:#ffccaa;text-decoration:none; color:#ff0000">!!UNKNOWN!!</span>]] {{dot}} }} [[DF:Quality#Tattered|<span id="stub-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Tattered|padding:0.2em; border:1px solid #333; {{border radius|2px}} background:#CCCCCC;|text-decoration:none}}; color:#333333">xTATTEREDx</span>]] {{dot}} [[DF:Quality#Fine|<span id="fine-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Fine|padding:0.2em; border:1px solid #db8; {{border radius|2px}} background:#FFE0CC|text-decoration:none}}; color:#CA7A02;">+FINE+</span>]] {{dot}} [[DF:Quality#Superior|<span id="superior-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Superior|padding:0.2em; border:1px solid #b8f; {{border radius|2px}} background:#e4ccff|text-decoration:none}}; color:#8800cc;">*SUPERIOR*</span>]] {{dot}} [[DF:Quality#Exceptional|<span id="exceptional-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Exceptional|padding:0.2em; border:1px solid #9df; {{border radius|2px}} background:#cce4ff|text-decoration:none}}; color:#0088CC;">≡EXCEPTIONAL≡</span>]] {{dot}} [[DF:Quality#Masterwork|<span id="masterwork-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Masterwork|padding:0.2em; border:1px solid #bd8; {{border radius|2px}} background:#E2FDCE|text-decoration:none}}; color:#72A329;">☼MASTERWORK☼</span>]]</span></div>}}}}<noinclude>{{Documentation}}</noinclude>
+
{{#switch:{{ucfirst:{{lc:{{{1}}}}}}}|Tattered|Fine|Superior|Exceptional|Masterwork=|#default=[[DF:Quality#Unknown|<span id="unknown-quality" style="padding:.2em; border:1px solid #f00; {{border radius|2px}} background:#ffccaa;text-decoration:none; color:#ff0000">!!UNKNOWN!!</span>]] {{dot}} }} [[DF:Quality#Tattered|<span id="stub-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Tattered|padding:0.2em; border:1px solid #333; {{border radius|2px}} background:#CCCCCC;|text-decoration:none}}; color:#333333">xTATTEREDx</span>]] {{dot}} [[DF:Quality#Fine|<span id="fine-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Fine|padding:0.2em; border:1px solid #db8; {{border radius|2px}} background:#FFE0CC|text-decoration:none}}; color:#CA7A02;">+FINE+</span>]] {{dot}} [[DF:Quality#Superior|<span id="superior-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Superior|padding:0.2em; border:1px solid #b8f; {{border radius|2px}} background:#e4ccff|text-decoration:none}}; color:#8800cc;">*SUPERIOR*</span>]] {{dot}} [[DF:Quality#Exceptional|<span id="exceptional-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Exceptional|padding:0.2em; border:1px solid #9df; {{border radius|2px}} background:#cce4ff|text-decoration:none}}; color:#0088CC;">≡EXCEPTIONAL≡</span>]] {{dot}} [[DF:Quality#Masterwork|<span id="masterwork-quality" style="{{#ifeq:{{ucfirst:{{lc:{{{1}}}}}}}|Masterwork|padding:0.2em; border:1px solid #bd8; {{border radius|2px}} background:#E2FDCE|text-decoration:none}}; color:#72A329;">☼MASTERWORK☼</span>]]</span></div>}}<noinclude>{{Documentation}}</noinclude>

Revision as of 23:54, 4 January 2023