⧼social-icons-mobile-buttons⧽

Template:ColTilesRemote

From Tsadra Commons
Revision as of 12:08, 14 September 2026 by Jeremi (talk | contribs) (Images via filepath: absolute URLs, so they load on the consuming wiki)

The cards for Tsadra's Tibetan collection wikis, written once and shown on all of them.

Each collection site renders this row with:

{{#ask:[[Template:ColTilesRemote]]
	|source=commons
	|format=template
	|template=ColTilesRemote
	|link=none
	|userparam={{SERVERNAME}}
}}

Passing commons.tsadra.org is what stops a site advertising itself: the value arrives as {{{#userparam}}} and each card compares it with its own host=.

To add a collection, add a {{SiteTile}} call above, wrapped in the same #ifeq. Upload its image here, not on the collection wiki — a remote #ask resolves everything on this wiki.

Pass the image as |imageurl={{filepath:NAME.jpg|240}}, never as image=. A File: link is resolved against whichever wiki the markup ends up on, and commons emits a site-relative /thumb.php?f=… path that returns 403 anywhere else — so every image in the row would break. filepath: runs here, where the file is native, and yields an absolute URL that any wiki can load.

Note {{{#userparam}}} is hash-prefixed. {{{userparam}}} and the numbered slots are never set; this was tested against a remote query before the template was written.