Template:Infobox Other: Difference between revisions

From Shadow Chronicles - Game Master
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{lc:{{{usePageHeader|}}}}}|no||{{pageHeader|{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}}}}}
<includeonly>{{#ifeq:{{lc:{{{usePageHeader|}}}}}|no||{{pageHeader|{{#if:{{{name|}}}|{{{name|}}}|{{#ifeq:{{lc:{{{type|}}}}}|news|News|{{PrintInputDate|{{{dateStartYY|}}}|{{{dateStartMM|}}}|{{{dateStartDD|}}}|dmy}}|{{PAGENAME}}}}}}}}}}
{{{!}} class="floatright" style="width: 300px;"
{{{!}} class="floatright" style="width: 300px;"
{{#if:{{{logo|}}}|{{!}} style="width: 170px;" {{!}} <span class="infobox_TopicName">{{PAGENAME}}</span>
{{!}} colspan="2" style="text-align:center;" {{!}}<span class="infobox_TopicName">{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}</span>
{{!}} style="width: 130px;" {{!}} [[File:Site_{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}_logo.{{{logo|}}}|130px]]
|{{!}} colspan="2" style="text-align:center;" {{!}}<span class="infobox_TopicName">{{PAGENAME}}</span>{{#if:{{{quote|}}}|<br><span class="infobox_TopicNickname ">{{{quote|}}}</span>}}}}
{{!}}-
{{!}}-
{{#if:{{{image|}}}|{{Infobox|image|[[File:Site_{{PAGENAME}}.{{{image|}}}|285px|right]]}}
{{#if:{{{image|}}}|{{Infobox|image|[[File:{{#ifeq:{{{type|}}}|news|News|{{#ifeq:{{{type|}}}|event|Event|{{#ifeq:{{{type|}}}|dynasty|Dynasty|Other}}}}}}_{{#ifeq:{{{type|}}}|dynasty|{{PAGENAME}}|{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}}}.{{{image|}}}|285px|right]]}}
{{#if:{{{imageDesc|}}}|{{Infobox|topic|<span class="infobox_TopicNickname">{{{imageDesc|}}}</span>}} }}
{{#if:{{{imageDesc|}}}|{{Infobox|topic|<span class="infobox_TopicNickname">{{{imageDesc|}}}</span>}} }}
|{{Infobox|line}} }}
|{{Infobox|line}} }}
|}
|}
{{{!}} class="floatright" style="width: 300px;"
{{{!}} class="floatright" style="width: 300px;"
{{#if:{{{dateStartYY|}}}|{{infobox|section|'''{{#if:{{{dateEndYY|}}}|Started|Date}}:'''|{{PrintInputDate|{{{dateStartYY|}}}|{{{dateStartMM|}}}|{{{dateStartDD|}}}}} }}}}
{{#if:{{{dateStartYY|}}}|{{infobox|section|'''{{#if:{{{dateEndYY|}}}|Started|Date}}:'''|{{PrintInputDate|{{{dateStartYY|}}}|{{{dateStartMM|}}}|{{{dateStartDD|}}}|dmy}} }}}}
{{#if:{{{dateEndYY|}}}|{{infobox|section|'''Ended:'''|{{PrintInputDate|{{{dateEndYY|}}}|{{{dateEndMM|}}}|{{{dateEndDD|}}}}} }}}}
{{#if:{{{dateEndYY|}}}|{{infobox|section|'''Ended:'''|{{PrintInputDate|{{{dateEndYY|}}}|{{{dateEndMM|}}}|{{{dateEndDD|}}}|dmy}} }}}}
{{!}}}{{#switch: {{lc:{{{type|}}}}}
{{!}}}{{#switch: {{lc:{{{type|}}}}}
| news  = [[Category:News|{{{dateStartYY|}}} {{{dateStartMM|}}} {{{dateStartDD|}}}]]
  | event = [[Category:Events]]
  | event = [[Category:Events]]
  | #default = <strong class="warning">Warning! Missing parameter (type=<event>). Also it is a wip so... Ignore this.</strong>[[Category:Page with template issues]]
| info  =
| dynasty = [[Category:Dynasties]]
  | #default = <strong class="warning">Warning! Wrong or missing parameter (type=<news/event/info/dynasty>).</strong>[[Category:Page with template issues]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
[[Category:Templates]]
[[Category:Templates]]
==Template parameters==
==Template parameters==
  <nowiki>{{Infobox Other |type=<event> |usePageHeader=<yes/no>
  <nowiki>{{Infobox Other |type=<news/event/info/dynasty> |usePageHeader=<yes/no>
|name            =  
|name            =  
|image          =  
|image          =  
Line 26: Line 27:
|dateEndYY= |dateEndMM= |dateEndDD=  
|dateEndYY= |dateEndMM= |dateEndDD=  
}}</nowiki>
}}</nowiki>
{{Infobox Other |type=<event> |usePageHeader=no
|name            = Yey!
|image          =
|imageDesc      = i am cute
|dateStartYY=2010 |dateStartMM=02 |dateStartDD=10
|dateEndYY=2011|dateEndMM=03 |dateEndDD=10
}}

Latest revision as of 17:49, 13 July 2017

Template parameters

{{Infobox Other |type=<news/event/info/dynasty> |usePageHeader=<yes/no>
|name            = 
|image           = 
|imageDesc       = 

|dateStartYY= |dateStartMM= |dateStartDD= 
|dateEndYY= |dateEndMM= |dateEndDD= 
}}