Template:AnimeMarble: Difference between revisions

No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Temporarily commented due to bugs in Cargo.
<noinclude>
<noinclude>
   {{#cargo_declare:
   {{#cargo_declare:
Line 5: Line 6:
     |date = Date
     |date = Date
     |owner = String
     |owner = String
     |anime = String
     |anime = Wikitext
     |reason = String(mandatory,allowed values=Gift,Purchase)
     |reason = String(allowed values=Gift,Purchase)
     |notes = Wikitext
     |notes = Wikitext
     |reference = Wikitext string
     |reference = Wikitext
   }}
   }}
</noinclude><includeonly>
</noinclude>--><includeonly>
   {{#cargo_store:
   <!---{{#cargo_store:
     _table = anime_marbles
     _table = anime_marbles
     |marble_index = {{{index}}}
     |marble_index = {{{1|}}}
     |date = {{{date|}}}
     |date = {{{date|}}}
     |owner = {{{for|}}}
     |owner = {{{for|}}}
Line 20: Line 21:
     |notes = {{{notes|}}}
     |notes = {{{notes|}}}
     |reference = {{{reference|}}}
     |reference = {{{reference|}}}
   }}| {{{index|}}} || {{{date|}}} || {{{for|}}} || {{{anime|}}} || {{#switch {{{reason|}}}
   }}-->|-
    |Gift = style="background-color: #FBDF6B;" | Gifted
    | {{{1|}}}  
    |Purchase = style="background-color: #7BCF5C;" | Purchased
    | {{{date|}}}  
  }} || {{{notes}}} || {{{reference}}}
    | {{Person|{{{for|}}}}}
|-</includeonly><noinclude>
    | {{{anime|}}}  
    | style="background-color:{{#switch: {{{reason|}}}
        |Gift=<nowiki>#FBDF6B</nowiki>
        |Purchase=<nowiki>#7BCF5C</nowiki>
      }};" | {{#switch:{{{reason|}}}
        |Gift=Gifted
        |Purchase=Purchased
      }}  
    | {{{notes|}}}  
    | {{{reference|}}}
</includeonly><noinclude>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"index": {
"1": {
"label": "Marble Index",
"label": "Marble Number",
"description": "The number of this marble.",
"description": "The number of this marble.",
"type": "number",
"type": "number",
Line 51: Line 62:
"label": "Anime Name",
"label": "Anime Name",
"description": "The name of the anime (or gimmick) the marble is for.",
"description": "The name of the anime (or gimmick) the marble is for.",
"type": "string",
"type": "content",
"required": true
"required": true
},
},
Line 67: Line 78:
"label": "Notes",
"label": "Notes",
"description": "A description of why the marble was awarded and any additional context for it.",
"description": "A description of why the marble was awarded and any additional context for it.",
"type": "unbalanced-wikitext"
"type": "content"
},
},
"reference": {
"reference": {
"label": "Reference",
"label": "Reference",
"description": "A citation on why the marble was awarded, usually the stream moment it was redeemed or gifted.",
"description": "A citation on why the marble was awarded, usually the stream moment it was redeemed or gifted.",
"type": "unbalanced-wikitext",
"type": "content",
"suggested": true
"suggested": true
}
}