This template formats content for use in Portals in order to apply consistent styles. On Wikipedia, Portals give an overview of a topic. They are similar to the Main Page, but are focused on specific topics.
The template does not apply inline styles, but instead gives each element classes. These classes can then be styled from Cascading Styles Sheets (CSS) transcluded onto the Portal itself. This results in a consistent appearance.
The examples on this page are styled by Template:Portal content/styles.css, which is invoked (on this page) with <templatestylessrc="Template:Portal content/styles.css"/>. The simplest form of the template is: {{Portal content| title = Simple example | content = Some text goes here.}} This renders as:
This template is intended for use inside Portals. It provides a common HTML structure and class names. This allows different portals to share HTML structure and parameters and to optionally share styles. It also allows customization via CSS, per portal to change aspects like color. Because all styling is done via CSS, a portal can use this template with very different visual designs without changing any underlying wikitext. It allows styles to be changed across a portal without updating a multitude of subpages.
The |icon= parameter will place an icon before the title text. Omit the "File:" and give only the name. The example below are using File:Codex icon globe.svg.
Markup
Renders as
<syntaxhighlight lang="wikitext">
{{Portal content
| title = Example box
| content = Some text goes here.
| icon = Codex icon globe.svg
}}
</syntaxhighlight>
Earth has a dynamic atmosphere, which sustains Earth's surface conditions and protects it from most meteoroids and UV-light at entry. It is composed primarily of nitrogen and oxygen. Water vapor is widely present in the atmosphere, forming clouds that cover most of the planet. The water vapor acts as a greenhouse gas and, together with other greenhouse gases in the atmosphere, particularly carbon dioxide (CO2), creates the conditions for both liquid surface water and water vapor to persist via the capturing of energy from the Sun's light. This process maintains the current average surface temperature of 14.76°C (58.57°F), at which water is liquid under normal atmospheric pressure. Differences in the amount of captured energy between geographic regions (as with the equatorial region receiving more sunlight than the polar regions) drive atmospheric and ocean currents, producing a global climate system with different climate regions, and a range of weather phenomena such as precipitation, allowing components such as carbon and nitrogen to cycle.
Earth is rounded into an ellipsoid with a circumference of about 40,000 kilometres (24,900 miles). It is the densest planet in the Solar System. Of the four rocky planets, it is the largest and most massive. Earth is about eight light-minutes (1 AU) away from the Sun and orbits it, taking a year (about 365.25 days) to complete one revolution. Earth rotates around its own axis in slightly less than a day (in about 23 hours and 56 minutes). Earth's axis of rotation is tilted with respect to the perpendicular to its orbital plane around the Sun, producing seasons. Earth is orbited by one permanent natural satellite, the Moon, which orbits Earth at 384,400km (238,855mi)—1.28 light seconds—and is roughly a quarter as wide as Earth. The Moon's gravity helps stabilize Earth's axis, causes tides and gradually slows Earth's rotation. Likewise, Earth's gravitational pull has already made the Moon's rotation tidally locked, keeping the same near side facing Earth.
Science is a systematic discipline that builds and organises knowledge in the form of testable explanations about nature and society. It is driven by the scientific method: an empirical cycle that typically involves making observations, producing hypotheses, testing them with evidence, and drawing conclusions. Science encompasses this process and the body of knowledge it produces, which the scientific community continuously challenges, validates, and organises.
Modern science is typically divided into two–or three–major branches: the natural sciences, which study the physical world, and the social sciences, which study individuals and societies. While referred to as the formal sciences, the study of logic, mathematics, and theoretical computer science are typically regarded as separate because they rely on deductive reasoning instead of the scientific method as their main methodology. Meanwhile, applied sciences are disciplines that use scientific knowledge for practical purposes, such as engineering and medicine.
The recovery and assimilation of Greek works and Islamic inquiries into Western Europe during the Renaissance revived natural philosophy, which was later transformed by the Scientific Revolution that began in the 16th century as new ideas and discoveries departed from previous Greek conceptions and traditions. The scientific method soon played a greater role in the acquisition of knowledge, and in the 19th century, many of the institutional and professional features of science began to take shape, along with the changing of "natural philosophy" to "natural science".
New knowledge in science is advanced by research from scientists who are motivated by curiosity about the world and a desire to solve problems. Contemporary scientific research is often highly collaborative and is frequently carried out by teams in academic and research institutions, government agencies, and companies. At the same time, many major advances—particularly in fundamental science—have come from individual researchers and are widely recognised through major international awards such as the Nobel Prize. The practical results of scientific work have led to the emergence of science policies that seek to prioritise the responsible development of commercial products, health care, public infrastructure, environmental protection, and defense capabilities. (Full article...)
Living things are composed of biochemical molecules, formed mainly from a few core chemical elements. All living things contain two types of macromolecule, proteins and nucleic acids, the latter usually both DNA and RNA: these carry the information needed by each species, including the instructions to make each type of protein. The proteins, in turn, serve as the machinery which carries out the many chemical processes of life. The cell is the structural and functional unit of life. Smaller organisms, including prokaryotes (bacteria and archaea), consist of small single cells. Larger organisms, mainly eukaryotes, can consist of single cells or may be multicellular with more complex structure. Life is only known to exist on Earth but extraterrestrial life is thought probable. Artificial life is being simulated and explored by scientists and engineers. (Full article...)
Image 4
The arts, or creative arts, are a vast range of human practices involving creative expression, storytelling, and cultural participation. The arts encompass diverse and plural modes of thought, deeds, and existence in an extensive range of media. Both a dynamic and characteristically constant feature of human life, the arts have developed into increasingly stylized and intricate forms. This is achieved through sustained and deliberate study, training, or theorizing within a particular tradition, generations, and even between civilizations. The arts are a medium through which humans cultivate distinct social, cultural, and individual identities while transmitting values, impressions, judgments, ideas, visions, spiritual meanings, patterns of life, and experiences across time and space.
The arts can refer to common, popular, or everyday practices as well as more sophisticated, systematic, or institutionalized ones. They can be discrete and self-contained or combine and interweave with other art forms, such as combining artwork with the written word in comics. Art forms can also develop or contribute to aspects of more complex art forms, as in cinematography. By definition, the arts themselves are open to being continually redefined. The practice of modern art, for example, is a testament to the shifting boundaries, improvisation and experimentation, reflexive nature, and self-criticism or questioning that art and its conditions of production, reception, and possibility can undergo.
As both a means of developing capacities of attention and sensitivity and ends in themselves (art for art's sake), the arts can be a form of response to the world. It is a way to transform human responses and what humans deem worthwhile goals or pursuits. From prehistoric cave paintings during the Upper Palaeolithic, to ancient and contemporary forms of rituals, to modern-day films, the arts have registered, embodied, and preserved the ever-shifting relationships of humans with each other and the world. (Full article...)
Image 5
Homo sapiens population density (2020)
Humans (Homo sapiens, meaning 'thinking man' or 'wise man') are the most abundant and widespread species of primates, characterized by bipedality, minimal body hair, and large, complex brains enabling the development of advanced technology, culture, and language. Humans are highly social beings and tend to live in complex social structures composed of many cooperating and competing groups, from families and kinship networks to political states. Social interactions between humans have established a wide variety of values, social norms, and rituals, which bolster human society. Curiosity and the human desire to understand and influence the environment have motivated humanity's development of science, philosophy, religion, mythology and other fields of knowledge.
Humans, as well as other homo species, are omnivorous, capable of consuming a wide variety of plant and animal material, and have used fire to prepare and cook food. They can survive for up to eight weeks without food, and three or four days without water. Humans are generally diurnal, sleeping on average seven to nine hours per day. Childbirth is dangerous, with a high risk of complications and death. Both the mother and the father typically provide care for human offspring, who are helpless at birth.
Genes and the environment influence human biological variation in appearance, physiology, immune system, mental abilities, body size and lifespan. Though humans vary in many traits, any two humans are on average over 99% genetically similar, with the most genetically diverse populations from Africa. The greatest degree of genetic variation exists between males and females. On average, males have greater body strength and females generally have a higher body fat percentage. Females undergo menopause and become infertile potentially decades before the end of their lives. They also have a longer life span in almost every population around the world. The division into male and female gender roles has varied historically, and challenges to predominant gender norms have recurred in many societies.
Philosophy (from Ancient Greekphilosophía lit.'love of wisdom') is a systematic study of general and fundamental questions concerning topics like existence, knowledge, mind, reason, language, and value. It is a rational and critical inquiry that reflects on its methods and assumptions.
Historically, many of the individual sciences, such as physics and psychology, formed part of philosophy. However, they are considered separate academic disciplines in the modern sense of the term. Influential traditions in the history of philosophy include Western, Arabic–Persian, Indian, and Chinese philosophy. Western philosophy originated in Ancient Greece and covers a wide area of philosophical subfields. A central topic in Arabic–Persian philosophy is the relation between reason and revelation. Indian philosophy combines the spiritual problem of how to reach enlightenment with the exploration of the nature of reality and the ways of arriving at knowledge. Chinese philosophy focuses principally on practical issues about right social conduct, government, and self-cultivation.
The study of human history relies on insights from academic disciplines such as history, archaeology, anthropology, linguistics, and genetics. To provide an accessible overview, researchers divide human history by a variety of periodizations. (Full article...)
Technological advancements have led to significant changes in society. The earliest known technology is the stone tool, used during prehistory, followed by the control of fire—which in turn contributed to the growth of the human brain and the development of language during the Ice Age, according to the cooking hypothesis. The invention of the wheel in the Bronze Age allowed greater travel and the creation of more complex machines. More recent technological inventions, including the printing press, telephone, and the Internet, have lowered barriers to communication and ushered in the knowledge economy.
Mathematics is a field of knowledge concerned with abstract concepts such as numbers, geometric shapes, sets, functions, and probabilities. It uses logical reasoning and proof to study and establish their properties, often expressed as theorems, formulas, and equations. Mathematics is used to model and solve problems in science, engineering, technology, economics, and everyday life.
There are many areas of mathematics, including number theory (the study of integers and their properties), algebra (the study of operations and the structures they form), geometry (the study of shapes and spaces that contain them), analysis (the study of approximating continuous changes), and set theory (presently used as a foundation for all mathematics).
Mathematics involves the description and manipulation of abstract objects that are either abstractions from nature or purely abstract entities that are stipulated to have certain properties, called axioms. Mathematics uses pure reason to prove the properties of objects through proofs, which consist of a succession of applications of deductive rules to already established results. These results, called theorems, include previously proved theorems, axioms, and—in case of abstraction from nature—some basic properties that are considered true starting points of the theory under consideration.
Mathematics is essential in the natural sciences, engineering, medicine, finance, computer science, and the social sciences. Although mathematics is widely used to model empirical phenomena, its results are established by deductive proof rather than by experiment. The relationship between mathematical truth, logic, and reality is a subject of philosophical debate. Some areas of mathematics, such as game theory, are developed in close correlation with their applications and are often grouped under applied mathematics. Other areas are developed independently from any application but often find practical applications later.
A society is a group of individuals involved in persistent social interaction or a large social group sharing the same spatial or social territory, typically subject to the same political authority and dominant cultural expectations. Societies are characterized by patterns of relationships (social relations) between individuals who share a distinctive culture and institutions; a given society may be described as the sum total of such relationships among its constituent members.
Human social structures are complex and highly cooperative, featuring the specialization of labor via social roles. Societies construct roles and other patterns of behavior by deeming certain actions or concepts acceptable or unacceptable—these expectations around behavior within a given society are known as societal norms. So far as it is collaborative, a society can enable its members to benefit in ways that would otherwise be difficult on an individual basis.
Societies vary based on level of technology and type of economic activity. Larger societies with larger food surpluses often exhibit stratification or dominance patterns. Societies can have many different forms of government, various ways of understanding kinship, and different gender roles. Human behavior varies immensely between different societies; humans shape society, but society in turn shapes human beings. (Full article...)
CSS handles all styling in this template. The {{portal content}} template just defines the layout; it only supplies a consistent HTML structure and class names (such as .portal-content-box and .portal-content-box-title-text). You have several options to override the CSS per portal. First, you will need to transclude CSS to the portal via TemplateStyles. This page uses Template:Portal content/example/styles.css with:
The TemplateStyles CSS can target the HTML in several ways:
Wrap the portal in a portal-specific div element like, <div class="portal-example-wrapper">. You can then use that class for descendant and child selectors.
Override the classes with CSS for the portal using "!important". The default CSS will not use important for any styles.
Apply a class using the |class= parameter to style only selected boxes, rather than every box on the portal. The examples below use this method to avoid having a custom style apply to all boxes on this page.
Use a completely custom CSS page. You can even copy the example CSS as a starting point, but not use any of the style.
In the example below, a custom class is added to one box. The CSS only targets the underline color using a descendant combinator:
/* Example no. 1 */.portal-content-css-example-no-1.portal-content-box-title-text{border-bottom-color:#800080!important;}
Markup
Renders as
<syntaxhighlight lang="wikitext">
{{Portal content
| title = CSS Example no. 1
| content = Some text goes here.
| class = portal-content-css-example-no-1
}}
</syntaxhighlight>
The example below customizes two elements and includes CSS to handle dark mode because it is changing the background color. (Whenever a customization changes background colors, portals should include equivalent dark-mode rules.)
/* Example no. 2 */.portal-content-css-example-no-2.portal-content-box{background-color:#fef6e7;border-color:#fef6e7;}.portal-content-css-example-no-2.portal-content-box-title-text{border-bottom-color:#fc3;}/* Dark mode for example no. 2 */@mediascreen{html.skin-theme-clientpref-night.portal-content-css-example-no-2.portal-content-box{background-color:#2a1b00;border-color:#2a1b00;}}@mediascreenand(prefers-color-scheme:dark){html.skin-theme-clientpref-os.portal-content-css-example-no-2.portal-content-box{background-color:#2a1b00;border-color:#2a1b00;}}
This changes the background and border on the surround div box. And also changes the underline color. It does not affect the internal structure of the template.
Markup
Renders as
<syntaxhighlight lang="wikitext">
{{Portal content
| title = CSS Example no. 2
| content = Some text goes here.
| class = portal-content-css-example-no-2
}}
</syntaxhighlight>
The template doesn't require usage of the default stylesheet at all. The pages below each use the same exact testcases but style them with completely separate stylesheets.