Pāriet uz saturu

Veidne:NBA Year/doc: Atšķirības starp versijām

Vikipēdijas lapa
Dzēstais saturs Pievienotais saturs
MerlIwBot (diskusija | devums)
mNav labojuma kopsavilkuma
 
1. rindiņa: 1. rindiņa:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

=== Usage ===
Use this template to link to "NBA season" articles from a particular year. The first parameter is the starting year of the season. By default, the template displays text in the form "yyyy–yy"; except for the 1999–2000 season, which is in the form "yyyy–yyyy" to comply with [[WP:YEAR]]: "A closing CE/AD year is normally written with two digits (1881–86) unless it is in a different century from that of the opening year (1881–1986)" (as of April 2009).

A second parameter may be used if only one year is to be displayed (does not work if <code>nolink</code> is passed in).

<code><nowiki>{{nbay|...}}</nowiki></code> is the other name of this template.

==== Named parameters ====
==== Named parameters ====


19. rindiņa: 9. rindiņa:
: Text must not be linked.
: Text must not be linked.
; full
; full
: Text must be in "yyyy–yyyy" format.
: Text must be in "yyyy—yyyy" format.
; trunc
; trunc
: The 1999–2000 season is to be displayed as "1999–00" instead of "1999–2000".
: The 1999—2000 season is to be displayed as "1999—00" instead of "1999—2000".
; baa
; baa
: The link target should direct to a BAA season article.
: The link target should direct to a BAA season article.
48. rindiņa: 38. rindiņa:
* <code>start</code>/<code>end</code> and <code>nolink</code> are incompatible: <code><nowiki>{{NBA Year|1999|start|nolink=y}}</nowiki></code> → {{NBA Year|1999|start|nolink=y}}
* <code>start</code>/<code>end</code> and <code>nolink</code> are incompatible: <code><nowiki>{{NBA Year|1999|start|nolink=y}}</nowiki></code> → {{NBA Year|1999|start|nolink=y}}
* <code>trunc</code> is useless for years other than 1999: <code><nowiki>{{NBA Year|1998|trunc=y}}</nowiki></code> → {{NBA Year|1998|trunc=y}}
* <code>trunc</code> is useless for years other than 1999: <code><nowiki>{{NBA Year|1998|trunc=y}}</nowiki></code> → {{NBA Year|1998|trunc=y}}
* <code>full</code> is useless for 1999: <code><nowiki>{{NBA Year|1999|full=y}}</nowiki></code> → {{NBA Year|1999|full=y}}
* <code>full</code> is useless for 1999: <code><nowiki>{{NBA Year|1999|full=y}}</nowiki></code> → {{NBA Year|1999|full=y}}<includeonly>
[[Kategorija:Basketbola veidnes]]

<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Basketbola veidnes]]

[[en:Template:NBA Year]]
[[ml:ഫലകം:Nbay]]
[[mn:Загвар:НБА-гийн он дараалал]]
[[zh:Template:NBA Year]]
</includeonly>
</includeonly>

Pašreizējā versija, 2015. gada 18. aprīlis, plkst. 12.02

Named parameters

[labot pirmkodu]
app
Text to be appended after the year, with a space in between.

For the parameters below, passing in any non-empty text will produce the same result, so as a matter of style, only pass in "y" (without quotes).

nolink
Text must not be linked.
full
Text must be in "yyyy—yyyy" format.
trunc
The 1999—2000 season is to be displayed as "1999—00" instead of "1999—2000".
baa
The link target should direct to a BAA season article.

Examples

[labot pirmkodu]


  • {{NBA Year|1998}}1998—1999
  • {{NBA Year|1998|full=y}}1998—1999
  • {{NBA Year|1998|full=y|nolink=y}} → 1998—1999


Bad examples

[labot pirmkodu]
  • For style, only pass in "y" for the optional parameters: {{NBA Year|1999|nolink=NO}} → 1999—2000
  • full and trunc conflict: {{NBA Year|1999|full=y|trunc=y}}1999—2000
  • start/end and nolink are incompatible: {{NBA Year|1999|start|nolink=y}} → 1999—2000
  • trunc is useless for years other than 1999: {{NBA Year|1998|trunc=y}}1998—1999
  • full is useless for 1999: {{NBA Year|1999|full=y}}1999—2000