විකිපීඩියා:WikiProject Infoboxes/embed
මෙම පිටුව ඉංග්රීසි ව්යාපෘතියෙන් මෙහි ගෙනවිත් ඇත. අන්තර්ගතය අපගේ ව්යාපෘතිය සමඟ 100% නොගැලපෙනමුත් අපගේ අවශ්යතාවයන් වලට අනුකූලව ගොඩනගා ගැනීම සඳහා මූලික පියවර ලෙස භාවිතා කළ හැකිය. |
Many Infoboxes can take another template, including another infobox, as a module (or child-, or sub-template).
Inversely, some infoboxes can have other templates, and other templates, are configured so that they may be embedded as a "child" or "module" infobox within another.
When embedding a template it is usually necessary to set |embed=yes
(or |child=yes
) in the embedded (child) template.
The child template is entered as the value of a parameter in the parent, usually |module=
or |embedded=
.
Converting an Infobox
සංස්කරණයSir Fred Hoyle | |
---|---|
උපත | 24 ජුනි 1915 |
මියගිය දිනය | 20 August 2001 Bournemouth, England | (වයස 86)
ජාතිකත්වය | British |
දරුවන් |
|
උගත් ශාස්ත්රාලය | Emmanuel College, Cambridge |
ප්රසිද්ධව ඇත්තේ | |
සම්මාන |
|
Scientific career | |
ක්ෂේත්රය | Astronomy |
ආයතන | Institute of Astronomy, Cambridge |
Academic advisors |
|
ආචාර්ය සිසුන් | |
Other notable students | Paul C. W. Davies |
ආභාෂය ලැබුවේ |
In order to be configured for potential use as a module, an infobox must have a few adaptations, including modified styling, the suppression of the template's name display, and the addition of a subheading. Here is an example adaptation; results shown to the right; note the "Scientific career" subheading.
Infobox person
සංස්කරණය{{Infobox person}} can have another biographical infobox (or infoboxes - up to six slots are available) as a Module. Those available are listed in Category:Biographical templates usable as a module (NB may not yet be fully populated). See, for example, this edit using {{Infobox scientist}} as the child template (results shown alongside).
{{Infobox person}} can also take other child templates, for example, {{Listen}}. See this example.
Example edits
සංස්කරණයEmbedded infoboxes
සංස්කරණය- Instance of {{Infobox musical artist}} in {{Infobox person}}
Other embedded templates
සංස්කරණය- Instance of {{Listen}} (audio player) embedded in {{Infobox person}}
- Instance of {{Designation list}} in {{Infobox building}}