Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:GARLetterLink: Difference between revisions

Template page
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
<includeonly>{{#ifexist:{{FULLPAGENAME}}/{{{1}}}|[[{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]]|[{{fullurl:{{FULLPAGENAME}}/{{{1}}}|action=edit&preload={{{2}}}}} {{{1}}}]}}</includeonly>
<noinclude>
Outputs one A–Z letter. If that letter's page already exists it becomes a normal link;
if not, it becomes a clickable span that auto-creates the page (no Save screen).
Usage (via AZGrid): {{GARLetterLink|A|Template:Preload/CountryLetter}}
</noinclude><includeonly>{{#ifexist:{{FULLPAGENAME}}/{{{1}}}|[[{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]]|<span class="gar-instant-letter" data-title="{{FULLPAGENAME}}/{{{1}}}" data-preload="{{{2}}}">{{{1}}}</span>}}</includeonly>

Revision as of 21:16, 5 July 2026

Outputs one A–Z letter. If that letter's page already exists it becomes a normal link; if not, it becomes a clickable span that auto-creates the page (no Save screen). Usage (via AZGrid): A