Template:Navigazione anno: differenze tra le versioni
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
| (21 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" | <small>'''[[List of centuries|Centuries]]:''' </small> |
|||
| 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 + 1}}}} secolo]]''' -<!-- |
||
--> [[{{ |
--> [[{{Roman|{{#expr: (({{{1|888}}} - 1) - (({{{1|888}}} - 1) mod 100))/100 + 2}}}} secolo]] |
||
|- |
|- |
||
| align="right" | |
| align="right" | |
||
| align="center" | <small> <!-- |
| align="center" | <small> <!-- |
||
--> [[{{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) - 30}} |
--> [[anni {{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) - 30}}]] <!-- |
||
--> [[{{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) - 20}} |
--> [[anni {{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) - 20}}]] <!-- |
||
--> [[{{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) - 10}} |
--> [[anni {{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) - 10}}]] <!-- |
||
--> - [[{{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10))}} |
--> - [[anni {{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10))}}]] -<!-- |
||
--> [[{{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) + 10}} |
--> [[anni {{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) + 10}}]]<!-- |
||
--> [[{{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) + 20}} |
--> [[anni {{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) + 20}}]]<!-- |
||
--> [[{{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) + 30}} |
--> [[anni {{#expr: ({{{1|888}}} - ({{{1|888}}} mod 10)) + 30}}]] |
||
</small> |
</small> |
||
|- |
|- |
||
| align="right" | |
| align="right" | |
||
| align="center" | <!-- |
| align="center" | <!-- |
||
--> [[{{#expr: {{{1|888}}} - 3}}]]<!-- |
--> [[{{#expr: {{{1|888}}} - 3}}]]<!-- |
||
| 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> |
||