Template:Infobox Other: Difference between revisions

From Shadow Chronicles - Mortal
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{raw:scGM:Infobox Other |type={{{type|}}} |usePageHeader={{{usePageHeader|}}}
<includeonly>{{#ifeq:{{lc:{{{usePageHeader|}}}}}|no||{{pageHeader|{{#if:{{{name|}}}|{{{name|}}}|{{#ifeq:{{lc:{{{type|}}}}}|news|News|{{PrintInputDate|{{{dateStartYY|}}}|{{{dateStartMM|}}}|{{{dateStartDD|}}}|dmy}}|{{PAGENAME}}}}}}}}}}
|name           = {{{name|}}}
{{{!}} class="floatright" style="width: 300px;"
|image          = {{{image|}}}
{{!}} colspan="2" style="text-align:center;" {{!}}<span class="infobox_TopicName">{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}</span>
|imageDesc      = {{{imageDesc|}}}
{{!}}-
 
{{#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]]}}
|dateStartYY={{{dateStartYY|}}} |dateStartMM={{{dateStartMM|}}} |dateStartDD={{{dateStartDD|}}}
{{#if:{{{imageDesc|}}}|{{Infobox|topic|<span class="infobox_TopicNickname">{{{imageDesc|}}}</span>}} }}
|dateEndYY={{{dateEndYY|}}} |dateEndMM={{{dateEndMM|}}} |dateEndDD={{{dateEndDD|}}}
|{{Infobox|line}} }}
}}</includeonly><noinclude>[[Category:Templates]]
|}
{{{!}} class="floatright" style="width: 300px;"
{{#if:{{{dateStartYY|}}}|{{infobox|section|'''{{#if:{{{dateEndYY|}}}|Started|Date}}:'''|{{PrintInputDate|{{{dateStartYY|}}}|{{{dateStartMM|}}}|{{{dateStartDD|}}}|dmy}} }}}}
{{#if:{{{dateEndYY|}}}|{{infobox|section|'''Ended:'''|{{PrintInputDate|{{{dateEndYY|}}}|{{{dateEndMM|}}}|{{{dateEndDD|}}}|dmy}} }}}}
{{!}}}{{#switch: {{lc:{{{type|}}}}}
| news  = [[Category:News|{{{dateStartYY|}}} {{{dateStartMM|}}} {{{dateStartDD|}}}]]
| event = [[Category:Events]]
| 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>
[[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          =  

Latest revision as of 21:10, 28 August 2022

Template parameters

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

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