Template:Effect Navbox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "{{Navbox | name = Effect Navbox | title = List of Effects | listclass = hlist | state = {{{state|collapsed}}} | titlestyle = background:rgba(6,28,23,0.9); fon...")
 
m (add Effects page link)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Navbox
{{Navbox
| name      = Effect Navbox
| name      = Effect Navbox
| title      = List of Effects
| title      = List of [[Effects]]
| listclass  = hlist
| listclass  = hlist
| state      = {{{state|collapsed}}}
| state      = {{{state|collapsed}}}
| titlestyle = background:rgba(6,28,23,0.9); font-family:Source Code Pro;
| titlestyle = background:rgba(6,28,23,0.9); font-family:Source Code Pro;
| groupstyle = background:rgba(6,28,23,0.8); font-family:Source Code Pro;
| groupstyle = background:rgba(6,28,23,0.8); font-family:Source Code Pro;
| navbar    = plain
| innerstyle = font-family:Source Code Pro;
| innerstyle = font-family:Source Code Pro;


| list1      =<span style="display:inline-block">{{#cargo_query:tables=Effects|fields=CONCAT('[[',_pageName,'|',PlainName,']]')|where=_pageNamespace='0'
| list1      =<span style="display:inline-block">{{#cargo_query:tables=Effects|fields=CONCAT('[[',_pageName,'|',PlainName,']]')
|where=_pageNamespace='0' AND DontIndex=0
| order by = PlainName
|format=list|delimiter=&nbsp;-&nbsp;</span><span style="display:inline-block">}}</span>
|format=list|delimiter=&nbsp;-&nbsp;</span><span style="display:inline-block">}}</span>
}}
}}<noinclude>[[Category:Navigation]]</noinclude>
{{#vardefine:search|vibro dagger}}
{{favilink|{{#var:search}}}}{{#ifeq:{{#cargo_query:tables=ItemsTable,GeneralData|join on =ItemsTable._pageName=GeneralData._pageName|fields=CONCAT(Vibro)|where=GeneralData.PlainName='{{#var:search}}' AND Damage <> ''|default=0|no html}}|1|{{#vardefine:pv|≈}}|{{#vardefine:pv|4}}}}
{{#cargo_query:tables=ItemsTable,GeneralData|join on =ItemsTable._pageName=GeneralData._pageName|fields=CONCAT('{{heart}}',Damage,' {{#replace:{{PV}}|'|''}}','{{#var:pv}}','{{qud text|&K/',MaxPV,'|notxml}}')=A|where=GeneralData.PlainName='{{#var:search}}' AND Damage <> ''|default=}}<noinclude>[[Category:Navigation]]</noinclude>

Latest revision as of 06:02, 1 June 2023