Difference between revisions of "Template:Laurel"
Jump to navigation
Jump to search
m (Fix test cases) Tags: mobile edit mobile web edit |
m (Complete expansion to full set of Template: Medal parameter names, with documentation) Tags: mobile edit mobile web edit |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{# | + | {{#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: 0px | + | padding: 4px 3px 0px 3px; |
color: #AF5900; | color: #AF5900; | ||
font-size: 12px; | font-size: 12px; | ||
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|}}} | |
− | 舟 - Ark Owner since {{{ar}}}}}{{#if: {{{zv|}}} | | + | 舟 - Ark Owner since {{{ar|}}}{{{ark|}}}}}{{#if: {{{zv|}}}{{{breeder|}}}{{{animalist|}}} | |
− | 畜 - Animalist since {{{zv}}}}}{{#if: {{{tr|}}} | | + | 畜 - Animalist since {{{zv|}}}{{{breeder|}}}{{{animalist|}}}}}{{#if: {{{tr|}}}{{{shop|}}}{{{trader|}}}{{{retired|}}} | |
− | 商 - Trader since {{{tr}}}}}{{#if: {{{cm|}}} | | + | 商 - Trader since {{{tr|}}}{{{shop|}}}{{{trader|}}}{{{retired|}}}}}{{#if: {{{cm|}}}{{{pairs|}}}{{{creatures|}}} | |
− | 馴 - Creature Master since {{{cm}}}}}">[[ | + | 馴 - Creature Master since {{{cm|}}}{{{pairs|}}}{{{creatures|}}}}}">[[File:{{#expr: {{#if:{{{hr|}}}{{{temple|}}}|1|0}} + {{#if:{{{ar|}}}{{{ark|}}}|1|0}} + {{#if:{{{zv|}}}{{{breeder|}}}{{{animalist|}}}|1|0}} + {{#if:{{{tr|}}}|1|0}} + {{#if:{{{cm|}}}{{{pairs|}}}{{{creatures|}}}|1|0}} }}-laurel.png|x20px|top|link=|alt={{#expr: {{#if:{{{hr|}}}{{{temple|}}}|1|0}} + {{#if:{{{ar|}}}{{{ark|}}}|1|0}} + {{#if:{{{zv|}}}{{{breeder|}}}{{{animalist|}}}|1|0}} + {{#if:{{{tr|}}}|1|0}} + {{#if:{{{cm|}}}{{{pairs|}}}{{{creatures|}}}|1|0}} }}-medal laurel]]</span> |
− | }}</span><noinclude>{{ | + | | 1 | 2 | 3 = {{medal|hr={{{hr|}}}{{{temple|}}}|ar = {{{ar|}}}{{{ark|}}}|zv={{{zv|}}}{{{breeder|}}}{{{animalist|}}}|tr={{{tr|}}}{{{shop|}}}{{{trader|}}}{{{retired|}}}|cm={{{cm|}}}{{{pairs|}}}{{{creatures|}}}}} |
− | + | | #default = | |
+ | }}</span><noinclude>{{doc|content= | ||
+ | Parameters: | ||
− | * '''hr''' | + | * '''hr''' or '''temple''' — Date and time of completion of construction of the temple |
− | * '''zv''' | + | * '''zv''' or '''animalist''' or '''breeder''' — Date and time of becoming an animalist (also called breeder) |
− | * '''ar''' | + | * '''ar''' or '''ark''' — Date and time of completing the ark |
− | * '''tr''' | + | * '''tr''' or '''trader''' or '''shop''' or '''retired''' — Date and time of earning the trader medal by purchasing a shop |
− | * '''cm''' | + | * '''cm''' or '''creatures''' — Date and time of earning the creature master medal |
'''Examples of Usage:''' | '''Examples of Usage:''' | ||
Line 50: | Line 52: | ||
[[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 }} | ||
+ | <hr /> | ||
+ | {{tl|Usergod}} example: | ||
+ | {{Usergod|nocat=yes | ||
+ | |name=Example God {{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}}}} | ||
− | + | }}[[Category:Templates|{{PAGENAME}}]] | |
− | + | </noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:07, 22 December 2019
📚 Documentation
Parameters:
- hr or temple — Date and time of completion of construction of the temple
- zv or animalist or breeder — Date and time of becoming an animalist (also called breeder)
- ar or ark — Date and time of completing the ark
- tr or trader or shop or retired — Date and time of earning the trader medal by purchasing a shop
- cm or creatures — 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 庙舟畜
{{Usergod}} example:
Example God ![]() |
---|