Template:Condition sources/format: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Create)
 
mNo edit summary
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><li>{{#switch:{{{format|}}}
<includeonly><li>{{#if: {{{parent name|}}} | {{#switch:{{{parent template|}}}
| item = {{MdRarityItem|{{{name}}} }}
| item = {{MdRarityItem | {{{parent name}}} }}
| sai = {{SAI|{{{name}}}|w=30}}
| sai = {{SAI | {{{parent name}}} | w = 30 }}
| area = {{Area | {{{parent name}}} | w = 30 }}
| cond = {{Cond | {{#replace: {{{parent name}}} | <nowiki> </nowiki>(Condition) }} }}
| weapon action = {{SAI | {{{parent name}}} | w = 30 }}
| pass = {{Pass | {{{parent name}}} | w = 30 }}
| char = {{MdCharLink | {{#replace: {{{parent_name}}} | /Combat}}}}
| #default = [[{{{parent name}}}]]
}} →<nowiki> </nowiki> }}{{#switch: {{{template|}}}
| item = {{MdRarityItem | {{{name}}} }}
| sai = {{SAI | {{{name}}} | w = 30 }}
| area = {{Area | {{{name}}} | w = 30 }}
| cond = {{Cond | {{#replace: {{{name}}} | <nowiki> </nowiki>(Condition) }} }}
| weapon action = {{ SAI | {{{name}}} | w = 30 }}
| pass = {{Pass | {{{name}}} | w = 30 }}
| char = {{MdCharLink | {{#replace: {{{name}}} | /Combat}}}}
| #default = [[{{{name}}}]]
}}</li></includeonly><noinclude>
}}</li></includeonly><noinclude>
Handles formatting condition sources.
Handles formatting condition sources.
Line 8: Line 23:
{{Condition sources/format
{{Condition sources/format
|name=Dagger
|name=Dagger
|format=item
|template=item
}}
}}
{{Condition sources/format
{{Condition sources/format
|name=See Invisibility
|name=See Invisibility
|format=sai
|template=sai
}}
{{Condition sources/format
|name=Healing Incense Aura
|template=cond
|parent name=Healing Incense Aura
|parent template=sai
}}
{{Condition sources/format
|name=Dawnburst Strike
|template=weapon action
|parent name=The Sacred Star
|parent template=item
}}
{{Condition sources/format
|name=Battle Acuity
|template=passive
|parent name=Helmet of Arcane Acuity
|parent template=item
}}
{{Condition sources/format
|name=Potion of Healing
|template=something else
}}
}}
</ul>
</ul>
</noinclude>
</noinclude>

Latest revision as of 07:38, 15 September 2024