Module wikitrek-DTSpecific
generates a list of backlink using SMW query.
Functions
p.ListAppearances (frame) | generates a list of backlink using SMW query. |
p.SecBoxBuilder (frame) | Content of a generic secondary box |
p.SecBoxSeries (frame) | Content of secondary box |
p.MottoBoxes (frame) | Listo of "motto" sentences (P104) for Template:BoxAvvisi |
dump (entity, indent, omitType) | This dumps the variable (converts it into a string representation of itself) |
concat (...) | Concatenates a variable number of strings and numbers to one single string
ignores tables, bools, functions, and such and replaces them with the empty string
What is the benefit of using variable.concat instead of the .. |
print (v) | This function prints a variable depending on its type: * tables get concatenated by a comma * bools get printed as true or false * strings and numbers get simple returned as string * functions and nils return as emtpy string |
Functions
- p.ListAppearances (frame)
-
generates a list of backlink using SMW query.
Parameters:
- frame
Returns:
-
A bullet list of appearances
- p.SecBoxBuilder (frame)
-
Content of a generic secondary box
Parameters:
- frame
Returns:
-
Wikitext to inject in template
- p.SecBoxSeries (frame)
-
Content of secondary box
Parameters:
- frame
Returns:
-
Wikitext to inject in template
- p.MottoBoxes (frame)
-
Listo of "motto" sentences (P104) for Template:BoxAvvisi
Parameters:
- frame
Returns:
-
Wikitext to inject in template
- dump (entity, indent, omitType)
-
This dumps the variable (converts it into a string representation of itself)
Parameters:
- entity mixed, value to dump
- indent string, can bu used to set an indentation
- omitType
bool, set to true to omit the (
) in front of the value
Returns:
-
string
- concat (...)
-
Concatenates a variable number of strings and numbers to one single string
ignores tables, bools, functions, and such and replaces them with the empty string
What is the benefit of using variable.concat instead of the .. operator? Answer: .. throws an error, when trying to concat bools, tables, functions, etc. This here handels them by converting them to an empty string
Parameters:
- ... varaibles to concatenate
Returns:
-
string
- print (v)
-
This function prints a variable depending on its type:
* tables get concatenated by a comma
* bools get printed as true or false
* strings and numbers get simple returned as string
* functions and nils return as emtpy string
Parameters:
- v
Returns:
-
string