Template:Magic for job: Difference between revisions

From HorizonXI Wiki
(label)
m (column gap)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div id="magic-for-job-label" style="text-align: center; border: #aaa solid; border-width: 1px 1px 0.5px; padding: 0.3em 0.4em; font-weight: bold; background: #afc7cf;">{{{title|Spell List for {{{1|{{PAGENAME}}}}} (Level, Name)}}}</div>
<includeonly><div id="magic-for-job-label" style="text-align: center; border: #aaa solid; border-width: 1px; padding: 0.3em 0.4em; font-weight: bold; background: #afc7cf;">{{{label|Spell List for {{{1|{{PAGENAME}}}}} (Level, Name)}}}</div>
<dl aria-labelledby="magic-for-job-label" style="margin: 0; column-width: 25ch; column-gap: 2em;">
<dl aria-labelledby="magic-for-job-label" style="margin: 0; column-width: min( 24ch, 35vw ); column-gap: min( 2em, 2vw );">
{{#cargo_query:
{{#cargo_query:
tables=MagicJobs,Magic
tables=MagicJobs,Magic
|join on=MagicJobs.Magic=Magic.Name
|join on=MagicJobs.Magic=Magic._pageName
|fields=MagicJobs.Level=level,MagicJobs.Magic=magic,Magic.HorizonChanges=changes
|fields=MagicJobs.Level=level,Magic._pageName=page,Magic.Name=name,Magic.Icon=icon,Magic.Type=type,Magic.Element=element,Magic.HorizonChanges=changes
|where=MagicJobs.Job='{{{1|{{PAGENAME}}}}}'
|where=MagicJobs.Job='{{{1|{{PAGENAME}}}}}'
|sort by=MagicJobs.Level,Magic.Name
|sort by=MagicJobs.Level,Magic.Name

Latest revision as of 08:56, 15 October 2025

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Displays a list of magic learned by a job, and the level each becomes usable.

Usage

Basic

{{Magic for job}}

(displays using current page title for job)

Specified job

{{Magic for job|White Mage}}
Spell List for White Mage (Level, Name)
40
Haste recast reduced to 18 seconds
50
Holy increased damage

Custom label

{{Magic for job|Bard|label=Song List for Bard (Level, Name)}}
Song List for Bard (Level, Name)

Data source

The data displayed by this template is set by {{Infobox Magic}} templates on individual magic pages. To add, remove, or change data, edit the infoboxes.