Difference between revisions of "Template:Expand language/howto"

From blackwiki
Jump to navigation Jump to search
imported>X1\
imported>Mathglot
(→‎Optional parameters: Add 'section' param support, per Template:Expand language revision 963293142.)
 
(3 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
To mark an article, tag it with
 
To mark an article, tag it with
  
:<code><nowiki>{{Expand</nowiki> {{{1}}}|''{{{2|{{{1}}}}}}articletitle''<nowiki>|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
+
:<code><nowiki>{{Expand</nowiki> {{{1}}}|''{{{2|{{{1}}}}}} article title''<nowiki>|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
  
 
This template places articles in the category [[:Category:Articles needing translation from {{{1}}} Wikipedia]].
 
This template places articles in the category [[:Category:Articles needing translation from {{{1}}} Wikipedia]].
Line 13: Line 13:
 
===Optional parameters===
 
===Optional parameters===
  
Foreign language [[Wikipedia:Featured articles|featured articles]] can be marked using fa=yes, as in
+
Foreign language featured articles can be marked using fa=yes, as in
  
 
:<code><nowiki>{{Expand</nowiki> {{{1}}}<nowiki>|fa=yes|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
 
:<code><nowiki>{{Expand</nowiki> {{{1}}}<nowiki>|fa=yes|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
 +
 +
The template may be placed in an individual section, using section=yes, as in
 +
 +
:<code><nowiki>{{Expand</nowiki> {{{1}}}<nowiki>|section=yes|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>

Latest revision as of 02:20, 19 June 2020

This template is generated by {{Expand language}}. It is used to mark articles that are better in {{{1}}} Wikipedia than in English Wikipedia, and thus should be translated from {{{1}}} into English.

Usage

To mark an article, tag it with

{{Expand {{{1}}}|{{{1}}} article title|date=December 2025}}

This template places articles in the category [[:Category:Articles needing translation from {{{1}}} Wikipedia]].

Because of this, the template should be added to the article page, and not to the Talk page.

Optional parameters

Foreign language featured articles can be marked using fa=yes, as in

{{Expand {{{1}}}|fa=yes|date=December 2025}}

The template may be placed in an individual section, using section=yes, as in

{{Expand {{{1}}}|section=yes|date=December 2025}}