Template:Property: Difference between revisions

From HorizonXI Wiki
m (removed spaces)
(set default to display none since weapon skill templates don't fill properties if they dont have any)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch:{{{1|}}}
<includeonly><onlyinclude>{{#switch:{{lc:{{{1|}}}}}
| Crystal = [[Dark Crystal|<span class="dark-elemental-text">Dark Crystal</span>]]
| transfixion = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Light-square.gif|Light Element|link=]]&nbsp;|[[File:Transfixion-Icon.gif|Light Element|link=]]}}|}}<!--
 
-->[[Transfixion|{{#ifeq:{{{3|}}}|plain|Trans&shy;fixion|{{Color|light|Trans&shy;fixion}}}}]]
| Transfixion = [[:Category:Transfixion |<font data-darkreader-inline-color="" color="#999999">'''Transfixion'''</font>]]
| compression = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Dark-square.gif|Dark Element|link=]]&nbsp;|[[File:Compression-Icon.gif|Dark Element|link=]]}}|}}<!--
| Compression = [[:Category:Compression |<font data-darkreader-inline-color="" color="#696969">'''Compression'''</font>]]
-->[[Compression|{{#ifeq:{{{3|}}}|plain|Com&shy;pres&shy;sion|{{Color|dark|Com&shy;pres&shy;sion}}}}]]
| Liquefaction = [[:Category:Liquefaction|<font data-darkreader-inline-color="" color="red">'''Liquefaction'''</font>]]
| liquefaction ={{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Fire-square.gif|Fire Element|link=]]&nbsp;|[[File:Liquefaction-Icon.gif|Fire Element|link=]]}}|}}<!--
| Scission = [[:Category:Scission|<font data-darkreader-inline-color="" color="#cc9900">'''Scission'''</font>]]
-->[[Liquefaction|{{#ifeq:{{{3|}}}|plain|Li&shy;que&shy;fac&shy;tion|{{Color|fire|Li&shy;que&shy;fac&shy;tion}}}}]]
| Reverberation = [[:Category:Reverberation|<font data-darkreader-inline-color="" color="blue">'''Reverberation'''</font>]]
| scission = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Earth-square.gif|Earth Element|link=]]&nbsp;|[[File:Scission-Icon.gif|Earth Element|link=]]}}|}}<!--
| Detonation = [[:Category:Detonation |<font data-darkreader-inline-color="" color="green">'''Detonation'''</font>]]
-->[[Scission|{{#ifeq:{{{3|}}}|plain|Scis&shy;sion|{{Color|earth|Scis&shy;sion}}}}]]
| Induration = [[:Category:Induration |<font data-darkreader-inline-color="" color="#33CCFF">'''Induration'''</font>]]
| reverberation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Water-square.gif|Water Element|link=]]&nbsp;|[[File:Reverberation-Icon.gif|Water Element|link=]]}}|}}<!--
| Impaction = [[:Category:Impaction|<font data-darkreader-inline-color="" color="purple">'''Impaction'''</font>]]
-->[[Reverberation|{{#ifeq:{{{3|}}}|plain|Rever&shy;be&shy;ra&shy;tion|{{Color|water|Rever&shy;be&shy;ra&shy;tion}}}}]]
 
| detonation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Wind-square.gif|Wind Element|link=]]&nbsp;|[[File:Detonation-Icon.gif|Wind Element|link=]]}}|}}<!--
| Gravitation = [[:Category:Gravitation|<font data-darkreader-inline-color="" color="#333333">'''Gravi'''</font><font data-darkreader-inline-color="" color="#CCCC00">'''tation'''</font>]]
-->[[Detonation|{{#ifeq:{{{3|}}}|plain|De&shy;to&shy;na&shy;tion|{{Color|wind|De&shy;to&shy;na&shy;tion}}}}]]
| Distortion = [[:Category:Distortion|<font data-darkreader-inline-color="" color="#0000CC">'''Disto'''</font><font data-darkreader-inline-color="" color="#66FFFF">'''rtion'''</font>]]
| induration = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Ice-square.gif|Ice Element|link=]]&nbsp;|[[File:Induration-Icon.gif|Ice Element|link=]]}}|}}<!--
| Fusion = [[:Category:Fusion|<font data-darkreader-inline-color="" color="#999999">'''Fus'''</font><font data-darkreader-inline-color="" color="red">'''ion'''</font>]]
-->[[Induration|{{#ifeq:{{{3|}}}|plain|In&shy;du&shy;ra&shy;tion|{{Color|ice|In&shy;du&shy;ra&shy;tion}}}}]]
| Fragmentation = [[:Category:Fragmentation|<font data-darkreader-inline-color="" color="#FF33FF">'''Fragme'''</font><font data-darkreader-inline-color="" color="#33CC33">'''ntation'''</font>]]
| impaction = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Lightning-square.gif|Lightning Element|link=]]&nbsp;|[[File:Impaction-Icon.gif|Lightning Element|link=]]}}|}}<!--
 
