Difference between revisions of "Template:Laurel"

From GodWiki
Jump to navigation Jump to search
m (categorized)
m (Finalised this old draft template, ready for use.)
Line 1: Line 1:
{{#ifexpr: (({{#expr: {{#if:{{{hr|}}}|1|0}} + {{#if:{{{ar|}}}|1|0}} + {{#if:{{{zv|}}}|1|0}} + {{#if:{{{tr|}}}|1|0}} + {{#if:{{{cm|}}}|1|0}} }}) >= 4)
+
{{#switch: {{#expr: {{#if:{{{hr|}}}{{{temple|}}}|1|0}} + {{#if:{{{ar|}}}{{{ark|}}}|1|0}} + {{#if:{{{zv|}}}{{{breeder|}}}{{{animalist|}}}|1|0}} + {{#if:{{{tr|}}}{{{shop|}}}{{{trader|}}}{{{retired|}}}|1|0}} + {{#if:{{{cm|}}}{{{pairs|}}}{{{creatures|}}}|1|0}} }}
|<span style="margin: 0;
+
| 4 | 5 = <span style="margin: 0;
 
     line-height: 1.5;
 
     line-height: 1.5;
 
     padding: 4px 3px 0px 3px;
 
     padding: 4px 3px 0px 3px;
Line 8: Line 8:
 
     display: inline-block;
 
     display: inline-block;
 
     width: auto;
 
     width: auto;
     font-family: 'Lucida Grande',Tahoma,Arial,Helvetica,sans-serif;" title="{{#if: {{{hr|}}} | 庙 - Temple Owner since {{{hr}}}}}{{#if: {{{ar|}}} |
+
     font-family: 'Lucida Grande',Tahoma,Arial,Helvetica,sans-serif;" title="{{#if: {{{hr|}}}{{{temple|}}} | 庙 - Temple Owner since {{{hr|}}}{{{temple|}}}}}{{#if: {{{ar|}}}{{{ark|}}} |
&#10;舟 - Ark Owner since {{{ar}}}}}{{#if: {{{zv|}}} |
+
&#10;舟 - Ark Owner since {{{ar|}}}{{{ark|}}}}}{{#if: {{{zv|}}}{{{breeder|}}}{{{animalist|}}} |
&#10;畜 - Animalist since {{{zv}}}}}{{#if: {{{tr|}}} |
+
&#10;畜 - Animalist since {{{zv}}}}}{{#if: {{{tr|}}}{{{shop|}}}{{{trader|}}}{{{retired|}}} |
&#10;商 - Trader since {{{tr}}}}}{{#if: {{{cm|}}} |
+
&#10;商 - Trader since {{{cm|}}}{{{pairs|}}}{{{creatures|}}}}}{{#if: {{{cm|}}}{{{pairs|}}}{{{creatures|}}} |
&#10;馴 - Creature Master since {{{cm}}}}}">[[Image:{{#expr: {{#if:{{{hr|}}}|1|0}} + {{#if:{{{ar|}}}|1|0}} + {{#if:{{{zv|}}}|1|0}} + {{#if:{{{tr|}}}|1|0}} + {{#if:{{{cm|}}}|1|0}} }}-laurel.png|x20px|top|link=|alt={{#expr: {{#if:{{{hr|}}}|1|0}} + {{#if:{{{ar|}}}|1|0}} + {{#if:{{{zv|}}}|1|0}} + {{#if:{{{tr|}}}|1|0}} + {{#if:{{{cm|}}}|1|0}} }} medal laurel]]</span>|<span style="white-space:nowrap; -moz-border-radius: 12px; -webkit-border-radius: 12px; -khtml-border-radius: 12px; border-radius: 12px; background-color: #FFFED0; border: 1px solid #DF9900; line-height: 1.5; margin: 3px 3px 3px 3px; padding: 2px 5px 2px 5px; color: #AF5900; font-size: 12px; font-weight: bold; width:30px; font-family:'Lucida Grande',Tahoma,Arial,Helvetica,sans-serif">{{#if: {{{hr|}}} | <span title="Temple Owner since {{{hr}}})">庙</span>}}{{#if: {{{ar|}}} | <span title="Ark Owner since {{{ar}}})">舟</span>}}{{#if: {{{zv|}}} | <span title="Animalist since {{{zv}}})">畜</span>}}{{#if: {{{tr|}}} | <span title="Trader since {{{tr}}})">商</span>}}{{#if: {{{cm|}}} | <span title="Creature Master since {{{cm}}})">馴</span>}}
+
&#10;馴 - Creature Master since {{{cm|}}}{{{pairs|}}}{{{creatures|}}}}}">[[Image:{{#expr: {{#if:{{{hr|}}}|1|0}} + {{#if:{{{ar|}}}|1|0}} + {{#if:{{{zv|}}}|1|0}} + {{#if:{{{tr|}}}|1|0}} + {{#if:{{{cm|}}}|1|0}} }}-laurel.png|x20px|top|link=|alt={{#expr: {{#if:{{{hr|}}}|1|0}} + {{#if:{{{ar|}}}|1|0}} + {{#if:{{{zv|}}}|1|0}} + {{#if:{{{tr|}}}|1|0}} + {{#if:{{{cm|}}}|1|0}} }} medal laurel]]</span>
}}</span><noinclude>{{construction}}
+
| 1 | 2 | 3 = {{medal|hr={{{hr|}}}{{{temple|}}}|ar = {{{ar|}}}{{{ark|}}}|zv={{{zv|}}}{{{breeder|}}}{{{animalist|}}}|tr={{{tr|}}}{{{shop|}}}{{{trader|}}}{{{retired|}}}|cm={{{cm|}}}{{{pairs|}}}{{{creatures|}}}}}
<div style="background: #eeeeff;">Parameters:
+
| #default =
 +
}}</span><noinclude>{{doc|content=
 +
Parameters:
  
 
* '''hr''' - Date and time of completion of construction of the temple  
 
* '''hr''' - Date and time of completion of construction of the temple  
Line 49: Line 51:
  
 
[[God | GodName]] {{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 | tr = 2010.02.05 21:44 | ar = 2010.02.05 21:44 }}
 
[[God | GodName]] {{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 | tr = 2010.02.05 21:44 | ar = 2010.02.05 21:44 }}
 
+
}}[[Category:Templates|{{PAGENAME}}]]
 
 
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
 
 
 
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. <span style="border: 1px solid #aaa; background: #fcfcf9; margin-right: .3em; padding: 1px;"><span style="white-space: nowrap">[[Image:godicon.png|God|link=http://godvillegame.com/gods/Godville]] '''[http://godvillegame.com/gods/Godville Godville]'''{{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 | tr = 2010.02.05 21:44 | ar = 2010.02.05 21:44 }}</span> Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 
 
 
{{god}}<span style="border: 1px solid #aaa; background: #fcfcf9; margin-right: .3em; padding: 1px;"><span style="white-space: nowrap">[[Image:godicon.png|God|link=http://godvillegame.com/gods/Godville]] '''[http://godvillegame.com/gods/Godville Godville]'''{{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 | tr = 2010.02.05 21:44 | ar = 2010.02.05 21:44 }}</span><span style="border: 1px solid #aaa; background: #fcfcf9; margin-right: .3em; padding: 1px;"><span style="white-space: nowrap">[[Image:godicon.png|God|link=http://godvillegame.com/gods/Godville]] '''[http://godvillegame.com/gods/Godville Godville]'''{{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 }}</span>
 
 
 
{{god}}
 
 
 
<span style="border: 1px solid #aaa; background: #fcfcf9; margin-right: .3em; padding: 1px;"><span style="white-space: nowrap">[[Image:godicon.png|God|link=http://godvillegame.com/gods/Godville]] '''[http://godvillegame.com/gods/Godville Godville]'''{{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 | tr = 2010.02.05 21:44 | ar = 2010.02.05 21:44 }}</span>
 
 
 
<span style="border: 1px solid #aaa; background: #fcfcf9; margin-right: .3em; padding: 1px;"><span style="white-space: nowrap">[[Image:godicon.png|God|link=http://godvillegame.com/gods/Godville]] '''[http://godvillegame.com/gods/Godville Godville]'''{{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 }}</span>
 
 
 
{|
 
|align="right"|{{god|Godville5}}
 
|-
 
|align="right"|<span style="border: 1px solid #aaa; background: #fcfcf9; margin-right: .3em; padding: 1px;"><span style="white-space: nowrap">[[Image:godicon.png|God|link=http://godvillegame.com/gods/Godville]] '''[http://godvillegame.com/gods/Godville Godville5]'''{{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 | tr = 2010.02.05 21:44 | ar = 2010.02.05 21:44 }}</span>
 
|-
 
|align="right"|<span style="border: 1px solid #aaa; background: #fcfcf9; margin-right: .3em; padding: 1px;"><span style="white-space: nowrap">[[Image:godicon.png|God|link=http://godvillegame.com/gods/Godville]] '''[http://godvillegame.com/gods/Godville Godville5]'''{{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 }}</span>
 
|}
 
</div>
 
[[Category:Templates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Revision as of 12:41, 22 December 2019

📚 Documentation

Parameters:

  • hr - Date and time of completion of construction of the temple
  • zv - Date and time of becoming an animalist (also called breeder)
  • ar - Date and time of completing the ark
  • tr - Date and time of earning the trader medal by purchasing a shop
  • cm - Date and time of earning the creature master medal

Examples of Usage:

[[God | GodName]] {{Laurel | hr = 2010.02.05 21:44}}

[[God | GodName]] {{Laurel | hr = 2010.02.05 21:44 | ar = 2010.06.17 08:13}}

[[God | GodName]] {{Laurel | ar = 2010.02.05 21:44 | hr = 2010.02.05 21:44 | zv = 2010.06.17 08:13}}

[[God | GodName]] {{Laurel | tr = 2010.02.05 21:44 | hr = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | cm = 2010.02.05 21:44}}

[[God | GodName]] {{Laurel | cm = 2010.02.05 21:44 | zv = 2010.06.17 08:13 | hr = 2010.02.05 21:44 | tr = 2010.02.05 21:44 | ar = 2010.02.05 21:44 }}

Result in:

GodName

GodName

GodName

GodName 4 medal laurel

GodName 5 medal laurel