Difference between revisions of "Template:DLC Icons"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#switch: {{{1|}}} | Royalty (DLC) = {{RoyaltyIcon}} | Ideology (DLC) = {{IdeologyIcon}} | Royalty (DLC), Ideology (DLC) | Ideology (DLC), Royalty (DLC) =...")
 
(Added nbsp)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1|}}}
 
<includeonly>{{#switch: {{{1|}}}
   | Royalty (DLC) = {{RoyaltyIcon}}
+
   | Royalty (DLC) = &nbsp;{{RoyaltyIcon}}
   | Ideology (DLC) = {{IdeologyIcon}}
+
   | Ideology (DLC) = &nbsp;{{IdeologyIcon}}
   | Royalty (DLC), Ideology (DLC) | Ideology (DLC), Royalty (DLC) = {{RoyaltyIcon}}{{IdeologyIcon}}
+
   | Royalty (DLC), Ideology (DLC) | Ideology (DLC), Royalty (DLC) = &nbsp;{{RoyaltyIcon}}{{IdeologyIcon}}
   | #default = {{#if: {{{2|}}} | {{RimworldIcon}} }}
+
   | #default = {{#if: {{{2|}}} | &nbsp;{{RimworldIcon}} }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:48, 5 October 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

Description

Prints a page name with the icons of the DLCs it belongs to.

There are two parameters:

  • The first parameter should be the name of the page in question. Otherwise PAGENAME is used.
  • Additionally the following named parameters can be set to any value to get the desired effects:
    • no text: only prints the icons
    • no link: prints the text without a link
    • core: prints the {{RimworldIcon}} Content from Rimworld core game only as default

Usage

Simply add the template to the location it is required. This should work for both inline use, as well as in tables, nav boxes etc.

{{DLC Icons|Darklight brazier}}

Produces:


{{DLC Icons|Club|core=1}}

Produces:


{{DLC Icons|Darklight brazier|no link=1}}

Produces:


{{DLC Icons|Darklight brazier|no text=1|no text=1}}

Produces:


{{#ask: [[Category:Mechanoids]][[!Mechanoid]][[Type::Mechanoid]]
    | format = template
    | template = DLC Icons
    | link = none
    | sort = From DLC, Name
    | sep =  •  
}}

Produces: • • • • • • • • • • • • • • • • • • • • • • •

See also