Template:Map infobox: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(test)
(Test for fix)
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
{| class="wikitable" style="{{ #if: {{{relatedmaps|}}} | width: 50em; | width: 30em; }} text-align: left;align:right; font-size: 95%;"
{| class="wikitable" style="{{ #if: {{{relatedmaps|}}} | width: 50em; | width: 30em; }} text-align: left;align:right; font-size: 95%;"
|-
|-
| {{ #if: {{{relatedmaps|}}} | colspan="4" | colspan="2" }} style="font-size: large; text-align:center;" | '''{{PAGENAME}}'''
| {{ #if: {{{relatedmaps|}}} | colspan="3" | colspan="2" }} style="font-size: large; text-align:center;" | '''{{PAGENAME}}'''
|-
|-
| {{ #if: {{{relatedmaps|}}} | colspan="4" | colspan="2" }} style="text-align:center;" | {{{description}}}<br>[[found in::{{{province}}}]] Province
| {{ #if: {{{relatedmaps|}}} | colspan="3" | colspan="2" }} style="text-align:center;" | {{{description}}}<br>[[found in::{{{province}}}]] Province
|-
|-
!{{ #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}}| 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:
| {{#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|}}} |
{{!}} rowspan="3" valign="top"{{!}}
{{!}} rowspan="3" valign="top"{{!}}
{{{relatedmaps}}}
{{{relatedmaps}}}
}}
}}
|-
! 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'' }}
|-
|-
! [[:Category:Shops|Shops]]:
! [[:Category:Shops|Shops]]:

Revision as of 21:48, 3 May 2012


Usage

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