Template:Character Label/doc: Difference between revisions

Template page
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
==Arguments==
<pre>
1st arg = Game Code
2nd arg = Character Name
3rd arg = icon size (optional)
"Label" = text override (optional)
"LinkOverride" = link override (optional)
</pre>
==Usage==
==Usage==
* Icon default size is 24px.
* Icon default size is 24px.
Line 5: Line 14:
     <nowiki>{{character Label|GGACR|Venom|120px}}</nowiki>
     <nowiki>{{character Label|GGACR|Venom|120px}}</nowiki>


Does not work within section headers
* Does not work within section headers.
     <nowiki>===={{character Label|GGACR|Venom}}====</nowiki>
     <nowiki>===={{character Label|GGACR|Venom}}====</nowiki>
=== <nowiki>{{character Label|GGACR|Venom|120px|OverrideIconToUse|OverrideNameToShow}}</nowiki> ===
=== <nowiki>{{character Label|GGACR|Venom|120px|OverrideIconToUse|OverrideNameToShow|OverrideLink}}</nowiki> ===
 
* Can also be used with CLabel shorthand.
    <nowiki>{{CLabel|GGACR|Ky Kiske}}</nowiki>


==Example==
==Example==
'''Fighting''' {{character Label|GGXRD-R2|Ky Kiske|32px}}
{{character Label|GGACR|Venom}} Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
 
{{character Label|GGST|Goldlewis Dickinson}} Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br>
{{character Label|GGACR|Testament}} Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.<br>
;Example with no size value
{{character Label|GGST|Happy Chaos}} Donec efficitur ante ac dolor convallis volutpat.<br>
===Example without size value===
{{character Label|GGACR|Venom}}
{{character Label|GGACR|Venom}}
;Example with size value
===Example with size value===
{{character Label|GGACR|Ky Kiske|72px}}
{{character Label|GGACR|Ky Kiske|72px}}
;Example with size and image override values
===Example with size, and name override values===
{{character Label|GGACR|Ky Kiske|72px|GGACR_Sol_Badguy_Icon.png}}
:This links to Ky's page
{{clear}}
{{character Label|GGACR|Ky Kiske|72px|label=JOHNNY ARCSYS}}
===Example with rectangular size===
====default size====
{{character Label|GGST|Nagoriyuki}}
====larger size====
{{character Label|GGST|Nagoriyuki|72px}}
{{doc/end}}
{{doc/end}}
<noinclude>
<noinclude>
[[Category:Documentation templates]]
[[Category:Documentation templates]]
</noinclude>
</noinclude>

Revision as of 14:50, 25 June 2022

Arguments

 1st arg = Game Code
 2nd arg = Character Name
 3rd arg = icon size (optional)
 "Label" = text override (optional)
 "LinkOverride" = link override (optional)

Usage

  • Icon default size is 24px.
   {{character Label|GGACR|Slayer}}
   {{character Label|GGACR|Venom|120px}}
  • Does not work within section headers.
   ===={{character Label|GGACR|Venom}}====

{{character Label|GGACR|Venom|120px|OverrideIconToUse|OverrideNameToShow|OverrideLink}}

  • Can also be used with CLabel shorthand.
   {{CLabel|GGACR|Ky Kiske}}

Example

 Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
 Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
 Happy Chaos Donec efficitur ante ac dolor convallis volutpat.

Example without size value

 Venom

Example with size value

 Ky Kiske

Example with size, and name override values

This links to Ky's page

 JOHNNY ARCSYS

Example with rectangular size

default size

 Nagoriyuki

larger size

 Nagoriyuki

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.