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
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
Outputs one A–Z letter. If that letter's page already exists it becomes a normal link;
Outputs one A–Z letter as a clickable element. Common.js checks on load whether that
if not, it becomes a clickable span that auto-creates the page (no Save screen).
letter's page already exists: if it does, it becomes an ordinary blue link (no "Creating");
if not, it stays a green link that auto-creates the page on click. No Save screen either way.
Usage (via AZGrid): {{GARLetterLink|A|Template:Preload/CountryLetter}}
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>
</noinclude><includeonly><span class="gar-instant-letter" data-title="{{FULLPAGENAME}}/{{{1}}}" data-preload="{{{2}}}">{{{1}}}</span></includeonly>

Revision as of 16:28, 8 July 2026

Outputs one A–Z letter as a clickable element. Common.js checks on load whether that letter's page already exists: if it does, it becomes an ordinary blue link (no "Creating"); if not, it stays a green link that auto-creates the page on click. No Save screen either way. Usage (via AZGrid): A