Difference between revisions of "Template:Move"

From RimWorld Wiki
Jump to navigation Jump to search
(set maintenance reason; specific value for nocat parameter)
(nicer icon)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
   | type  = manual
 
   | type  = manual
 
   | color = #1e90ff
 
   | color = #1e90ff
   | image = [[File:Ambox move.png|40px|link=Category:Pages to be moved]]
+
   | image = [[File:Form Caravan.png|40px|link=Category:Pages to be moved]]
 
   | text  = This {{#if: {{{section|}}} | section | {{#ifeq: {{NAMESPACE}} | File | file | page}} }} is [[:Category:Pages to be moved|suggested to be moved]]. '''Destination:''' {{#if: {{{destination|}}} | [[{{{destination|}}}]] | {{Error|Please suggest a target page}} }}. '''Reason:''' {{{reason| {{Error|Please provide a reason}} }}}.
 
   | text  = This {{#if: {{{section|}}} | section | {{#ifeq: {{NAMESPACE}} | File | file | page}} }} is [[:Category:Pages to be moved|suggested to be moved]]. '''Destination:''' {{#if: {{{destination|}}} | [[{{{destination|}}}]] | {{Error|Please suggest a target page}} }}. '''Reason:''' {{{reason| {{Error|Please provide a reason}} }}}.
  | nocat = true
+
}} {{#ifeq: {{{nocat|}}} | true | | [[Category:Pages to be moved]] {{#set: Maintenance Reason = Move: {{{reason|}}} }} }}</includeonly><noinclude>{{Documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->
}} {{#set: Maintenance Reason = {{{reason|}}} }} {{#ifeq: {{{nocat|}}} | true | | [[Category:Pages to be moved]] }}</includeonly><noinclude>{{Documentation}}</noinclude><!-- Add categories and interwikis to the /doc subpage, not here! -->
 

Latest revision as of 17:37, 12 January 2024

Documentation icon Template documentation[view] [edit] [history] [purge]

Description[edit]

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

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 should always provide the name of the page where the page should be moved to (e.g. {{Move| destination = Trees}})). 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 moved and why to that particular destination - be it as obvious to you as it gets. This can be any text (e.g. {{Move| reason = I hope we can all agree that ''Treees'' is spelled ''Trees'' and should therefore be moved to that page}}).

"section" parameter[edit]

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

"nocat" parameter[edit]

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

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

Examples[edit]

The template can be used with no arguments:

{{Move}}

producing:

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

{{Move| destination = Trees | reason = I hope we can all agree that ''Treees'' is spelled ''Trees'' and should therefore be moved to that page}}

producing:

A specific section can be designated for moving:

{{Move| destination = Trees | reason = This section should be its own page | 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.
  • 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]