Difference between revisions of "Template:Recode"

From RimWorld Wiki
Jump to navigation Jump to search
(Not the best, but following the trend of making the icons of the maintenance banners "rimworld-y")
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
| small = {{{small|no}}}
 
| small = {{{small|no}}}
 
| image = [[File:AncientTerminal east.png|40px|link=Category:Pages to be recoded]]
 
| image = [[File:AncientTerminal east.png|40px|link=Category:Pages to be recoded]]
| type  = cleanup
 
 
| Ancient terminal.png
 
| Ancient terminal.png
| text  = This {{#if:{{{section|}}}|section|page}} has been suggested for [[:Category: Pages to be recoded|recoding]]. {{#if:{{{reason|}}}|Reason: ''{{{reason|}}}''.|{{Error|Please provide a reason.}}}} You can help {{SITENAME}} by '''[{{fullurl:{{#titleparts: {{FULLPAGENAME}}|1}} |action=edit}} improving]''' it.
+
| text  = This {{#if:{{{section|}}}|section|page}} has been suggested for [[:Category: Pages to be recoded|recoding]]. '''Reason:''' ''{{{reason|{{Error|Please provide a reason}}}}}''. You can help {{SITENAME}} by '''[{{fullurl:{{#titleparts: {{FULLPAGENAME}}|1}} |action=edit}} improving]''' it.}}{{#ifeq:{{{nocat|}}}|true||{{#set: Maintenance Reason = Recode: {{{reason|}}}}}[[Category:Pages to be recoded]]}}</includeonly>
}}{{#ifeq:{{{nocat|}}}|true||[[Category:Pages to be recoded]]}}</includeonly>
 
 
<noinclude>{{Documentation}}</noinclude>
 
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 03:05, 15 November 2024

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

Description[edit]

You can use the Needs Re-coded template to mark a page for future re-code. This will help developers have a high level overview of what templates, pages, and the like are to be re-coded and brought up to industry standards.

Usage[edit]

Place the following code snippet at the top of the page needing re-coded, before any other text on the page. Be sure to add the "noinclude" tags to make sure it doesn't break anything!

<noinclude>{{Recode|reason=}}</noinclude>

Parameters[edit]

  • reason Why and/or what exactly should be recoded.
  • section Set this parameter to any value if you want to specify that only one section should be recoded.
  • nocat Setting this parameter to true prevents the page to be added to the Category:Pages to be recoded. This is useful on pages like this where you just want to display the template.

Examples[edit]

{{Recode}}

Results in:


As you can see you should always provide a short reason or a description of what exactly should be recoded:

{{Recode|reason=The table is overly complicated}}

Results in:


If the page is used in a section, rather than the whole page:

{{Recode|section=1|reason=Very important ;)}}

Results in: