Difference between revisions of "Template:BC year in topic/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(create)
 
imported>Vanisaac
m (→‎Parameters: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
 
This template produces a box with various links about the BC year specified. It also includes the {{tl|year in other calendars}} sidebar and the {{tl|Commons category}} template. It is usually used on articles about a BC year, e.g. [[250 BC]].
 
This template produces a box with various links about the BC year specified. It also includes the {{tl|year in other calendars}} sidebar and the {{tl|Commons category}} template. It is usually used on articles about a BC year, e.g. [[250 BC]].
  
=== Syntax ===
+
== Syntax ==
  
 
  &#123;{BC year in topic|''BC year''}}
 
  &#123;{BC year in topic|''BC year''}}
  
=== Parameters ===
+
== Parameters ==
 
 
 
The template takes only one parameter, the first positional parameter. This is the BC year number. For example, to specify the year 250 BC, use the code <code>&#123;{BC year in topic|250}}</code>.
 
The template takes only one parameter, the first positional parameter. This is the BC year number. For example, to specify the year 250 BC, use the code <code>&#123;{BC year in topic|250}}</code>.
  
<includeonly>
+
{{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
<!-- Categories go here, and interwikis go in Wikidata -->
+
{{TemplateData header|noheader=1}}
[[Category:History and events infobox templates|{{PAGENAME}}]]
+
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"required": true,
 +
"label": "BC year",
 +
"type": "number",
 +
"default": "250",
 +
"description": "The BC year. The value should be a positive number, with no text. For example, for the year 100 BC insert \"100\" without the quotation marks."
 +
}
 +
},
 +
"description": "This template adds navigation sidebars about a BC year. It includes a \"BC year in topic\" sidebar, a \"year in other calendars\" sidebar, and a box linking to the BC year's category at Wikimedia Commons."
 +
}
 +
</templatedata>
 +
{{collapse bottom}}
  
</includeonly>
+
<includeonly>{{Sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
{{DEFAULTSORT:Bc Year In Topic}}
 +
[[Category:History and events infobox templates]]
 +
}}</includeonly>

Latest revision as of 23:45, 23 April 2020

This template produces a box with various links about the BC year specified. It also includes the {{year in other calendars}} sidebar and the {{Commons category}} template. It is usually used on articles about a BC year, e.g. 250 BC.

Syntax

{{BC year in topic|BC year}}

Parameters

The template takes only one parameter, the first positional parameter. This is the BC year number. For example, to specify the year 250 BC, use the code {{BC year in topic|250}}.

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for BC year in topic

This template adds navigation sidebars about a BC year. It includes a "BC year in topic" sidebar, a "year in other calendars" sidebar, and a box linking to the BC year's category at Wikimedia Commons.

Template parameters

ParameterDescriptionTypeStatus
BC year1

The BC year. The value should be a positive number, with no text. For example, for the year 100 BC insert "100" without the quotation marks.

Default
250
Numberrequired