Difference between revisions of "Template:Expand"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<translate>" to "")
m (Text replacement - "</translate>" to "")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:</translate>
+
</noinclude>{{#switch:
 
| =
 
| =
 
<!-- {{Expand further}} begin -->{{Ambox
 
<!-- {{Expand further}} begin -->{{Ambox
Line 9: Line 9:
 
| type  = {{{type|content}}}
 
| type  = {{{type|content}}}
 
| image = [[File:OOjs UI icon puzzle-ltr-warning.svg|40px|link=]]
 
| image = [[File:OOjs UI icon puzzle-ltr-warning.svg|40px|link=]]
| issue  = '''<!--T:1--> Please <span class="plainlinks">[<tvar|url>{{fullurl:{{FULLPAGENAME}}|action=edit}}</> expand]</span> this page.</translate> {{#ifeq:{{{further|}}}|yes|<!--T:2--> Some suggested sources follow.</translate>|}}''' {{#if:{{{reason|}}}|<!--T:3--> The reason given is:</translate> ''{{{reason}}}''}}
+
| issue  = '''<!--T:1--> Please <span class="plainlinks">[<tvar|url>{{fullurl:{{FULLPAGENAME}}|action=edit}}</> expand]</span> this page. {{#ifeq:{{{further|}}}|yes|<!--T:2--> Some suggested sources follow.|}}''' {{#if:{{{reason|}}}|<!--T:3--> The reason given is: ''{{{reason}}}''}}
| fix  = <!--T:4--> More information might be found in a section of the [[<tvar|talk>{{TALKPAGENAME}}</>|talk page]].</translate>
+
| fix  = <!--T:4--> More information might be found in a section of the [[<tvar|talk>{{TALKPAGENAME}}</>|talk page]].
 
| date  = {{{date|}}}
 
| date  = {{{date|}}}
 
| cat  = Articles to be expanded{{#translation:}}
 
| cat  = Articles to be expanded{{#translation:}}
Line 28: Line 28:
  
 
<!--T:6-->
 
<!--T:6-->
It can be placed at the top of article sections that need expansion, ''after'' the section title.</translate>
+
It can be placed at the top of article sections that need expansion, ''after'' the section title.
  
 
<!--T:7-->
 
<!--T:7-->
It can also be used on other pages such as in "<tvar|1>{{ns:Project}}:</>" space.</translate>
+
It can also be used on other pages such as in "<tvar|1>{{ns:Project}}:</>" space.
  
 
<!--T:8-->
 
<!--T:8-->
Line 37: Line 37:
  
 
==usage== <!--T:9-->
 
==usage== <!--T:9-->
</translate>
+
 
  
 
{{expand|reason=template}}
 
{{expand|reason=template}}
Line 46: Line 46:
 
<!--T:10-->
 
<!--T:10-->
 
This template can be used without any parameters, like this:
 
This template can be used without any parameters, like this:
</translate>
+
 
  
 
:{{Tlx|expand}}
 
:{{Tlx|expand}}
Line 54: Line 54:
  
 
<!--T:11-->
 
<!--T:11-->
It can also take the current month and year as a parameter, which is used in categorising the page into a corresponding category.</translate>
+
It can also take the current month and year as a parameter, which is used in categorising the page into a corresponding category.
  
 
<!--T:12-->
 
<!--T:12-->
(See more on that hereafter.)</translate>
+
(See more on that hereafter.)
  
 
<!--T:13-->
 
<!--T:13-->
 
Like this:
 
Like this:
</translate>
+
 
  
 
:{{Tlx|expand|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
 
:{{Tlx|expand|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
Line 68: Line 68:
 
<!--T:14-->
 
<!--T:14-->
 
or
 
or
</translate>
+
 
  
 
:{{Tlx|expand|<nowiki>{{subst:DATE}}</nowiki>}}
 
:{{Tlx|expand|<nowiki>{{subst:DATE}}</nowiki>}}
Line 76: Line 76:
  
 
<!--T:15-->
 
<!--T:15-->
There are [[Wikipedia:Bot policy|bots]] that edit the pages and add the '''date''' parameter if you forget to do it.</translate>
+
There are [[Wikipedia:Bot policy|bots]] that edit the pages and add the '''date''' parameter if you forget to do it.
  
 
<!--T:16-->
 
<!--T:16-->
Line 82: Line 82:
  
 
<!--T:17-->
 
<!--T:17-->
This template can also take a <tvar|1>{{para|1}}</> parameter with an explanation of what expansion the section needs.</translate>
+
This template can also take a <tvar|1>{{para|1}}</> parameter with an explanation of what expansion the section needs.
  
 
<!--T:18-->
 
<!--T:18-->
 
And you can of course feed the date parameter at the same time. Like this:
 
And you can of course feed the date parameter at the same time. Like this:
</translate>
+
 
  
 
:{{Tlx|expand|2=1=examples and additional citations|3=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
 
:{{Tlx|expand|2=1=examples and additional citations|3=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
Line 95: Line 95:
 
<!--T:19-->
 
<!--T:19-->
 
When multiple expansion issues need to be raised, a bullet list can be made:
 
When multiple expansion issues need to be raised, a bullet list can be made:
</translate>
+
 
  
 
:{{Tlx|expand|1{{=}}&lt;nowiki /&gt;<br />* Career from 1952 to 1960<br />* Final days after 1972 retirement<br />
 
:{{Tlx|expand|1{{=}}&lt;nowiki /&gt;<br />* Career from 1952 to 1960<br />* Final days after 1972 retirement<br />
Line 107: Line 107:
  
 
<!--T:20-->
 
<!--T:20-->
(The <tvar|1><code>&lt;nowiki /&gt;</code></> is required or the first item will not display correctly.)</translate>
+
(The <tvar|1><code>&lt;nowiki /&gt;</code></> is required or the first item will not display correctly.)
  
 
<!--T:21-->
 
<!--T:21-->
Line 115: Line 115:
  
 
<!--T:23-->
 
<!--T:23-->
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.</translate>
+
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.
  
 
<!--T:24-->
 
<!--T:24-->
 
It also places the article in <tvar|1>{{ll|Category:All articles to be expanded}}</>.
 
It also places the article in <tvar|1>{{ll|Category:All articles to be expanded}}</>.
</translate>
+
 
  
 
}}
 
}}

Revision as of 04:35, 21 December 2019


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


This is the <tvar