Jump to content

Module:SongContestData/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TheThomanski (talk | contribs) at 19:59, 25 March 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

The module looks for data in Module:SongContestData/{{{1}}}/{{{2}}}

main

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

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

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