Hello.
I am an admin on Alphabetty Saga in French and English.
I would like to have a table regouping all the data from the different levels of the game (e.g. required score, number of moves, blockers) and use it in the level articles' infoboxes (as values of parameters such as score=, moves=, blockers=).
I am also a contributor to RimWorld Wiki (not part of Fandom), and there the Template:Q exists and allows to get the parameter value on one page from another page.
Its code is quite simple:
{{#vardefine:q|{{#if:1|{{#show: {{{1}}} | ?{{{2}}} | link = none }}}}}}{{#ifeq:{{#var:q}}-|-|{{{3|}}}|{{{5|}}}{{#var:q}}{{{4|}}}}}Syntax
{{Q|page|property|default text|suffix|prefix}}Required parameters:
Page: The name of the page to be queried against.
Property: Show the value of this property.
Optional parameters:
Default text: Text to be displayed if the query has nothing to display. Typically this is N/A or a dash.
Suffix: Text to be displayed immediately after the query result.
Prefix: Text to be displayed immediately before the query result.
The problem is it uses the "#show" parser function, that is part of the extension Semantic MediaWiki, that Fandom does not want to add on request...
I look a bit around and found no real alternatives (except maybe Extension:Cargo, but I'm not sure how to use it).
So, does anyone know how I could export my data from a table to infoboxes located on other pages (or the opposite) on Fandom wikis ?
Kind regards.
