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

From RimWorld Wiki
Jump to navigation Jump to search
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Description ==
 
== Description ==
Decides which DLC markers should be displayed.
+
Prints a page name with the icons of the DLCs it belongs to.
  
 
There are two parameters:
 
There are two parameters:
* The '''first''' parameter should be the property [[Property:From DLC|From DLC]] of the page in question. The options are:
+
* The '''first''' parameter should be the name of the page in question. Otherwise PAGENAME is used.
** ''Royalty (DLC)'' for: {{RoyaltyIcon}}
+
* Additionally the following named parameters can be set to any value to get the desired effects:
** ''Ideology (DLC)'' for: {{IdeologyIcon}}
+
** '''no text''': only prints the icons
** ''Royalty (DLC), Ideology (DLC)'' or ''Ideology (DLC), Royalty (DLC)'' for: {{RoyaltyIcon}}{{IdeologyIcon}}
+
** '''no link''': prints the text without a link
* The '''second''' parameter can be set to any value if the template should display the [[Template:RimworldIcon|<nowiki>{{RimworldIcon}}</nowiki>]] {{RimworldIcon}} as default.
+
** '''core''': prints the [[Template:RimworldIcon|<nowiki>{{RimworldIcon}}</nowiki>]] {{RimworldIcon}} as default
  
 
== Usage ==
 
== 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.
 
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.
  
<pre>[[Darklight brazier]]{{DLC Icons|{{Q|Darklight brazier|From DLC}}}}</pre>
+
<pre>{{DLC Icons|Darklight brazier}}</pre>
 +
'''Produces:'''
 +
{{DLC Icons|Darklight brazier}}
 +
 
  
 +
<pre>{{DLC Icons|Club|core=1}}</pre>
 
'''Produces:'''
 
'''Produces:'''
 +
{{DLC Icons|Club|core=1}}
 +
  
[[Darklight brazier]]{{DLC Icons|{{Q|Darklight brazier|From DLC}}}}
+
<pre>{{DLC Icons|Darklight brazier|no link=1}}</pre>
 +
'''Produces:'''
 +
{{DLC Icons|Darklight brazier|no link=1}}
  
<pre>[[Club]]{{DLC Icons|{{Q|Club|From DLC|true}}}}</pre>
 
  
 +
<pre>{{DLC Icons|Darklight brazier|no text=1|no text=1}}</pre>
 
'''Produces:'''
 
'''Produces:'''
 +
{{DLC Icons|Darklight brazier|no text=1}}
  
[[Club]]{{DLC Icons|{{Q|Club|From DLC}}|true}}
+
 
 +
<pre>{{#ask: [[Category:Mechanoids]][[!Mechanoid]][[Type::Mechanoid]]
 +
    | format = template
 +
    | template = DLC Icons
 +
    | link = none
 +
    | sort = From DLC, Name
 +
    | sep = &#32;&bull;&#32;
 +
}}</pre>
 +
'''Produces:'''
 +
{{#ask: [[Category:Mechanoids]][[!Mechanoid]][[Type::Mechanoid]]
 +
    | format = template
 +
    | template = DLC Icons
 +
    | link = none
 +
    | sort = From DLC, Name
 +
    | sep = &#32;&bull;&#32;
 +
}}
  
 
== See also ==
 
== See also ==
Line 28: Line 52:
 
* [[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>

Latest revision as of 18:06, 7 December 2022

Description[edit]

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[edit]

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: Darklight brazier Content added by the Royalty DLCContent added by the Ideology DLC


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

Produces: Club Content from Rimworld core game only


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

Produces: Darklight brazier Content added by the Royalty DLCContent added by the Ideology DLC


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

Produces:  Content added by the Royalty DLCContent added by the Ideology DLC


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

Produces: CentipedeCentipede blasterCentipede burnerCentipede gunnerLancerPikemanScytherTermiteAgrihand Content added by the Biotech DLCApocriton Content added by the Biotech DLCCenturion Content added by the Biotech DLCCleansweeper Content added by the Biotech DLCConstructoid Content added by the Biotech DLCDiabolus Content added by the Biotech DLCFabricor Content added by the Biotech DLCLegionary Content added by the Biotech DLCLifter Content added by the Biotech DLCMilitor Content added by the Biotech DLCParamedic Content added by the Biotech DLCScorcher Content added by the Biotech DLCTesseron Content added by the Biotech DLCTunneler Content added by the Biotech DLCWar queen Content added by the Biotech DLCWar urchin Content added by the Biotech DLC

See also[edit]