Editing Template:Top icon/doc (section) From DoomWiki.org Warning: You are not logged in. Your IP address will be recorded in this page's edit history. Anti-spam check. Do not fill this in! ==Usage== <pre style="overflow:auto"> {{Top icon | imagename = Image file to use as icon. | wikilink = The page to link to. This is where you will be taken when clicking the icon. | description = The tooltip will display this text when the mouse pointer hovers over the icon. | id = A unique id is required when using different top icons on the same page. }}</pre> Extra options: <pre style="overflow:auto"> | sortkey = Allows ordering the icons according to the sortkey given. | width = Uses a different width for the images. Default is 20. | height = Uses a different height for the images. Default is 20. | usercat = Adds a category to be added in userspace. | maincat = Adds a category to be added in article mainspace. | subpage = For categorization on subpages (default = no). | nocat = Disables the automatically added category (default = no). </pre> Top icons are automatically sorted for consistency in articles. For that reason, <code>|sortkey=</code> should only be used in user top icons. Sort keys are sorted alphabetically, so, for example, "19" will sort before "2". If you want to use numbers as sort keys, and you have more than 10 top icons on a page, you must add leading zeroes, e.g. <code>|sortkey=01</code>, <code>|sortkey=02</code>, etc. {{c|width}} and {{c|height}} are restrictive, meaning when one parameter is not set explicitly, the default acts as a maximum, even if the other parameter is set higher. To increase the overall size, both must be specified. ===Example=== <pre> {{Accountcreator topicon}} {{Rollback topicon}} {{Autopatrolled topicon}} </pre> Summary: All contributions to DoomWiki.org are considered to be released under the CC BY-SA 4.0 International (see Doom Wiki:Copyrights for details). By contributing, you agree to be bound by the Terms of Use. Your changes will be visible immediately. Please enter a summary of your changes above. Do not submit copyrighted images or text without permission! This includes text taken from in-game codices or logbooks, or from official instruction manuals, strategy guides, and other such books. This project is not affiliated with id Software, Raven Software, ZeniMax Media, Bethesda SoftWorks, or any other commercial software developer or publisher. Use of trademarked logos and other protected intellectual property is solely for the purpose of analysis and critical commentary on the identified products and associated fan community activity, and does not imply any endorsement by any of these organizations or their employees, past or present. Upload images to the wiki. Don't forget to categorize pages! For testing, please use a sandbox. View this template Cancel | Editing help (opens in new window)