Template:Navigazione anno: differenze tra le versioni
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
| (13 versioni intermedie di uno stesso utente non sono mostrate) | |||
| Riga 3: | Riga 3: | ||
--------------- |
--------------- |
||
--> |
--> |
||
{| class="infobox" style="text-align: center;" |
{| class="infobox" align="center" width="100%" style="text-align: center;" |
||
| align="right" | |
| align="right" | |
||
| align="center" | <!-- |
| align="center" | <!-- |
||
--> [[{{Roman|{{#expr: (({{{1|888}}} - 1) - (({{{1|888}}} - 1) mod 100))/100}}}} secolo]]<!-- |
--> [[{{Roman|{{#expr: (({{{1|888}}} - 1) - (({{{1|888}}} - 1) mod 100))/100}}}} secolo]]<!-- |
||
--> - '''[[{{ |
--> - '''[[{{Roman|{{#expr: (({{{1|888}}} - 1) - (({{{1|888}}} - 1) mod 100))/100 + 1}}}} secolo]]''' -<!-- |
||
--> [[{{ |
--> [[{{Roman|{{#expr: (({{{1|888}}} - 1) - (({{{1|888}}} - 1) mod 100))/100 + 2}}}} secolo]] |
||
|- |
|- |
||
| align="right" | |
| align="right" | |
||
| Riga 30: | Riga 31: | ||
--> [[{{#expr: {{{1|888}}} + 2}}]]<!-- |
--> [[{{#expr: {{{1|888}}} + 2}}]]<!-- |
||
--> [[{{#expr: {{{1|888}}} + 3}}]] |
--> [[{{#expr: {{{1|888}}} + 3}}]] |
||
|} |
|||
|}<noinclude> |
|||
<!------------------------------------ (non-included section below) |
|||
NOTES: |
|||
- This template uses expressions (#expr) to calculate centuries, |
|||
decades, and year numbers surrounding the year parameter. |
|||
- Negative numbers are passed through, not as "BC" but negative. |
|||
- Variables are not used, as they were not a supported feature |
|||
(when this template was created), so calculations are made twice, |
|||
as needed to determine results. |
|||
------------------------------------- --> |
|||
==Result== |
|||
: Live result for default year "888" at right: |
|||
==Usage== |
|||
Takes one parameter, the year-number (year 101 or higher).<br> |
|||
The box width shrinks nearly 6% for smaller year-number sizes. |
|||
:<code><nowiki>Example for "{{Navigazione anno|1970}}" at right:</nowiki></code> |
|||
{{Navigazione anno|1970}} |
|||
{{-}} |
|||
:<code><nowiki>Example for "{{Navigazione anno|101}}" at right:</nowiki></code> |
|||
{{Navigazione anno|101}} |
|||
{{-}} |
|||
:<code><nowiki>Example for "{{Navigazione anno|100}}" [invalid] at right:</nowiki></code> |
|||
{{Navigazione anno|100}} |
|||
:: Use other tables to handle year 100 or below. |
|||
</noinclude> |
|||
<includeonly> |
|||
<noinclude> |
|||
[[Categoria: |
[[Categoria:Anni del {{{2}}} secolo| {{{3}}}]] |
||
</ |
</includeonly> |
||