Difference between revisions of "Template:Ideology/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(new optional parameter section)
Line 17: Line 17:
 
==Sample==
 
==Sample==
  
<nowiki>{{Ideology}}</nowiki>
+
<code><nowiki>{{Ideology}}</nowiki></code>
 
{{Ideology}}
 
{{Ideology}}
  
<nowiki>{{Ideology|section = 1}}</nowiki>
+
<code><nowiki>{{Ideology|section = 1}}</nowiki></code>
 
{{Ideology|section = 1}}
 
{{Ideology|section = 1}}
  
 
<code><nowiki>{{Ideology|No category}}</nowiki></code>
 
<code><nowiki>{{Ideology|No category}}</nowiki></code>
 +
{{Ideology|No category}}
 +
 +
<code><nowiki>{{Ideology|section = 1|No category}}</nowiki></code>
 +
{{Ideology|section = 1|No category}}
  
 
==Usage==
 
==Usage==

Revision as of 16:44, 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}}

{{Ideology|section = 1}}

{{Ideology|No category}}

{{Ideology|section = 1|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:

See also