Difference between revisions of "Template:Expand"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "</>" to "")
m (Text replacement - "<tvar|1>" to "")
Line 25: Line 25:
  
  
This is the <tvar|1>{{Tlx|expand}} message box.
+
This is the {{Tlx|expand}} message box.
  
  
Line 31: Line 31:
  
  
It can also be used on other pages such as in "<tvar|1>{{ns:Project}}:" space.
+
It can also be used on other pages such as in "{{ns:Project}}:" space.
  
  
Line 82: Line 82:
  
  
This template can also take a <tvar|1>{{para|1}} parameter with an explanation of what expansion the section needs.
+
This template can also take a {{para|1}} parameter with an explanation of what expansion the section needs.
  
  
Line 107: Line 107:
  
  
(The <tvar|1><code>&lt;nowiki /&gt;</code> is required or the first item will not display correctly.)
+
(The <code>&lt;nowiki /&gt;</code> is required or the first item will not display correctly.)
  
  
Line 115: Line 115:
  
  
When this template is used in main (article) space it places the article in <tvar|1>{{ll|Category:Articles to be expanded}} or in a dated category like <tvar|2>{{ll|Category:Articles to be expanded from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} if the date parameter "<tvar|3>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}" is specified.
+
When this template is used in main (article) space it places the article in {{ll|Category:Articles to be expanded}} or in a dated category like <tvar|2>{{ll|Category:Articles to be expanded from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} if the date parameter "<tvar|3>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}" is specified.
  
  
It also places the article in <tvar|1>{{ll|Category:All articles to be expanded}}.
+
It also places the article in {{ll|Category:All articles to be expanded}}.
  
  

Revision as of 18:09, 21 December 2019


Template documentation[create]
Template documentation
Template documentation[create]
Template documentation[create]


This is the {{expand}} message box.


It can be placed at the top of article sections that need expansion, after the section title.


It can also be used on other pages such as in "RobotX:" space.


(This template currently only uses the "article message box" style, but that is a bug we are going to fix.)

usage

Template documentation[create]

{{expand|reason=}}


This template can be used without any parameters, like this:


{{expand}}
Template documentation[create]


It can also take the current month and year as a parameter, which is used in categorising the page into a corresponding category.


(See more on that hereafter.)


Like this:


{{expand|date=June 2025}}


or


{{expand|{{subst:DATE}}}}
Template documentation[create]


There are bots that edit the pages and add the date parameter if you forget to do it.


The date parameter causes no visible change in the message box itself, it only makes the page categorise properly.


This template can also take a |1= parameter with an explanation of what expansion the section needs.


And you can of course feed the date parameter at the same time. Like this:


{{expand|1=examples and additional citations|date=June 2025}}
Template documentation[create]


When multiple expansion issues need to be raised, a bullet list can be made:


{{expand|1
Template documentation[create]
<nowiki />
* Career from 1952 to 1960
* Final days after 1972 retirement
|{{subst:DATE}}}}
Template documentation[create]


(The <nowiki /> is required or the first item will not display correctly.)


If this list were longer than three items, it would probably be better raised on the talk page.

Categorization

When this template is used in main (article) space it places the article in Category:Articles to be expanded or in a dated category like <tvar