Template:Locations: Difference between revisions

From LGPedia
Jump to navigationJump to search
Kevin (talk | contribs)
No edit summary
Shiori (talk | contribs)
Updating to use color switch
Line 1: Line 1:
{| class="infobox" align="right" style="border:#000 1px solid;margin-left:2em;margin-bottom:2em;width: 21em; text-align: left; font-size: 90%;background: #fff;" cellspacing="2"
{| class="infobox" align="right" style="border:#c0c0c0 1px solid;margin-left:2em;margin-bottom:2em;width: 21em; text-align: left; font-size: 90%;background: #fff;" cellspacing="2"
|+ style="margin-left:2em;" |  
|+ style="margin-left:2em;" |  
|-
|-
| style="background: {{#ifeq:{{{KM}}}|yes|<nowiki>#</nowiki>653373|{{#ifeq:{{{RES}}}|yes|<nowiki>#</nowiki>71B642|{{#ifeq:{{{N1}}}|yes|<nowiki>#</nowiki>800080|steelblue}}}}}}; font-size: 110%;color:white;" align="center"| '''{{{name}}}'''
| style="color: {{{tcolor|{{Locations/tcolor|{{{series}}}}}}}}; background: {{{color|{{Locations/color|{{{series}}}}}}}}; font-size: 110%;" align="center"| '''{{{name}}}'''
|-
|-
|style="font-size: 100%;" align="center" colspan="1" |
|style="font-size: 100%;" align="center" colspan="1" |
Line 8: Line 8:
| Image not available.<br />Please [[Special:Upload | add]] one.<includeonly>[[Category:Locations needing images]]</includeonly>}}
| Image not available.<br />Please [[Special:Upload | add]] one.<includeonly>[[Category:Locations needing images]]</includeonly>}}
|-  
|-  
| style="text-align: center; background: {{#ifeq:{{{KM}}}|yes|<nowiki>#</nowiki>653373|{{#ifeq:{{{RES}}}|yes|<nowiki>#</nowiki>71B642
| style="text-align: center; color: {{{tcolor|{{Locations/tcolor|{{{series}}}}}}}}; background: {{{color|{{Locations/color|{{{series}}}}}}}}; font-size: 110%;" | '''Appearances'''  
|{{#ifeq:{{{N1}}}|yes|<nowiki>#</nowiki>800080|steelblue}}}}}}; font-size: 110%;color:white;;" | '''Appearances'''  
|- valign=top
|- valign=top
|style="width:8em"|
|style="width:8em"|
{{{appearances}}}
{{{appearances}}}
|-
|-
|}<includeonly>{{#ifeq:{{{KM}}}|yes|[[Category:KateModern locations]]|{{#ifeq:{{{RES}}}|yes|[[Category:LG15: The Resistance locations]]|{{#ifeq:{{{N1}}}|yes|[[Category:N1ckola locations]]|[[Category:Lonelygirl15 locations]]}}}}}}</includeonly>
|}<includeonly>{{#switch: {{lc:{{{series}}}}}
| lg15    = [[Category:Lonelygirl15 locations]]
| km      = [[Category:KateModern locations]]
| res      = [[Category:LG15: The Resistance locations]]
| n1      = [[Category:N1ckola locations]] }}</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
{{Locations
{{Locations
| name            =
| name            =  
| image          =
| image          =  
| appearances    =
| appearances    =  
 
| series          = LG15, KM, RES, or N1
<!-- If this is a non-LG15 location, add one of these lines.
    Otherwise, omit them. -->
| KM              = yes
| RES             = yes
| N1             = yes
}}</pre>
}}</pre>
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 23:20, 18 February 2009

{{{name}}}

Image not available.
Please add one.

Appearances

{{{appearances}}}

Usage

{{Locations
| name            = 
| image           = 
| appearances     = 
| series          = LG15, KM, RES, or N1
}}