Module:SongContestData/doc
Appearance
![]() | This is a documentation subpage for Module:SongContestData. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This module depends on the following other modules: |
Usage
[edit]The module looks for data in Module:SongContestData/
{{{1}}}
/{{{2}}}
main
[edit]Returns an attribute value from an entry
{{#invoke:SongContestData|main}}
- Required parameters
Parameter | Description |
---|---|
|1=
|
Contest |
|2=
|
Year |
|3=
|
Entry |
|4=
|
Attribute |
- Examples
{{#invoke:SongContestData|main|esc|2019|no|artist}}
Keiino{{#invoke:SongContestData|main|esc|2019|no|title}}
Spirit in the Sky{{#invoke:SongContestData|main|esc|2019|no|gf_pt}}
331
entryAmount
[edit]Returns the amount of entries in a given contest year
{{#invoke:SongContestData|entryAmount}}
- Required parameters
Parameter | Description |
---|---|
|1=
|
Contest |
|2=
|
Year |
- Examples
{{#invoke:SongContestData|entryAmount|esc|2019}}
41
order
[edit]- Required parameters
Parameter | Description |
---|---|
|1=
|
Contest |
|2=
|
Year |
|3=
|
Attribute to sort |
- Optional parameters
Parameter | Description | Default |
---|---|---|
|desc=
|
Sorts descending if set, otherwise sorts ascending | |
|excludeAtt='String'
|
Excludes entries with set attribute | |
|excludeVal=value
|
Excludes entries where the value of the |excludeAtt= attribute is equal to this parameter
|
|
|excludeInvert=true/false
|
Inverts exclusion. Excludes entries where the value of the |excludeAtt= attribute is not equal to |excludeVal=
|
false |