Difference between revisions of "Template:Split/doc"

From RimWorld Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
=== "destination" parameter ===
 
=== "destination" parameter ===
You should always provide the name of the page where parts of the page or section should be moved to (e.g. <code><nowiki>{{Split| destination = Processed food}}</nowiki></code>)). It doesn't matter if the page exists already.
+
You can and should provide the name of the page where parts of the page or section should be moved to (e.g. <code><nowiki>{{Split| destination = Processed food}}</nowiki></code>), however it is not always practical (e.g. when a superpage needs to be split into many subpages). It doesn't matter if the page exists already.
  
 
=== "destination2" parameter ===
 
=== "destination2" parameter ===
Line 29: Line 29:
 
{{Split| nocat = true}}
 
{{Split| nocat = true}}
  
As you can see the template complains if you don't provide a ''destination'' and a ''reason''. You should therefore always provide them:
+
As you can see the template complains if you don't provide a ''reason''. You should therefore always provide one:
<pre>{{Split| destination = Processed food | reason = Processed food is a more generic term for meals and other food. This page currently covers both.}}</pre>
+
<pre>{{Split| destination = Meals | reason = Meals are a specific type of food that needs its own discussion| nocat = true}}</pre>
 
producing:
 
producing:
{{Split| destination = Processed food | reason = Processed food is a more generic term for meals and other food. This page currently covers both. | nocat = true}}
+
{{Split| destination = Meals | reason = Meals are a specific type of food that needs its own discussion| nocat = true}}
  
 
A specific section can be designated for moving:
 
A specific section can be designated for moving:
<pre>{{Split| destination = Processed food | reason = This section should be its own page as well | section = 1 }}</pre>
+
<pre>{{Split| destination = Meals | reason = This section should be its own page as well | section = 1 }}</pre>
 
producing:
 
producing:
{{Split| destination = Processed food | reason = This section should be its own page as well | section = 1 | nocat = true}}
+
{{Split| destination = Meals | reason = This section should be its own page as well | section = 1 | nocat = true}}
  
 
Up to two destinations can be designated. This can be combined with section or not
 
Up to two destinations can be designated. This can be combined with section or not
<pre>{{Split| destination = Processed food | destination2 = Animal feed | reason = This section could be two whole pages by itself | section = 1 }}</pre>
+
<pre>{{Split| destination = Meals | destination2 = Kibble | reason = This section could be two whole pages by itself | section = 1 }}</pre>
 
producing:
 
producing:
{{Split| destination = Processed food | destination2 = Animal feed | reason = This section could be two whole pages by itself | section = 1 | nocat = true}}
+
{{Split| destination = Meals | destination2 = Kibble | reason = This section could be two whole pages by itself | section = 1 | nocat = true}}
  
 
== See also ==
 
== See also ==

Latest revision as of 04:11, 9 November 2024

Description[edit]

Creates a banner noting that the page or section should be split and automatically categorizes the page into Category:Pages to be split.

Parameters[edit]

This template has no mandatory parameters, it is however good practice to always provide the "destination" and "reason" parameter.

"destination" parameter[edit]

You can and should provide the name of the page where parts of the page or section should be moved to (e.g. {{Split| destination = Processed food}}), however it is not always practical (e.g. when a superpage needs to be split into many subpages). It doesn't matter if the page exists already.

"destination2" parameter[edit]

When pages should be split into more than one page, allows the designation of another destination (e.g. {{Split| destination = Processed food| destination2 = Animal feed }})). It doesn't matter if the page exists already.

"reason" parameter[edit]

You should always provide an explanation why you think the page should be split and why to that particular destination - be it as obvious to you as it gets. This can be any text (e.g. {{Split| reason = Processed food is a more generic term for meals and other food. This page currently covers both.}}).

"section" parameter[edit]

Setting this parameter to any value (e.g. {{Split| section = 1}}) will change the message from "article" to "section".

"notoc" parameter[edit]

Setting this parameter to true (e.g. {{Split| nocat = true}}) suppresses adding the page to Category:Pages to be split.

Include this parameter when using the template for testing purposes, like on this page.

Examples[edit]

The template can be used with no arguments:

{{Split}}

producing:

As you can see the template complains if you don't provide a reason. You should therefore always provide one:

{{Split| destination = Meals | reason = Meals are a specific type of food that needs its own discussion| nocat = true}}

producing:

A specific section can be designated for moving:

{{Split| destination = Meals | reason = This section should be its own page as well | section = 1 }}

producing:

Up to two destinations can be designated. This can be combined with section or not

{{Split| destination = Meals | destination2 = Kibble | reason = This section could be two whole pages by itself | section = 1 }}

producing:

See also[edit]

Maintenance[edit]

  • Incomplete pages/sections:
    • {{Documentation wanted}} for marking templates without documentation.
    • {{Image wanted}} for marking pages or sections that are missing images.
    • {{Stub}} for marking incomplete pages or sections.
  • Request major changes:
    • {{Disambig}} for marking pages that are ambiguous.
    • {{Merge}} for marking pages that should be merged.
    • {{Move}} for marking pages or sections that should be moved.
    • {{Rewrite}} for marking pages or sections that should be rewritten.
    • {{Recode}} for marking templates or pages that need to be recoded.
    • {{Split}} for marking pages or sections that should be split.
  • Deletion:
    • {{Delete}} for marking pages that should be deleted.
    • {{Obsolete}} for marking pages that are no longer relevant to the current game version.
    • {{Safe to delete}} for marking pages that are ready to be deleted.
    • {{SpeedyDelete}} for marking pages that should be deleted as fast as possible.

Content[edit]