-->[[Impaction|{{#ifeq:{{{3|}}}|plain|Im&shy;pac&shy;tion|{{Color|lightning|Im&shy;pac&shy;tion}}}}]]
| gravitation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Dark-square.gif|Dark Element|link=]][[File:Earth-square.gif|Earth Element|link=]]&nbsp;|[[File:Gravitation-Icon.gif|Dark Element and Earth Element|link=]]}}|}}<!--
-->[[Gravitation|{{#ifeq:{{{3|}}}|plain|Gra&shy;vi&shy;ta&shy;tion|{{Color|dark|Gra&shy;vi&shy;}}{{Color|earth|ta&shy;tion}}}}]]
| distortion = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Water-square.gif|Water Element|link=]][[File:Ice-square.gif|Ice Element|link=]]&nbsp;|[[File:Distortion-Icon.gif|Water Element and Ice Element|link=]]}}|}}<!--
-->[[Distortion|{{#ifeq:{{{3|}}}|plain|Dis&shy;tor&shy;tion|{{Color|water|Dis&shy;to}}{{Color|ice|r&shy;tion}}}}]]
| fusion = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Light-square.gif|Light Element|link=]][[File:Fire-square.gif|Fire Element|link=]]&nbsp;|[[File:Fusion-Icon.gif|Light Element and Fire Element|link=]]}}|}}<!--
-->[[Fusion|{{#ifeq:{{{3|}}}|plain|Fu&shy;sion|{{Color|light|Fu&shy;s}}{{Color|fire|ion}}}}]]
| fragmentation = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Lightning-square.gif|Lightning Element|link=]][[File:Wind-square.gif|Wind Element|link=]]&nbsp;|[[File:Fragmentation-Icon.gif|Lightning Element and Wind Element|link=]]}}|}}<!--
-->[[Fragmentation|{{#ifeq:{{{3|}}}|plain|Frag&shy;men&shy;ta&shy;tion|{{Color|lightning|Frag&shy;me}}{{Color|wind|n&shy;ta&shy;tion}}}}]]
| light = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Light-square.gif|Light Element|link=]][[File:Fire-square.gif|Fire Element|link=]][[File:Lightning-square.gif|Lightning Element|link=]][[File:Wind-square.gif|Wind Element|link=]]&nbsp;|[[File:Light-Icon.gif|Light, Fire, Lightning and Wind Elements|link=]]}}|}}<!--
-->[[Light_(Skillchain)|{{#ifeq:{{{3|}}}|plain|Light|{{Color|light|Li}}{{Color|fire|g}}{{Color|lightning|h}}{{Color|wind|t}}}}]]
| darkness = {{#ifeq:{{lc:{{{2|}}}}}|icon|{{#ifeq:{{{3|}}}|plain|[[File:Dark-square.gif|Dark Element|link=]][[File:Earth-square.gif|Earth Element|link=]][[File:Water-square.gif|Water Element|link=]][[File:Ice-square.gif|Ice Element|link=]]&nbsp;|[[File:Dark-Icon.gif|Dark, Earth, Water and Ice Elements|link=]]}}|}}<!--
-->[[Darkness|{{#ifeq:{{{3|}}}|plain|Dark&shy;ness|{{Color|dark|Da}}{{Color|earth|rk&shy;}}{{Color|water|ne}}{{Color|ice|ss}}}}]]
<!-- old colors for level 2 and 3 deviated from level 1. also transfixion: #999999 and compression: #696969 -->
<!--
| Gravitation = [[:Category:Gravitation|<font data-darkreader-inline-color="" color="#333333">'''Gra&shy;vi&shy;'''</font><font data-darkreader-inline-color="" color="#CCCC00">'''ta&shy;tion'''</font>]]
| Distortion = [[:Category:Distortion|<font data-darkreader-inline-color="" color="#0000CC">'''Dis&shy;to'''</font><font data-darkreader-inline-color="" color="#66FFFF">'''r&shy;tion'''</font>]]
| Fusion = [[:Category:Fusion|<font data-darkreader-inline-color="" color="#999999">'''Fu&shy;s'''</font><font data-darkreader-inline-color="" color="red">'''ion'''</font>]]
| Fragmentation = [[:Category:Fragmentation|<font data-darkreader-inline-color="" color="#FF33FF">'''Frag&shy;me'''</font><font data-darkreader-inline-color="" color="#33CC33">'''n&shy;ta&shy;tion'''</font>]]
| Light = [[:Category:Light_(Skillchain)|<span class="light-elemental-text">'''Li'''</span><font data-darkreader-inline-color="" color="red">'''g'''</font><font data-darkreader-inline-color="" color="purple">'''h'''</font><font data-darkreader-inline-color="" color="green">'''t'''</font>]]
| Light = [[:Category:Light_(Skillchain)|<span class="light-elemental-text">'''Li'''</span><font data-darkreader-inline-color="" color="red">'''g'''</font><font data-darkreader-inline-color="" color="purple">'''h'''</font><font data-darkreader-inline-color="" color="green">'''t'''</font>]]
| Darkness = [[:Category:Darkness|<font data-darkreader-inline-color="" color="#008080">'''Da'''</font><font data-darkreader-inline-color="" color="blue">'''rk'''</font><font data-darkreader-inline-color="" color="#cc9900">'''ne'''</font><font data-darkreader-inline-color="" color="#696969">'''ss'''</font>]]
| Darkness = [[:Category:Darkness|<font data-darkreader-inline-color="" color="#008080">'''Da'''</font><font data-darkreader-inline-color="" color="blue">'''rk&shy;'''</font><font data-darkreader-inline-color="" color="#cc9900">'''ne'''</font><font data-darkreader-inline-color="" color="#696969">'''ss'''</font>]]
 
-->
| null =  
| null =  
| #default = '''{{{1|Property}}}'''
| #default = ''None''
}}<noinclude>[[Category:Templates|{{PAGENAME}}]]
}}</onlyinclude></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]
==Usage==
==Usage==
<pre>
<pre>
{{Property|text}}
{{Property|<skillchain>|icon|plain}}
</pre>
</pre>
*Displays {{Property|Transfixion}} if "Transfixion" is defined.
*Displays {{Property|Compression}} if "Compression" is defined.
*Displays {{Property|Liquefaction}} if "Liquefaction" is defined.
*Displays {{Property|Scission}} if "Scission" is defined.
*Displays {{Property|Reverberation}} if "Reverberation" is defined.
*Displays {{Property|Detonation}} if "Detonation" is defined.
*Displays {{Property|Induration}} if "Induration" is defined.
*Displays {{Property|Impaction}} if "Impaction" is defined.


*Displays {{Property|Gravitation}} if "Gravitation" is defined.
* '''Note:''' Parameters ''icon'' and ''plain'' are optional. Use '''without''' the second parameter to display the text without the icon in front.
*Displays {{Property|Distortion}} if "Distortion " is defined.
 
*Displays {{Property|Fusion}} if "Fusion" is defined.
===Examples with icon===
*Displays {{Property|Fragmentation}} if "Fragmentation" is defined.
*<nowiki>{{Property|Transfixion|icon}}</nowiki> results in  {{Property|Transfixion|icon}}.
*<nowiki>{{Property|Compression|icon}}</nowiki> results in  {{Property|Compression|icon}}.
*<nowiki>{{Property|Liquefaction|icon}}</nowiki> results in  {{Property|Liquefaction|icon}}.
*<nowiki>{{Property|Scission|icon}}</nowiki> results in  {{Property|Scission|icon}}.
*<nowiki>{{Property|Reverberation|icon}}</nowiki> results in  {{Property|Reverberation|icon}}.
*<nowiki>{{Property|Detonation|icon}}</nowiki> results in  {{Property|Detonation|icon}}.
*<nowiki>{{Property|Induration|icon}}</nowiki> results in  {{Property|Induration|icon}}.
*<nowiki>{{Property|Impaction|icon}}</nowiki> results in  {{Property|Impaction|icon}}.
*<nowiki>{{Property|Gravitation|icon}}</nowiki> results in  {{Property|Gravitation|icon}}.
*<nowiki>{{Property|Distortion|icon}}</nowiki> results in  {{Property|Distortion|icon}}.
*<nowiki>{{Property|Fusion|icon}}</nowiki> results in  {{Property|Fusion|icon}}.
*<nowiki>{{Property|Fragmentation|icon}}</nowiki> results in  {{Property|Fragmentation|icon}}.
*<nowiki>{{Property|Light|icon}}</nowiki> results in  {{Property|Light|icon}}.
*<nowiki>{{Property|Darkness|icon}}</nowiki> results in  {{Property|Darkness|icon}}.
 
===Examples with icon and plain===
*<nowiki>{{Property|Transfixion|icon|plain}}</nowiki> results in  {{Property|Transfixion|icon|plain}}.
*<nowiki>{{Property|Compression|icon|plain}}</nowiki> results in  {{Property|Compression|icon|plain}}.
*<nowiki>{{Property|Liquefaction|icon|plain}}</nowiki> results in  {{Property|Liquefaction|icon|plain}}.
*<nowiki>{{Property|Scission|icon|plain}}</nowiki> results in  {{Property|Scission|icon|plain}}.
*<nowiki>{{Property|Reverberation|icon|plain}}</nowiki> results in  {{Property|Reverberation|icon|plain}}.
*<nowiki>{{Property|Detonation|icon|plain}}</nowiki> results in  {{Property|Detonation|icon|plain}}.
*<nowiki>{{Property|Induration|icon|plain}}</nowiki> results in  {{Property|Induration|icon|plain}}.
*<nowiki>{{Property|Impaction|icon|plain}}</nowiki> results in  {{Property|Impaction|icon|plain}}.
*<nowiki>{{Property|Gravitation|icon|plain}}</nowiki> results in  {{Property|Gravitation|icon|plain}}.
*<nowiki>{{Property|Distortion|icon|plain}}</nowiki> results in  {{Property|Distortion|icon|plain}}.
*<nowiki>{{Property|Fusion|icon|plain}}</nowiki> results in  {{Property|Fusion|icon|plain}}.
*<nowiki>{{Property|Fragmentation|icon|plain}}</nowiki> results in  {{Property|Fragmentation|icon|plain}}.
*<nowiki>{{Property|Light|icon|plain}}</nowiki> results in  {{Property|Light|icon|plain}}.
*<nowiki>{{Property|Darkness|icon|plain}}</nowiki> results in  {{Property|Darkness|icon|plain}}.


*Displays {{Property|Light}} if "Light" is defined.
===Others===
*Displays {{Property|Darkness}} if "Darkness" is defined.
*<nowiki>{{Property|null}}</nowiki> results in  {{Property|null}}.
*Displays {{Property|null}} if "null" is defined.
*<nowiki>{{Property|<anything else>}}</nowiki> results in  {{Property|<anything else>}}.
*Displays {{Property|-}} if anything else is defined.
</noinclude>
</noinclude>

Latest revision as of 22:50, 4 December 2023

Usage

{{Property|<skillchain>|icon|plain}}
  • Note: Parameters icon and plain are optional. Use without the second parameter to display the text without the icon in front.

Examples with icon

Examples with icon and plain

Others

  • {{Property|null}} results in .
  • {{Property|<anything else>}} results in None.