Difference between revisions of "Template:Infobox deity/sandbox"
imported>Capankajsmilyo (+) |
imported>Uzume (Module:WikidataIB remove usage of deprecated "getPreferredValue") |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| − | | abovestyle = | + | | abovestyle = {{Infobox deity/color|{{{type}}}}} |
| − | | headerstyle = | + | | headerstyle = {{Infobox deity/color|{{{type}}}}} |
| above = {{{name|{{{Name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}} | | above = {{{name|{{{Name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}} | ||
| − | | subheader = {{#if:{{{deity_of|{{{god_of|{{{alusi_of|}}}}}}}}}| | + | | subheader = {{#if:{{{deity_of|{{{god_of|{{{alusi_of|}}}}}}}}}|<div style="font-size: 110%;">{{{deity_of|{{{god_of|{{{alusi_of|}}}}}}}}}</div> }} |
| subheader2 = {{#if:{{{member_of|}}}|Member of {{{member_of}}}}} | | subheader2 = {{#if:{{{member_of|}}}|Member of {{{member_of}}}}} | ||
| + | | decat = {{#if:{{{deity_of|}}}{{{god_of|}}}{{{alusi_of|}}}|yes|no}} <!-- avoid populating "no data rows" --> | ||
| − | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB | | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes| maxvals=1|{{{image|}}}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} |
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| Line 141: | Line 142: | ||
| label40 = Born | | label40 = Born | ||
| − | | data40 = {{Br separated entries|1={{#if:{{{birth_name|{{{birthname|}}}}}}|< | + | | data40 = {{Br separated entries|1={{#if:{{{birth_name|{{{birthname|}}}}}}|<div style="display:inline;" class="nickname">{{{birth_name|{{{birthname|}}}}}}</div>}}|2={{{birth_date|}}}|3={{#if:{{{birth_place|}}}|<div style="display:inline;" class="birthplace">{{{birth_place|}}}</div>}}}} |
| label41 = Died | | label41 = Died | ||
| data41 = {{#if:{{{death_date|}}}{{{death_place|}}} | | data41 = {{#if:{{{death_date|}}}{{{death_place|}}} | ||
| − | |{{Br separated entries|1={{{death_date|}}}|2={{#if:{{{death_place|}}}|< | + | |{{Br separated entries|1={{{death_date|}}}|2={{#if:{{{death_place|}}}|<div style="display:inline;" class="deathplace">{{{death_place|}}}</div>}}}} |
| − | |{{Br separated entries|1={{{moksha_date|}}}|2={{#if:{{{moksha_place|}}}|< | + | |{{Br separated entries|1={{{moksha_date|}}}|2={{#if:{{{moksha_place|}}}|<div style="display:inline;" class="deathplace">{{{moksha_place|}}}</div>}}}} |
}} | }} | ||
| − | | label42 | + | | label42 = Parents |
| − | + | | data42 = {{#if:{{{parents|}}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
|{{{parents|}}} | |{{{parents|}}} | ||
|{{unbulleted list | |{{unbulleted list | ||
| Line 164: | Line 159: | ||
}} | }} | ||
| − | | label45 = | + | | label43 = Siblings |
| − | | data45 = {{{ | + | | data43 = {{{siblings|}}} |
| + | |||
| + | | label44 = {{#if:{{{consort|}}}|Consort|{{#if:{{{consorts|}}}|Consorts|Spouse}}}} | ||
| + | | data44 = {{if empty| {{{consort|}}} | {{{consorts|}}} | {{{spouse|}}} }} | ||
| + | |||
| + | | label45 = {{#if:{{{offspring|}}}|Offspring|Children}} | ||
| + | | data45 = {{if empty|{{{offspring|}}} | {{{children|}}} }} | ||
| label46 = Dynasty | | label46 = Dynasty | ||
| Line 202: | Line 203: | ||
| data57 = {{#if:{{{equivalent2_type|}}}|{{{equivalent2|}}}}} | | data57 = {{#if:{{{equivalent2_type|}}}|{{{equivalent2|}}}}} | ||
| − | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox deity with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox deity]] with unknown parameter "_VALUE_" | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox deity with unknown parameters|_VALUE_{{PAGENAME}}]]}}|ignoreblank=y|preview=Page using [[Template:Infobox deity]] with unknown parameter "_VALUE_" |
| − | | abode | abodes | adherents | affiliation | age | alt | alusi_of | animals | army | artefacts | artifacts | associate | battles | birth_date | birth_name | birth_place | birthname | Canaanite_equivalent | canaanite_equivalent | caption | children | Christian_equivalent | christian_equivalent | color | colour | complexion | consort | consorts | cult_center | cult_centre | day | death_date | death_place | deity_of | Devanagari | devanagari | dynasty | ethnic_group | Etruscan_equivalent | etruscan_equivalent | equivalent1 | equivalent1_type | equivalent2 | equivalent2_type | father | festivals | gender | god_of | Greek_equivalent | greek_equivalent | height | Hinduism_equivalent | hinduism_equivalent | Hiro | hiro | image | image_upright | + | | abode | abodes | adherents | affiliation | age | alt | alusi_of | animals | army | artefacts | artifacts | associate | battles | birth_date | birth_name | birth_place | birthname | Canaanite_equivalent | canaanite_equivalent | caption | children | Christian_equivalent | christian_equivalent | color | colour | complexion | consort | consorts | cult_center | cult_centre | day | death_date | death_place | deity_of | Devanagari | devanagari | dynasty | ethnic_group | Etruscan_equivalent | etruscan_equivalent | equivalent1 | equivalent1_type | equivalent2 | equivalent2_type | father | festivals | gender | god_of | Greek_equivalent | greek_equivalent | height | Hinduism_equivalent | hinduism_equivalent | Hiro | hiro | image | image_upright | mantra | member_of | moksha_date | moksha_place | mother | mount | name | Norse_equivalent | norse_equivalent | number | offspring | Old_Norse | old_norse | other_names | parents | planet | predecessor | region | Roman_equivalent | roman_equivalent | Sanskrit_transliteration | sanskrit_transliteration | script | script_name | siblings | Slavic_equivalent | slavic_equivalent | spouse | successor | symbol | symbols | temple | temples | texts | tree | type | venerated_in | weapon | weapons | world |
| − | }}{{#if:{{{type|}}}||[[Category:Pages using infobox deity without type param]]}}{{#if:{{{color|}}}{{{colour|}}}|[[Category:Pages using infobox deity with color param]]}}<includeonly>{{#ifeq:{{{child|}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly><noinclude> | + | }}{{#if:{{{type|}}}||[[Category:Pages using infobox deity without type param]]}}{{#if:{{{color|}}}{{{colour|}}}|[[Category:Pages using infobox deity with color param]]}}<includeonly>{{#ifeq:{{{child|}}}|yes||{{Wikidata image|1={{{image|}}}|2={{{nocat_wdimage|}}}}}}}</includeonly>{{compare|local={{{image|}}}}}<noinclude> |
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> | ||
Latest revision as of 16:03, 13 September 2020
| Affiliation | Script error: No such module "If empty". |
|---|---|
| Abodes | Script error: No such module "If empty". |
| World | Script error: No such module "If empty". |
| Weapons | Script error: No such module "If empty". |
| Artifacts | Script error: No such module "If empty". |
| Symbols | Script error: No such module "If empty". |
| Color | Script error: No such module "If empty". |
| Temple | Script error: No such module "If empty". |
| Spouse | Script error: No such module "If empty". |
| Children | Script error: No such module "If empty". |
| 50px | This is the template sandbox page for Template:Infobox deity (diff). |
| 30px | This template uses Lua: |
The template can be used for any god, deity or mythological figure who is worshiped in a religion or cult. For other mythological figures, please consider other templates like Template:Infobox character.
All fields
Template:Parameter names example
{{Infobox deity
| type =
| name =
| deity_of = <!-- or god_of / Alusi_of -->
| member_of =
| image =
| alt = <!-- for alternate text of the title image per [[WP:ALT]] -->
| caption =
| other_names =
| hiro =
| avatar_birth =
| avatar_end =
| Old_Norse =
| script_name =
| script =
| affiliation = <!-- or | associate = -->
| cult_center = <!-- or | cult_centre = -->
| abode = <!-- or | abodes = -->
| planet = <!-- or | world = -->
| mantra =
| mantra benefits =
| weapon = <!-- or | weapons = -->
| battles =
| artifacts = <!-- or | artefacts = -->
| animals =
| symbol = <!-- or | symbols = -->
| adherents =
| height =
| age =
| tree =
| day =
| color = <!-- or | colour = -->
| number =
| consort = <!-- or | consorts = -->
| parents =
| siblings =
| offspring = <!-- or | children = -->
| predecessor =
| successor =
| army =
| mount =
| texts =
| gender =
| Greek_equivalent =
| Roman_equivalent =
| Etruscan_equivalent =
| Christian_equivalent =
| Islamic_equivalent =
| Sanamahism_equivalent =
| Slavic_equivalent =
| Hinduism_equivalent =
| Canaanite_equivalent =
| equivalent1_type =
| equivalent1 =
| equivalent2_type =
| equivalent2 =
| region =
| ethnic_group =
| festivals =
| nirvana =
}}
Examples
Template:Wikidata image{{Infobox deity<!--Wikipedia:WikiProject Hindu mythology-->
| type = Hindu
| name = Ganesha
| gender = Male
| father = [[Shiva]]
| mother = [[Parvati]]
| siblings = [[Kartikeya]] and [[Ashokasundari]]
| deity_of = {{ubl
|God of New Beginnings, Success and Wisdom
|Remover of Obstacles}}
| image = Ganesha Basohli miniature circa 1730 Dubost p73.jpg
| caption = [[Basohli]] miniature, c. 1730. [[National Museum, New Delhi]].
| alt = Attired in an orange dhoti, an elephant-headed man sits on a large lotus. His body is red in colour and he wears various golden necklaces and bracelets and a snake around his neck. On the three points of his crown, budding lotuses have been fixed. He holds in his two right hands the rosary (lower hand) and a cup filled with three modakas (round yellow sweets), a fourth modaka held by the curving trunk is just about to be tasted. In his two left hands, he holds a lotus in the upper hand and an axe in the lower one, with its handle leaning against his shoulder.
| affiliation = [[Deva (Hinduism)|Deva]], [[Brahman]] ([[Ganapatya]]), [[Saguna Brahman]] ([[Panchayatana puja]])
| mantra = {{IAST|Oṃ Shri Gaṇeśāya Namaḥ<br>Oṃ Gaṃ Gaṇapataye Namaḥ}}
| abode =• '''[[Mount Kailash]]''' (with parents [[Shiva]] and [[Parvati]]) ,<br>• '''Ganeshloka'''
| weapon = [[Parashu|{{IAST|Paraśu}} (axe)]], [[Pasha (Hinduism)|{{IAST|pāśa}} (noose)]], [[Elephant goad|{{IAST|aṅkuśa}} (elephant goad)]]
| consorts = {{ubl
| [[Riddhi]] (Prosperity)
| [[Siddhi]] (Attainment)
| [[Buddhi]] (Intelligence)
}}
| mount = [[Mouse]]
| symbols = [[Swastika]], [[Om]], [[Modak]]
| festivals = [[Ganesh Chaturthi]]
| texts = ''[[Ganesha Purana]]'', ''[[Mudgala Purana]]'', ''[[Ganapati Atharvashirsa]]''
| children = Shubha, Labha, [[Santoshi Mata]]
}}
TemplateData
TemplateData
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox deity Creates an infobox for a fictional character of any type.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tracking categories
- Category:Pages using infobox deity with unknown parameters (0)
- Category:Pages using infobox deity with color param (0)
- Category:Pages using infobox deity without type param (4)
| The above documentation is transcluded from Template:Infobox deity/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |