Difference between revisions of "Template:DLC Icons/doc"
Jump to navigation
Jump to search
(Created page with "== Description == Decides which DLC markers should be displayed. There are two parameters: * The '''first''' parameter should be the property From DLC o...") |
Arcangelus (talk | contribs) m (→See also: Added Anomaly icon, the missing DLC link.) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
− | + | 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 | + | * 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 [[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> | + | <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}} | ||
+ | |||
− | + | <pre>{{DLC Icons|Darklight brazier|no link=1}}</pre> | |
+ | '''Produces:''' | ||
+ | {{DLC Icons|Darklight brazier|no link=1}} | ||
− | |||
+ | <pre>{{DLC Icons|Darklight brazier|no text=1|no text=1}}</pre> | ||
'''Produces:''' | '''Produces:''' | ||
+ | {{DLC Icons|Darklight brazier|no text=1}} | ||
− | [[ | + | |
+ | <pre>{{#ask: [[Category:Mechanoids]][[!Mechanoid]][[Type::Mechanoid]] | ||
+ | | format = template | ||
+ | | template = DLC Icons | ||
+ | | link = none | ||
+ | | sort = From DLC, Name | ||
+ | | sep =  •  | ||
+ | }}</pre> | ||
+ | '''Produces:''' | ||
+ | {{#ask: [[Category:Mechanoids]][[!Mechanoid]][[Type::Mechanoid]] | ||
+ | | format = template | ||
+ | | template = DLC Icons | ||
+ | | link = none | ||
+ | | sort = From DLC, Name | ||
+ | | sep =  •  | ||
+ | }} | ||
== 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. | |
+ | * [[Template:AnomalyIcon|<nowiki>{{AnomalyIcon}}</nowiki>]] {{AnomalyIcon}} - for the icon template for [[Anomaly 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 16:53, 26 June 2024
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}} 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
{{DLC Icons|Club|core=1}}
Produces: Club
{{DLC Icons|Darklight brazier|no link=1}}
{{DLC Icons|Darklight brazier|no text=1|no text=1}}
{{#ask: [[Category:Mechanoids]][[!Mechanoid]][[Type::Mechanoid]] | format = template | template = DLC Icons | link = none | sort = From DLC, Name | sep = • }}
Produces: Centipede • Centipede blaster • Centipede burner • Centipede gunner • Lancer • Pikeman • Scyther • Termite • Agrihand • Apocriton • Centurion • Cleansweeper • Constructoid • Diabolus • Fabricor • Legionary • Lifter • Militor • Paramedic • Scorcher • Tesseron • Tunneler • War queen • War urchin
See also[edit]
- {{RimworldIcon}} - for the icon template for core content.
- {{RoyaltyIcon}} - for the icon template for the Royalty DLC content.
- {{IdeologyIcon}} - for the icon template for Ideology DLC content.
- {{BiotechIcon}} - for the icon template for Biotech DLC content.
- {{AnomalyIcon}} - for the icon template for Anomaly DLC content.