Template:Offsetable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
({{{offset}}})
 
m (Protected "Template:Offsetable" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch:{{{offset|0}}}
{{Doc}}
 
<includeonly>
 
<onlyinclude>{{#switch:{{{offset|0}}}
| 0        =
| 0        =
| 1        = margin-left: 2rem !important;
| 1        = margin-left: 2rem !important;
Line 12: Line 16:
| 10      = margin-left: 20rem !important;
| 10      = margin-left: 20rem !important;
| #default = margin-left: 0rem !important;
| #default = margin-left: 0rem !important;
}}<!--offset-->
}}</onlyinclude>
 
<includeonly>

Latest revision as of 13:18, 5 April 2025

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Example

For the root template:

style="{{Offsetable|offset={{{offset|0}}}}}

For all users (callers):

| offset = {{{offset|0}}}

Usage