|
|
| Line 54: |
Line 54: |
| |host=dudjom.tsadra.org | | |host=dudjom.tsadra.org |
| |image=File:Dudjom portrait.jpg | | |image=File:Dudjom portrait.jpg |
| }}}}</includeonly><noinclude> | | }}}}</includeonly> |
| The cards for '''Tsadra's Tibetan collection wikis''', written once and shown on all of them.
| |
| | |
| Each collection site renders this row with:
| |
| | |
| <pre>{{#ask:[[Template:ColTilesRemote]]
| |
| |source=commons
| |
| |format=template
| |
| |template=ColTilesRemote
| |
| |link=none
| |
| |userparam={{SERVERNAME}}
| |
| }}</pre>
| |
| | |
| Passing <code>{{SERVERNAME}}</code> is what stops a site advertising itself: the value arrives as <code>{{{#userparam}}}</code> and each card compares it with its own <code>host=</code>.
| |
| | |
| '''To add a collection''', add a {{tl|SiteTile}} call above, wrapped in the same <code>#ifeq</code>. Upload its image '''here''', not on the collection wiki — a remote <code>#ask</code> resolves everything on this wiki.
| |
| | |
| Note <code>{{{#userparam}}}</code> is hash-prefixed. <code>{{{userparam}}}</code> and the numbered slots are never set; this was tested against a remote query before the template was written.
| |
| | |
| [[Category:Custom Templates]]</noinclude>
| |