### Move Page Path Example Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Illustrates how to modify a page's path to move it to a different location within the wiki structure. Ensure correct slash separation for nested pages. ```text Modding/CoolBuff ``` ```text Modding/Buffs/CoolBuff ``` ```text CoolBuff ``` -------------------------------- ### Using the Button Template Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3AStyle_Guide Demonstrates how to use the {{Button}} template for in-game buttons or keyboard keys. ```Wiki Markup {{Button|F}} ``` ```Wiki Markup {{Button|Enter}} ``` ```Wiki Markup {{Button|Left Mouse Button}} ``` -------------------------------- ### Internal Link Syntax (Source Editor) Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Demonstrates the syntax for creating internal links in the Source Editor. Use double square brackets to wrap the page name. An optional pipe symbol allows for custom display text. ```wiki [[Ships]] ``` ```wiki [[Ships|cool link]] ``` -------------------------------- ### Add a Category Link to a Page Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Use this syntax to create a link to a category page. This allows users to navigate to the category from any page. ```wikitext [[:Category:Category name]] ``` -------------------------------- ### Reference .rules File Node Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Use this template to add a reference to a .rules file or a specific node within it. Specify the file path and the node location. ```wikitext Template:GameRulesFileReference | 💘 Reference | Adds a reference to a .rules file/node inside of it: `.rules` file/node location: `&~/Part/Components/EmpAbsorber/AbsorbsResourceDrain` ``` -------------------------------- ### Add Callout Template in Source Editor Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Use this syntax in the Source Editor to add a `Callout` template with a 'Warning' type and a custom message. Ensure parameters are correctly ordered. ```wiki markup {{Callout |Warning |As mentioned, most users should use VisualEditor to add templates since it walks you through the available options and parameters }} ``` -------------------------------- ### External Link Syntax Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Use this syntax in the Source Editor to create external links. Replace the URL and link text as needed. ```wiki markup [https://cosmoteer.net/ Official Cosmoteer site] ``` -------------------------------- ### Add Version Images Category Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3ACreating_pages This syntax adds a category to uploaded media, organizing them by version. The new category must also be added to the 'Category:Version Images'. ```wiki markup [[Category:Version Images: ]] ``` -------------------------------- ### Create a Category Page Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks To create a new category, navigate to the 'Category:Category_name' URL and create the page. Replace 'Category_name' with your desired category name. ```url https://cosmoteer.wiki.gg/wiki/Category:Category_name ``` -------------------------------- ### Quote Template Usage Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3ACreating_pages Use the {{Quote}} template for in-game ship descriptions. Break-line tags `
` are required for spacing between sentences. ```WikiText {{Quote|"Big and Mean"
The brutes of the scrapyard, they keep the place clean and well secured of any other would be pirates.}} ``` -------------------------------- ### Styling Main Descriptions in Infoboxes Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3AStyle_Guide Applies the 'main-description' class to infobox descriptions for enhanced visual appearance. ```Wiki Markup | Description = {{{description|}}} | Description_class = main-description ``` -------------------------------- ### Resource Inline Icon Syntax Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Use the Resource template in VisualEditor or this syntax in Source Editor to display resource icons. Replace 'Steel' with any valid resource name. ```wiki markup {{Resource|Steel}} ``` -------------------------------- ### General Inline Icon Syntax Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Use the InlineIcon template in VisualEditor or this syntax in Source Editor to display custom icons. Replace the image name with the desired icon file. ```wiki markup {{InlineIcon|Wiki--visual-editor--hamburger-menu--white.svg}} ``` -------------------------------- ### Enable Image Floating Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Use this syntax to enable floating for an image, allowing content to wrap around it. The 'left' parameter aligns the image to the left. ```wikitext [[File:ShipContestFeb202314DillientBlueprint.png|left|thumb|100x100px]] ``` -------------------------------- ### Embed YouTube Video Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3ACreating_pages Use this syntax to embed YouTube videos into wiki pages. Replace `VIDEO DESCRIPTION` with a relevant description and `YOUTUBE_LINK` with the actual video URL. ```wiki markup YOUTUBE_LINK ``` -------------------------------- ### Add a Category to a Page (Source Editor) Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks In the source editor, use this template at the end of your page to add it to a category. Replace 'Category name' with the actual category name. ```wikitext [[Category:Category name]] ``` -------------------------------- ### Stack Images Horizontally with 'noclear' Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Add the 'noclear' class name to an image to stack it horizontally with the preceding image. This prevents the next image from appearing below. ```wikitext [[File:ShipContestFeb202314DillientBlueprint.png|left|thumb|100x100px|class=noclear]] ``` -------------------------------- ### Lookup Parent Page Path Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks This template looks up the parent page of a given page. By default, it uses the current page, but a custom page path can be provided. ```wikitext Template:ParentPagePath | Other | Look ups the parent page. By default, the current page is used, but a custom page path can be specified. Here it is, used: `Modding/Components/Buffs` page parent page is `Modding/Components` ``` -------------------------------- ### Style Sounds Section Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3AStyle_Guide Assign the 'sounds-section' class to sections containing sounds to center-align their labels. This is useful for organizing and presenting sound-related information. ```wikitext | Sounds = Sound 1, Sound 2, Sound 3 | Sounds_class = sounds-section ``` -------------------------------- ### Add Images in Infoboxes Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3AStyle_Guide Use this syntax to embed images within infoboxes, styling them with custom classes for centering and scaling. The 'caption2' field is used for image captions. ```wikitext | Image = {{#if: {{{image|}}}|{{#invoke:Utils/Image utils|normalize_file_link|{{{image}}}}}}} | Image_nolabel = yes | Image_class = druid-main-image extra-image | Image caption = {{{caption2|}}} | Image caption_nolabel = yes | Image caption_class = image-caption ``` -------------------------------- ### Disabling Lazy Loading for Tabbed Images Source: https://cosmoteer.wiki.gg/wiki/Cosmoteer_Wiki%3AStyle_Guide Applies the 'preload-tabbed-images' class to enable immediate loading of tabbed images on page load. ```HTML Class: `preload-tabbed-images`. ``` -------------------------------- ### Wrap CSS Variable if Needed Source: https://cosmoteer.wiki.gg/wiki/Contributing_How-Tos%3A_Tips_and_Tricks Checks if a string appears to be a CSS variable. If it is, it wraps the variable in `var()` syntax. Otherwise, it returns the string unchanged. ```wikitext Template:WrapCssVariableIfNeeded | Other | Checks if the given string looks like a CSS variable. If so, wraps it in «var()» syntax, making it possible to use as CSS color value. Otherwise (if a string is not a css variable), returns it «as is». `--some-css-var` will become `var(--some-css-var)` `red` will stay the same: `red` ``` -------------------------------- ### Security Verification Request ID Source: https://cosmoteer.wiki.gg/wiki/Category%3APages_with_DRUID_infoboxes This is a request ID generated during a security verification process. It is not a code snippet but a unique identifier for a specific request. ```text Request ID: 9f9e4983ce022022 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.