Jump to content

Template:Sitelink: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
added shortlinked flag
Oops, missed one #if for add subst protection. Below my threshold for testing; if I broke anything, just revert; thanks.
 
Line 1: Line 1:
<includeonly>{{ {{{|safesubst:}}}#if:{{{linked|{{{shortlinked|}}}}}}|[[:{{{1|{{{lang|en}}}}}}:{{ {{{|safesubst:}}}#invoke:WikidataIB|getSiteLink|qid={{{qid|{{ {{{|safesubst:}}}Get QID|{{{title|}}}}}}}}|wiki={{ {{{|safesubst:}}}trim|{{{1|{{{lang|en}}}}}}}}wiki|ps=1}}|{{#if: {{{shortlinked|}}}|{{{1|{{{lang|en}}}}}}|{{ {{{|safesubst:}}}#invoke:WikidataIB|getSiteLink|qid={{{qid|{{ {{{|safesubst:}}}Get QID|{{{title|}}}}}}}}|wiki={{ {{{|safesubst:}}}trim|{{{1|{{{lang|en}}}}}}}}wiki|ps=1}}}}]]|{{ {{{|safesubst:}}}#invoke:WikidataIB|getSiteLink|qid={{{qid|{{ {{{|safesubst:}}}Get QID|{{{title|}}}}}}}}|wiki={{ {{{|safesubst:}}}trim|{{{1|{{{lang|en}}}}}}}}wiki|ps=1}}}}</includeonly><noinclude>
<includeonly>{{ {{{|safesubst:}}}#if:{{{linked|{{{shortlinked|}}}}}}|[[:{{{1|{{{lang|en}}}}}}:{{ {{{|safesubst:}}}#invoke:WikidataIB|getSiteLink|qid={{{qid|{{ {{{|safesubst:}}}Get QID|{{{title|}}}}}}}}|wiki={{ {{{|safesubst:}}}trim|{{{1|{{{lang|en}}}}}}}}wiki|ps=1}}|{{ {{{|safesubst:}}}#if: {{{shortlinked|}}}|{{{1|{{{lang|en}}}}}}|{{ {{{|safesubst:}}}#invoke:WikidataIB|getSiteLink|qid={{{qid|{{ {{{|safesubst:}}}Get QID|{{{title|}}}}}}}}|wiki={{ {{{|safesubst:}}}trim|{{{1|{{{lang|en}}}}}}}}wiki|ps=1}}}}]]|{{ {{{|safesubst:}}}#invoke:WikidataIB|getSiteLink|qid={{{qid|{{ {{{|safesubst:}}}Get QID|{{{title|}}}}}}}}|wiki={{ {{{|safesubst:}}}trim|{{{1|{{{lang|en}}}}}}}}wiki|ps=1}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 05:53, 23 March 2024