Template:Dungeon infobox: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Add nocat functionality. Make world map section display a message that it needs an image, if the field "map" is empty (meaning the image does not yet exist).) |
(Hide map when map=no, display upload message when map=(blank), display map image when map=(any value other than no)) |
||
Line 60: | Line 60: | ||
| colspan="3" class="roundybr" style="text-align:left; background: #FFF" | {{{teamsize}}} | | colspan="3" class="roundybr" style="text-align:left; background: #FFF" | {{{teamsize}}} | ||
|} | |} | ||
|- | {{#ifeq:{{{map|}}}|no||{{!}}- | ||
{{!}} | |||
{ | {{{!}} width="100%" class="roundy" style="border-collapse:collapse" | ||
{{!}} width="2%" {{!}} | |||
{{!}} width="3%" {{!}} | |||
! colspan="2" width="90%" class="roundytop" style="background: #{{{{{bordercolorscheme|MD Blue}}} color light}}; {{#ifeq: {{{colorscheme|MD Red}}}|{{{bordercolorscheme|MD Blue}}}|border-bottom: 1px solid #{{{{{colorscheme|MD Red}}} color}};}}" | ! colspan="2" width="90%" class="roundytop" style="background: #{{{{{bordercolorscheme|MD Blue}}} color light}}; {{#ifeq: {{{colorscheme|MD Red}}}|{{{bordercolorscheme|MD Blue}}}|border-bottom: 1px solid #{{{{{colorscheme|MD Red}}} color}};}}" {{!}} Location | ||
{{!}} width="3%" {{!}} | |||
{{!}} width="2%" {{!}} | |||
{{!}}- | |||
{{!}} colspan="6" width="90px" class="roundy" style="text-align:center; background: #{{{{{colorscheme|MD Red}}} color light}}; border-bottom: 1px solid #{{{{{colorscheme|MD Red}}} color}}" {{!}} {{#if:{{{map|}}}|[[File:{{{name|}}} Map.png|400px|center]]|Please upload a world map highlighting this dungeon's location.<includeonly>{{#if:{{{nocat|}}}||[[Category:Dungeons in need of images]]}}</includeonly>}} | |||
{{!}}} | |||
|} | }} | ||
<noinclude>[[Category:Infobox templates]]</noinclude><includeonly>{{#if:{{{nocat|}}}||[[Category:Mystery dungeons]]}}</includeonly><noinclude> | |}<noinclude>[[Category:Infobox templates]]</noinclude><includeonly>{{#if:{{{nocat|}}}||[[Category:Mystery dungeons]]}}</includeonly><noinclude> | ||
[[de:Vorlage:Dungeon Infobox]] | [[de:Vorlage:Dungeon Infobox]] | ||
[[fr:Modèle:Infobox Donjon]] | [[fr:Modèle:Infobox Donjon]] |
Latest revision as of 14:59, 25 July 2024
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
|