Difference between revisions of "Template:DLC Icons/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m
Line 28: Line 28:
 
* [[Template:RoyaltyIcon|<nowiki>{{RoyaltyIcon}}</nowiki>]] {{RoyaltyIcon}} - for the icon template for the [[Royalty DLC]] content.
 
* [[Template:RoyaltyIcon|<nowiki>{{RoyaltyIcon}}</nowiki>]] {{RoyaltyIcon}} - for the icon template for the [[Royalty DLC]] content.
 
* [[Template:IdeologyIcon|<nowiki>{{IdeologyIcon}}</nowiki>]] {{IdeologyIcon}} - for the icon template for [[Ideology DLC]] content.
 
* [[Template:IdeologyIcon|<nowiki>{{IdeologyIcon}}</nowiki>]] {{IdeologyIcon}} - for the icon template for [[Ideology DLC]] content.
 
+
* [[Template:BiotechIcon|<nowiki>{{BiotechIcon}}</nowiki>]] {{BiotechIcon}} - for the icon template for [[Biotech DLC]] content.
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<includeonly>[[Category:Icon templates]]</includeonly>
 
<includeonly>[[Category:Icon templates]]</includeonly>

Revision as of 11:04, 6 October 2022

Description

Decides which DLC markers should be displayed.

There are two parameters:

  • The first parameter should be the property From DLC of the page in question. The options are:
    • Royalty (DLC) for: Content added by the Royalty DLC
    • Ideology (DLC) for: Content added by the Ideology DLC
    • Royalty (DLC), Ideology (DLC) or Ideology (DLC), Royalty (DLC) for: Content added by the Royalty DLCContent added by the Ideology DLC
  • The second parameter can be set to any value if the template should display 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.

[[Darklight brazier]]{{DLC Icons|{{Q|Darklight brazier|From DLC}}}}

Produces:

Darklight brazierRoyalty (DLC), Ideology (DLC)

[[Club]]{{DLC Icons|{{Q|Club|From DLC|true}}}}

Produces:

Club[[|]]

See also