پرش به محتوا

الگو:Periodic table (documentation for wide table templates)

از ویکی‌پدیا، دانشنامهٔ آزاد

Wide table templates

[ویرایش]


Some periodic tables are too wide for a regular Wikipedia page. See for example {{Periodic table (extended, large)}}. The effect is that that the table runs off of the page background (and possibly off your screen). This can be prevented by zooming out in your browser. However, the table then may become illegible. Also, this is user-dependent, which is not a stable way to present a page.

Horizontal slidebar

An option to help the user in that situation is to use the {{Wide template}}. This is a Wikipedia feature that limits the view nicely to the page width, and adds a scrollbar below the table. This way the user can scroll horizontally through the table, while the view (window) of the table is within the page.

Example

This example uses a wide table template. First there is the table template as it is:
Without: {{Periodic table (Aufbau principle model)}}

Period 8 in the periodic table based on the اصل آفبا model
Period 8 119
آن‌ان‌نیوم
120
Ubn
121
Ubu
122
Ubb
123
Ubt
124
Ubq
125
Ubp
126
Ubh
127
Ubs
128
Ubo
129
Ube
130
Utn
131
Utu
132
Utb
133
Utt
134
Utq
135
Utp
136
Uth
137
Uts
138
Uto
139
Ute
140
Uqn
141
Uqu
142
Uqb
143
Uqt
144
Uqq
145
Uqp
146
Uqh
147
Uqs
148
Uqo
149
Uqe
150
Upn
151
Upu
152
Upb
153
Upt
154
Upq
155
Upp
156
Uph
157
Ups
158
Upo
159
Upe
160
Uhn
161
Uhu
162
Uhb
163
Uht
164
Uhq
165
Uhp
166
Uhh
167
Uhs
168
Uho
  s-block g-block f-block d-block p-block

The same template, now using the Wide template:
With: {{Wide template|Periodic table (Aufbau principle model)}}

Period 8 in the periodic table based on the اصل آفبا model
Period 8 119
آن‌ان‌نیوم
120
Ubn
121
Ubu
122
Ubb
123
Ubt
124
Ubq
125
Ubp
126
Ubh
127
Ubs
128
Ubo
129
Ube
130
Utn
131
Utu
132
Utb
133
Utt
134
Utq
135
Utp
136
Uth
137
Uts
138
Uto
139
Ute
140
Uqn
141
Uqu
142
Uqb
143
Uqt
144
Uqq
145
Uqp
146
Uqh
147
Uqs
148
Uqo
149
Uqe
150
Upn
151
Upu
152
Upb
153
Upt
154
Upq
155
Upp
156
Uph
157
Ups
158
Upo
159
Upe
160
Uhn
161
Uhu
162
Uhb
163
Uht
164
Uhq
165
Uhp
166
Uhh
167
Uhs
168
Uho
  s-block g-block f-block d-block p-block

Notes:

  1. Our template name is feeded as a parameter to the enveloping {{Wide template}}.
  2. The scrollbar only appears when the table is too wide in the actual user situation, so when users with a wide screen don't need the slidebar and will not see it.
Legend

Some wide periodic tables have the option to separate the legend from the template:

  • {{Periodic table (extended)|legend=yes}} or
  • {{Periodic table (extended)|legend=no}} (default)

Using this in wide templates, the wide table gets the slidebar, but the legend can be on the regular page below it, not sliding. See for example Extended periodic table. In code, this is done:

  • {{Wide template|Periodic table (extended)}}{{Element color legend/spdfg blocks}}

So when using these wide templates, the legend is to be added separately or the option must be set to {{{1}}}.

List of wide tables
Periodic tables in wide templates Usage: {{Wide template|(template name)}}
Template Option
separate
legend?
Legend name
{{Periodic table (atomic weight)}} Yes {{Periodic tables key|series}}
{{Periodic table (Aufbau principle model)}} No Has no legend
{{Periodic table (extended)}} Yes {{Element color legend/spdfg blocks}}
{{Periodic table (extended, large)}} Yes {{Periodic table key|1=categories including superactinides}}
{{Periodic table (large version)}} Yes {{Periodic table key|1=series}}
{{Periodic table (Pyykkö model)}} No Has no legend
{{Periodic table (Pyykkö model, large)}} Yes {{Periodic table key|1=categories including superactinides}}
{{Periodic table (superactinides)}} No Has no legend
{{Periodic table (superactinides, by Pyykkö)}} No Has no legend
{{Periodic table (wide)}} No * "wide" here refers to table layout (f-group is inline)
{{Periodic table (wide large)}} Yes {{Periodic table key|1=series}}
  • "wide" here refers to table layout (f-group is inline)
{{Periodic table (text only)}} No Has no legend
{{Periodic table (period 7)}} No

(End of documentation template here)

See also

[ویرایش]