Template:Condition inline: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Manual revert
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Condition|{{{1}}}|inline=t|altname={{{2|}}} |w={{{w|}}}}}</includeonly><noinclude>{{documentation|content={{shortcut|cond}}
<includeonly>{{#cargo_query: tables = conditions
| fields = _pageName=page, name, icon, CONCAT('true') = inline, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{{w|25}}}') = w
| where = _pageName = "{{#replace:{{{1}}}|&#39;|\'}} (Condition)"
| format = template
| template = Condition/Format
| named args = yes
| limit = 1
| order by = _ID
| more results text=
| default = [[{{{1}}} (Condition)|{{{2|{{{1}}}}}}]]{{Main namespace only|[[Category:Pages with unknown conditions]]}}
}}</includeonly><noinclude>{{documentation|content={{shortcut|cond}}
Similar to [[Template:Condition]], but exclusively supports inline usage.
Similar to [[Template:Condition]], but exclusively supports inline usage.


Line 11: Line 21:


Result: {{Cond|Radiating Orb|Glowing}}
Result: {{Cond|Radiating Orb|Glowing}}
Specifying 'w' changes the width of the icon
Example: <code><nowiki>{{Cond|Radiating Orb|w=40}}</nowiki></code>
Result: {{Cond|Radiating Orb|w=40}}


[[Category:Condition templates]]
[[Category:Condition templates]]

Revision as of 18:36, 15 May 2024

Template documentation
Shortcut

Similar to Template:Condition, but exclusively supports inline usage.

Example: {{Cond|Radiating Orb}}

Result: Radiating Orb Radiating Orb

If provided, the second parameter changes the display name of the condition.

Example: {{Cond|Radiating Orb|Glowing}}

Result: Glowing Glowing

Specifying 'w' changes the width of the icon

Example: {{Cond|Radiating Orb|w=40}}

Result: Radiating Orb Radiating Orb

See also

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
condition name1

no description

Stringrequired
altname2

Alternative display name

Stringoptional