Template:Condition sources: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
mNo edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#cargo_query:
<includeonly><div><!-- Without this div, the output may contain an extraneous <p><br/></p> at the start. -->
tables = condition_sources
{{#cargo_query: tables = condition_sources
|fields = _pageName=name, template
| fields = _pageName = name, template
|where = condition_inflicted='{{#replace: {{{1}}} | ' | '' }}'
| where = condition_inflicted="{{trim | {{{1}}} }}"
|order by = template, name
| order by = template, name
|format=template
| format = template
|template=Template:Condition sources/format
| template = Condition sources/format
|named args = yes
| named args = yes
|delimiter=\n
| delimiter = \n
|intro=<ul>
| intro = <ul>
|outro=</ul>
| outro = </ul>
}}</includeonly><noinclude>
}}
Builds a list of things that inflict the specified condition, formatting them appropriately. The formatting is handled in [[Template:Condition_sources/format]].
</div></includeonly><noinclude>
Builds a list of things that inflict the specified condition, formatting them appropriately. The formatting is handled in [[Template:Condition sources/format]].


Example: <code><nowiki>{{Condition sources|Disguise Self}}</nowiki></code>
{{Template demo
 
| style = table
Result:
| <nowiki>{{Condition sources|Blinded}}</nowiki>
 
| <nowiki>{{Condition sources|Rage}}</nowiki>
{{Condition sources|Disguise Self}}
| <nowiki>{{Condition sources|Non-existent Condition Herpy Derp}}</nowiki>
}}


[[Category:Templates]]
[[Category:Condition templates]]
[[Category:Condition templates]]
[[Category:Cargo templates]]
</noinclude>
</noinclude>

Latest revision as of 22:11, 10 February 2025