Template:MasterOverlay/doc: Difference between revisions

From Elwiki
 
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
*<nowiki>{{MasterOverlay|file|</nowiki>'''master'''<nowiki>}}</nowiki> - Master name that the class belongs to
*<nowiki>{{MasterOverlay|file|</nowiki>'''master'''<nowiki>}}</nowiki> - Master name that the class belongs to
*'''link''' - if '''1''', creates link to the character's Master Class section; otherwise creates a custom local link
*'''link''' - if '''1''', creates link to the character's Master Class section; otherwise creates a custom local link
*'''name''' - optional name for the icon
*'''suffix''' - you can pass additional text for the icon URL if it's different than class name alone (Lu/Ciel case)
*'''suffix''' - you can pass additional text for the icon URL if it's different than class name alone (Lu/Ciel case)
**''If you don't do it via this parameter, the link will break.''


=== Examples ===
=== Examples ===
Line 28: Line 30:
  <nowiki>{{MasterOverlay|Innocent|Rosso|suffix=Ishtar}}</nowiki>
  <nowiki>{{MasterOverlay|Innocent|Rosso|suffix=Ishtar}}</nowiki>
result: {{MasterOverlay|Innocent|Rosso|suffix=Ishtar}}
result: {{MasterOverlay|Innocent|Rosso|suffix=Ishtar}}
<nowiki>{{MasterOverlay|Catastrophe|Rosso|suffix=Timoria|link=Catastrophe/zh-hans#领导者转职|name=灾厄魔君(领导者)}}</nowiki>
result: {{MasterOverlay|Catastrophe|Rosso|suffix=Timoria|link=Catastrophe/zh-hans#领导者转职|name=灾厄魔君(领导者)}}

Latest revision as of 17:16, 24 August 2022

What is it used for?

This is an overlay template for Master Class icons.

How to use

Code

{{MasterOverlay|file|master|suffix=text|link=1}}

Parameters

  • {{MasterOverlay|file}} - class name or "Dunno" if there is no icon
  • {{MasterOverlay|file|master}} - Master name that the class belongs to
  • link - if 1, creates link to the character's Master Class section; otherwise creates a custom local link
  • name - optional name for the icon
  • suffix - you can pass additional text for the icon URL if it's different than class name alone (Lu/Ciel case)
    • If you don't do it via this parameter, the link will break.

Examples

{{MasterOverlay|Surya|Gaia}}

result:


{{MasterOverlay|Surya|Gaia|link=1}}

result:

Surya (Master Class)


{{MasterOverlay|Dunno|Ventus}}

result:


{{MasterOverlay|Innocent|Rosso|suffix=Ishtar}}

result:


{{MasterOverlay|Catastrophe|Rosso|suffix=Timoria|link=Catastrophe/zh-hans#领导者转职|name=灾厄魔君(领导者)}}

result:

灾厄魔君(领导者)