mediawiki-skins-Citizen/includes/templates/Logo.mustache
alistair3149 2c93c68cb2
feat: add support for different logo configurations and variants (#229)
* feat: add support for different logo configurations and variants

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-19 11:46:17 -05:00

24 lines
720 B
Plaintext

{{!
LogoDefinition logo
string html-mainpage-attributes link to the main page
string msg-sitesubtitle the contents of the sitesubtitle message key
}}
{{#data-logos}}
<a {{{html-mainpage-attributes}}} class="mw-logo">
{{! alt is provided for valid HTML but given aria-hidden not needed. }}
<img class="mw-logo-icon" src="{{!
Pick an icon based on this order: SVG > Icon > 1x
Need a better way to indent the syntax below
}}{{#svg}}{{.}}{{/svg}}{{!
}}{{^svg}}{{!
}}{{#icon}}{{.}}{{/icon}}{{!
}}{{^icon}}{{!
}}{{#1x}}{{.}}{{/1x}}{{!
}}{{/icon}}{{!
}}{{/svg}}"{{!
}}alt="" aria-hidden="true" height="50" width="50">
<span class="mw-logo-container">
{{>Wordmark}}
</span>
</a>
{{/data-logos}}