Template:Area full: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#cargo_query: tables = areas | <includeonly><onlyinclude>{{#cargo_query: tables = areas | ||
| fields = _pageName=page, name, icon, description, type, dippable, condition_name = condition, condition_save, condition_dc, condition2_name = condition2, condition2_save, condition2_dc, CONCAT('{{{inline|}}}') = inline, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{ | | fields = _pageName=page, name, icon, description, type, dippable, condition_name = condition, condition_save, condition_dc, condition2_name = condition2, condition2_save, condition2_dc, CONCAT('{{{inline|}}}') = inline, CONCAT('{{{duration|}}}') = duration, CONCAT('{{{shape|Radius}}}') = shape, CONCAT('{{{range m|}}}') = range m, CONCAT('{{{range ft|}}}') = range ft, CONCAT('{{#if:{{{w|}}}|{{{w}}}|25}}') = w, | ||
| where = _pageName = "{{#replace:{{{1}}}|'|\'}}" | | where = _pageName = "{{#replace:{{{1}}}|'|\'}}" | ||
| format = template | | format = template | ||
Line 8: | Line 8: | ||
| order by = _ID | | order by = _ID | ||
| more results text= | | more results text= | ||
| default = [[{{{1}}}]] | | default = [[{{{1}}}]][[Category:Pages with unknown areas]] | ||
}}</onlyinclude></includeonly><noinclude>{{documentation|content= | }}</onlyinclude></includeonly><noinclude>{{documentation|content= | ||
Use this to display an area. Examples follow. | Use this to display an area. Examples follow. | ||
Line 27: | Line 27: | ||
Usage: | Usage: | ||
<pre>{{Area|Pacifying Spores (cloud)|duration=10| | <pre>{{Area|Pacifying Spores (cloud)|duration=10|shape=Radius|range m=9|range ft=30}}</pre> | ||
Result: | Result: | ||
---- | ---- | ||
{{Area|Pacifying Spores (cloud)|duration=10| | {{Area|Pacifying Spores (cloud)|duration=10|shape=Radius|range m=9|range ft=30}} | ||
---- | ---- | ||
Revision as of 23:37, 4 May 2024
Template documentation
Use this to display an area. Examples follow.
This template just runs the Cargo query. For the formatting, see: Template:Area/Format
Base usage
Usage:
{{Area|Hellfire}}
Result:
With duration/radius
Usage:
{{Area|Pacifying Spores (cloud)|duration=10|shape=Radius|range m=9|range ft=30}}
Result:
Inline
Usage:
{{Area|Plant Growth (surface)|inline=true}}
Result: