Jump to content
Main menu
Main menu
move to sidebar
hide
Getting around
Main page
Simple start
Simple talk
New changes
Show any page
Help
Contact us
About Wikipedia
Search
Search
Appearance
Give to Wikipedia
Create account
Log in
Personal tools
Give to Wikipedia
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Contents
move to sidebar
hide
Beginning
1
Usage
2
Related pages
Toggle the table of contents
Template
:
If first display both
55 languages
العربية
تۆرکجه
Basa Bali
বাংলা
Banjar
閩南語 / Bân-lâm-gú
भोजपुरी
Čeština
Cymraeg
ދިވެހިބަސް
Ελληνικά
English
Español
فارسی
Gaelg
ગુજરાતી
한국어
हिन्दी
Ilokano
Bahasa Indonesia
IsiZulu
Kernowek
Kurdî
Latviešu
Lietuvių
मैथिली
Македонски
മലയാളം
मराठी
مصرى
Bahasa Melayu
မြန်မာဘာသာ
日本語
Norsk bokmål
ଓଡ଼ିଆ
Oʻzbekcha / ўзбекча
ਪੰਜਾਬੀ
ភាសាខ្មែរ
Português
Scots
සිංහල
سنڌي
Slovenščina
کوردی
Српски / srpski
Tagalog
தமிழ்
Татарча / tatarça
ၽႃႇသႃႇတႆး
తెలుగు
ไทย
Türkçe
Tiếng Việt
粵語
中文
Change links
Template
Talk
English
Read
Change source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Change source
View history
General
What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Print/export
Download as PDF
Page for printing
In other projects
Wikimedia Commons
Wikidata item
Appearance
move to sidebar
hide
From Simple English Wikipedia, the free encyclopedia
Template documentation
[
view
] [
edit
] [
history
] [
purge
]
Usage
[
change source
]
{{If first display both|1|2}}
If 1 is set, then 12 will be returned.
Related pages
[
change source
]
{{
If last display both
}}
The
documentation
on top is
transcluded
from
Template:If first display both/doc
.
(
edit
|
history
)
Editors can experiment in this template's sandbox
(
create
|
mirror
)
and testcases
(
create
)
pages.
Add categories to the
/doc
subpage.
Subpages of this template
.
Category
:
If-then-else templates