Difference between revisions of "Template:Ideology/doc"
(new optional parameter section) |
|||
Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
− | Type following at the top of the page or the beginning of a section. | + | Type following at the top of the page or the beginning of a articles or section. |
<code><nowiki>{{Ideology}}</nowiki></code> | <code><nowiki>{{Ideology}}</nowiki></code> | ||
Line 12: | Line 12: | ||
'''Optional parameters''' | '''Optional parameters''' | ||
− | <p>This template accepts | + | <p>This template accepts "No category" optional parameter that suppresses adding the page to the Ideology category.</p> |
<p>Any text will work, but "No category" is suggested for clarity's sake.</p> | <p>Any text will work, but "No category" is suggested for clarity's sake.</p> | ||
+ | |||
+ | ==Sample== | ||
+ | |||
+ | <nowiki>{{Ideology}}</nowiki> | ||
+ | {{Ideology}} | ||
+ | |||
+ | <nowiki>{{Ideology|section = 1}}</nowiki> | ||
+ | {{Ideology|section = 1}} | ||
<code><nowiki>{{Ideology|No category}}</nowiki></code> | <code><nowiki>{{Ideology|No category}}</nowiki></code> |
Revision as of 16:41, 10 September 2022
Description
Adds a banner to indicate that the content of a section or an entire page is from the Ideology DLC. Provides a visual cue and acts as a link to the DLC's article.
For inline use and similar small scale links, use {{IdeologyIcon}}.
Syntax
Type following at the top of the page or the beginning of a articles or section.
{{Ideology}}
Optional parameters
This template accepts "No category" optional parameter that suppresses adding the page to the Ideology category.
Any text will work, but "No category" is suggested for clarity's sake.
Sample
{{Ideology}}
This article relates to content added by Ideology (DLC). Please note that it will not be present without the DLC enabled. |
{{Ideology|section = 1}}
This section relates to content added by Ideology (DLC). Please note that it will not be present without the DLC enabled. |
{{Ideology|No category}}
Usage
Use this template on pages or sections that apply to content from the Ideology DLC.
Include the 'No category' argument when marking a section on a page that also includes core game content.
Sample output
Typing:
{{Ideology}}
Produces:
This article relates to content added by Ideology (DLC). Please note that it will not be present without the DLC enabled. |
See also
- Template: Royalty for the equivalent for the Royalty DLC