Template:Map infobox: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(use format I meant.)
(Test for fix)
(14 intermediate revisions by 2 users not shown)
Line 6: Line 6:
| {{ #if: {{{relatedmaps|}}} | colspan="3" | 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="3" | colspan="2" }} style="text-align:center;" | {{{description}}}<br>[[{{{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%" }} | {{#if: {{{people|}}} | {{{people}}} | ''none'' }}
|{{ #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}}}}}
|
{{#if: {{{landmarks|}}} | {{{landmarks}}} | ''none'' }}
{{#ask: [[page type is::place]] [[Found on map::{{PAGENAME}}]]|format=ul}} | ''none'' }}
{{ #if: {{{relatedmaps|}}} |
{{ #if: {{{relatedmaps|}}} |
{{!}} rowspan="3" valign="top"{{!}}
{{!}} rowspan="3" valign="top"{{!}}
Line 26: Line 26:
|-
|-
! [[:Category:Bestiary|Creatures]]:
! [[:Category:Bestiary|Creatures]]:
| {{#ifeq: {{#ask: [[page type is::bestiary]] [[Found on map::{{PAGENAME}}]]|format=count}}| 0 | ''none'' | {{#ask: [[page type is::bestiary]] [[Found on map::{{PAGENAME}}]]|format=ul}} }}
| {{#if: {{{creatures|}}} | {{{creatures}}} | ''none'' }}
|-
|-
| {{ #if: {{{relatedmaps|}}} | colspan="3" | colspan="2" }} style="text-align: center;font-size: smaller;" | [[Ranik Maps|Return to map index]]
| {{ #if: {{{relatedmaps|}}} | colspan="3" | colspan="2" }} style="text-align: center;font-size: smaller;" | [[Ranik Maps|Return to map index]]

Revision as of 21:48, 3 May 2012


Usage

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