Difference between revisions of "Template:Recode/doc"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
==Description==
+
== Description ==
 
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.
 
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==
+
== Usage ==
 
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!
 
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!
  
<pre>
+
<pre><noinclude>{{Recode|reason=}}</noinclude></pre>
<noinclude>
 
  {{Recode}}
 
</noinclude>
 
</pre>
 
  
==Sample Output ==
+
== Parameters ==
{{rwbox
+
* <code>reason</code> Why and/or what exactly should be recoded.
|nocat=true
+
* <code>test</code> Setting this parameter 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.
| type  = cleanup
+
 
| text  = This page has been suggested for [[:Category: Pages to be recoded|recoding]]. {{#if:{{{reason|}}}|Reason: {{{reason|}}}.|}} You can help {{SITENAME}} by '''[{{fullurl:{{#titleparts: {{FULLPAGENAME}}|1}} |action=edit}} improving]''' it.
+
== Examples ==
}}
+
<pre>{{Recode}}</pre>
 +
Results in:
 +
{{Recode|test=1}}
 +
 
 +
As you can see you should always provide a short reason or a description of what exactly should be recoded:
 +
<pre>{{Recode|reason=The table is overly complicated}}</pre>
 +
Results in:
 +
{{Recode|reason=The table is overly complicated|test=1}}
  
 
<includeonly>[[Category:Notice templates]]</includeonly>
 
<includeonly>[[Category:Notice templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 13:08, 7 June 2022

Description

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

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

  • reason Why and/or what exactly should be recoded.
  • test Setting this parameter prevents the page to be added to the. This is useful on pages like this where you just want to display the template.

Examples

{{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: