User:Lavaeolus: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
This is a test version of [[Template:CharacterInfo]] where you enter the passives like this: <code>
|passive1 = Attack of Opportunity
|passive2 = Darkvision
|passive3 = Something Else</code>
It then automatically finds an icon and page. If it detects that a page like [[Darkvision (Passive Feature)]] exists, it will automatically link to that instead. It only goes up to ''passive5''.
You can override its default assumptions with ''passive1img'' and ''passive1link'', etc. For instance: <code>|passive1img=Attack Of Opportunity Icon.png</code> will cause it to load that file. Alternatively, <code>|passive1img=none</code> will firmly tell it no icon image exists, don't bother to look for one; it's a way of dealing with false positives.
If it sees ''passive'' is in use, it'll use the current template format instead. Theoretically this means it wouldn't break every existing page if used. Theoretically.
{{User:Lavaeolus/Sandbox
{{User:Lavaeolus/Sandbox
|title = Eternal Protector of the Forge
|title = Eternal Protector of the Forge
Line 24: Line 35:
|passive5=Intense Adamantine Backlash
|passive5=Intense Adamantine Backlash
}}
}}
This is a test version of [[Template:CharacterInfo]] where you enter the passives like this: <code>
|passive1 = Attack of Opportunity
|passive2 = Darkvision
|passive3 = Something Else</code>
It then automatically finds an icon and page. If it detects that a page like [[Darkvision (Passive Feature)]] exists, it will automatically link to that instead. It only goes up to ''passive5''.
You can override its default assumptions with ''passive1img'' and ''passive1link'', etc. For instance: <code>|passive1img=Attack Of Opportunity Icon.png</code> will cause it to load that file. Alternatively, <code>|passive1img=none</code> will firmly tell it no icon image exists, don't bother to look for one; it's a way of dealing with false positives.
If it sees ''passive'' is in use, it'll use the current template format instead. Theoretically this means it wouldn't break every existing page if used. Theoretically.