Template:Map infobox: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(adding an NPC limit to prevent elongated infoboxes)
(Test for fix)
(One intermediate revision by the same user not shown)
Line 9: Line 9:
|-
|-
!{{ #if: {{{relatedmaps|}}} | width="20%" | width="40%" }} | Notable People:
!{{ #if: {{{relatedmaps|}}} | width="20%" | width="40%" }} | Notable People:
|{{ #if: {{{relatedmaps|}}} | width="40%" | width="60%" }} | {{#ifeq: {{#ask: [[page type is::npc]] [[Found on map::{{PAGENAME}}]]|format=count|limit=5}}| 0 | ''none'' | {{#ask: [[page type is::npc]] [[Found on map::{{PAGENAME}}]]|format=ul}} }}
|{{ #if: {{{relatedmaps|}}} | width="40%" | width="60%" }} | {{#ifeq: {{#ask: [[page type is::npc]] [[Found on map::{{PAGENAME}}]]|format=count}}| 0 | ''none'' | {{#ask: [[page type is::npc]] [[Found on map::{{PAGENAME}}]]|format=ul}} }}
{{ #if: {{{relatedmaps|}}} |
{{ #if: {{{relatedmaps|}}} |
! width="40%"{{!}}Nearby Unlinked Maps: }}
! width="40%"{{!}}Nearby Unlinked Maps: }}
|-
|-
! Landmarks:
! Landmarks:
| {{#if: {{{landmarks|}}}{{#ask: [[page type is::place]] [[Found on map::{{PAGENAME}}]]|default=}} | {{#if:{{{landmarks|}}}|{{{landmarks}}}}}{{#ask: [[page type is::place]] [[Found on map::{{PAGENAME}}]]|format=ul}} | ''none'' }}
| {{#if: {{{landmarks|}}}{{#ask: [[page type is::place]] [[Found on map::{{PAGENAME}}]]|default=}} | {{#if:{{{landmarks|}}}|{{{landmarks}}}}}
{{#ask: [[page type is::place]] [[Found on map::{{PAGENAME}}]]|format=ul}} | ''none'' }}
{{ #if: {{{relatedmaps|}}} |
{{ #if: {{{relatedmaps|}}} |
{{!}} rowspan="3" valign="top"{{!}}
{{!}} rowspan="3" valign="top"{{!}}

Revision as of 21:48, 3 May 2012


Usage

{{Map infobox
|description=
|province=  
|creatures=
|shops= 
|landmarks=
|people=
|relatedmaps=
}}