User:Llamageddon/RrtyIcon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
{{#vardefine: spna | <span style="display: inline-block; vertical-align: middle; width: 25px; height: 25px; overflow: hidden;">}}
{{#vardefine: spna | <span style="display: inline-block; vertical-align: middle; width: 25px; height: 25px; overflow: hidden;">}}
}}<span class="bg3wiki-div-border bg3wiki-icon-colour-{{#var:void}}">&nbsp;{{#var:spna}}[[File:{{#var:exlk}} Icon.png|25px]]</span></span>&nbsp;[[{{#var:text}}]]</includeonly><noinclude>
}}<span class="bg3wiki-div-border bg3wiki-icon-colour-{{#var:void}}">&nbsp;{{#var:spna}}[[File:{{#var:exlk}} Icon.png|25px]]</span></span>&nbsp;[[{{#var:text}}]]</includeonly><noinclude>
== Header ==
== Examples ==
<nowiki>{{Icon|{{#var:exlk}} Icon.png}}</nowiki>
<nowiki>{{Icon|{{#var:exlk}} Icon.png}}</nowiki>


Line 51: Line 51:
{{User:Llamageddon/RrtyIcon|{{blank}}|{{blank}}|{{blank}}}}
{{User:Llamageddon/RrtyIcon|{{blank}}|{{blank}}|{{blank}}}}


== CSS Code Snippet ==
<code>
/* Imitating in-game rarity icon borders */
body.theme-dark-grey .bg3wiki-div-border {
background: #1B1A19;
box-shadow:
rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset,
rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset;
border: 2px solid #1B1A1999;
padding: 4px 0px 6px 0px;
    max-width: 25px;
}
body.theme-dark-grey .bg3wiki-icon-colour-common {
border: 2px solid #1B1A1999;
    max-width: 25px;
}
body.theme-dark-grey .bg3wiki-icon-colour-uncommon {
border: 2px solid #00491599;
    max-width: 25px;
}
body.theme-dark-grey .bg3wiki-icon-colour-rare {
border: 2px solid #00374999;
    max-width: 25px;
}
body.theme-dark-grey .bg3wiki-icon-colour-very_rare {
border: 2px solid #54003299;
    max-width: 25px;
}
body.theme-dark-grey .bg3wiki-icon-colour-legendary {
border: 2px solid #563E0D99;
    max-width: 25px;
}
body.theme-dark-grey .bg3wiki-icon-colour-story {
border: 2px solid #561D0099;
    max-width: 25px;
}
</noinclude>
</noinclude>

Revision as of 08:45, 5 September 2023

Examples

{{Icon|{{#var:exlk}} Icon.png}}

File:Icon.png


{{User:Llamageddon/RrtyIcon|Club|Mace|uncommon}}

 Club Icon.png Mace


{{User:Llamageddon/RrtyIcon|Club|{{blank}}|rare}}

 Club Icon.png [[]]


{{User:Llamageddon/RrtyIcon|Club|Mace|very rare}} {{Rarity|{{#var:void}}}} (Having trouble converting 'very rare' to 'veryrare')

 Club Icon.png Mace Rarity: Very Rare


{{User:Llamageddon/RrtyIcon|Club|rare}}

 Club Icon.png rare


{{User:Llamageddon/RrtyIcon|Wrong|Mace|legendary}}

 File:Wrong Icon.png Mace


{{User:Llamageddon/RrtyIcon|Club|Mace|wrong}}

 Club Icon.png Mace


{{User:Llamageddon/RrtyIcon|||}}

 File:Icon.png [[]]


{{User:Llamageddon/RrtyIcon|{{blank}}|{{blank}}|{{blank}}}}

 [[File: Icon.png|25px]] [[]]

CSS Code Snippet

/* Imitating in-game rarity icon borders */

body.theme-dark-grey .bg3wiki-div-border { background: #1B1A19; box-shadow: rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset, rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset; border: 2px solid #1B1A1999; padding: 4px 0px 6px 0px;

   max-width: 25px;

}

body.theme-dark-grey .bg3wiki-icon-colour-common { border: 2px solid #1B1A1999;

   max-width: 25px;

}

body.theme-dark-grey .bg3wiki-icon-colour-uncommon { border: 2px solid #00491599;

   max-width: 25px;

}

body.theme-dark-grey .bg3wiki-icon-colour-rare { border: 2px solid #00374999;

   max-width: 25px;

}

body.theme-dark-grey .bg3wiki-icon-colour-very_rare { border: 2px solid #54003299;

   max-width: 25px;

}

body.theme-dark-grey .bg3wiki-icon-colour-legendary { border: 2px solid #563E0D99;

   max-width: 25px;

}

body.theme-dark-grey .bg3wiki-icon-colour-story { border: 2px solid #561D0099;

   max-width: 25px;

}