Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Template:Topicon: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>H64
No edit summary
imported>TabbyGarf
1 revision imported
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="display:none; right:{{#expr: {{{number|{{{icon_nr|0}}}}}}*(2+{{{width|15}}})+10+{{{offset|{{{extra_offset|0}}}}}} }}px; {{{style|}}}" class="metadata topicon nopopups {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}}>[[File:{{{image|{{{imagename}}}}}}|{{{width|15}}}px|{{#if:{{{link|}}}{{{wikilink|}}}|link={{{link|{{{wikilink|}}}}}}}}|{{{text|{{{description}}}}}}]]</div>
<div style="display:none; right:{{#expr: {{{number|{{{icon_nr|0}}}}}}*(2+{{{width|15}}})+10+{{{offset|{{{extra_offset|0}}}}}} }}px; {{{style|}}}" class="metadata topicon nopopups {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}}>[[File:{{{image|{{{imagename}}}}}}|{{{width|15}}}px|{{#if:{{{link|}}}{{{wikilink|}}}|link={{{link|{{{wikilink|}}}}}}}}|{{{text|{{{description}}}}}}]]</div><noinclude>
<noinclude>
 
== Parameters ==
== Parameters ==
* imagename - Name of image. Don't include File: part
* imagename - Name of image. Don't include File: part
Line 17: Line 17:
== Notes ==
== Notes ==
* Top icons ONLY work in Vector and Monobook
* Top icons ONLY work in Vector and Monobook
[[Category:Decorative Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Decorative Templates|{{PAGENAME}}]]
[[Category:Templates/rarely used|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:43, 25 March 2021

Parameters

  • imagename - Name of image. Don't include File: part
  • icon_nr - Icon number. Required if using multiple
  • width - Width of image. All top icons should be same width (don't add px)
  • extra_offset - Extra width (dont add px)
  • style - Additional css (Probably shouldn't use)
  • description - Self explanatory
  • class - Probably shouldn't use this
  • link - Link to a page. May default to whatever page this is used on

Examples

{{topicon|imagename=Example.jpg}} Produces (in the right corner obviously)

{{topicon|imagename=Exmaple.jpg}}{{topicon|imagename=Exmaple.jpg|icon_nr=1}} Produces (in the right corner obviously)

Notes

  • Top icons ONLY work in Vector and Monobook