Mall:0: Skillnad mellan sidversioner

Från Järnvägsdata
(Skapade sidan med '<includeonly><span style="visibility:hidden;color:transparent;">{{{1|0}}}</span></includeonly><noinclude> Sätter in en visibility:hidden och color:transparent (d.v.s. osynlig...')
m (1 version importerades)
 
(4 mellanliggande sidversioner av 2 användare visas inte)
Rad 1: Rad 1:
<includeonly><span style="visibility:hidden;color:transparent;">{{{1|0}}}</span></includeonly><noinclude>
<span style="visibility:hidden; color:transparent;">{{{1|0}}}</span><noinclude>
Sätter in en visibility:hidden och color:transparent (d.v.s. osynlig) nolla. Används som utfyllnad för att få exempelvis tabeller snygga.


[[Kategori:Layoutmallar|*]]
{{Heavily used template}}
 
----
Inserts a visibility:hidden and color:transparent (i.e. invisible) zero (0) character. It is used for padding statistics and other numbers in table columns so that they line up properly.
* The invisible zero may be replaced by specifying the first optional parameter (useful to make numeric columns in tables sortable).
 
====Example====
{| cellpadding="6"
!Input:!!Output:
|-
|<nowiki>{{0|00,0}}12{{0|.00}} km<br /></nowiki><br><nowiki>{{0|00,}}123.4{{0|0}} km<br /></nowiki><br><nowiki>{{0|0}}1,234.5{{0|0}} km<br /></nowiki><br><nowiki>12,345.67 km<br /></nowiki>
|{{0|00,0}}12{{0|.00}} km<br>{{0|00,}}123.4{{0|0}} km<br>{{0|0}}1,234.5{{0|0}} km<br>12,345.67 km
|}
 
<!--
''Input:''<br />
<pre>
{{0|00,0}}12{{0|.00}} km<br />
{{0|00,}}123.4{{0|0}} km<br />
{{0|0}}1,234.5{{0|0}} km<br />
12,345.67 km<br />
</pre>
''Output:''<br />
{{0|00,0}}12{{0|.00}} km<br />
{{0|00,}}123.4{{0|0}} km<br />
{{0|0}}1,234.5{{0|0}} km<br />
12,345.67 km<br />    -->
 
[[Category:Formatting templates|{{PAGENAME}}]]
[[Category:Function templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Nuvarande version från 5 januari 2021 kl. 08.12

0

Mall:Heavily used template


Inserts a visibility:hidden and color:transparent (i.e. invisible) zero (0) character. It is used for padding statistics and other numbers in table columns so that they line up properly.

  • The invisible zero may be replaced by specifying the first optional parameter (useful to make numeric columns in tables sortable).

Example

Input: Output:
{{0|00,0}}12{{0|.00}} km<br />
{{0|00,}}123.4{{0|0}} km<br />
{{0|0}}1,234.5{{0|0}} km<br />
12,345.67 km<br />
00,012.00 km
00,123.40 km
01,234.50 km
12,345.67 km