Difference between revisions of "Template:DLC Icons"
Jump to navigation
Jump to search
(It’s ridiculous) |
m |
||
Line 9: | Line 9: | ||
| #default = {{#if: {{{2|}}} | {{RimworldIcon}} }} | | #default = {{#if: {{{2|}}} | {{RimworldIcon}} }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | {{Documentation | + | {{Documentation}} |
</noinclude> | </noinclude> |
Revision as of 06:40, 6 October 2022
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}} 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
- {{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.
The above documentation is transcluded from Template:DLC Icons/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |