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
Created page with "{{#ifexist:{{FULLPAGENAME}}/{{{1}}} |[[{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]] |[{{fullurl:{{FULLPAGENAME}}/{{{1}}}|action=edit&preload={{{2}}}}} {{{1}}}] }}<noinclude> Internal helper. {{{1}}} = the letter. {{{2}}} = which preload template to use. </noinclude>"
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist:{{FULLPAGENAME}}/{{{1}}}
<noinclude>
|[[{{FULLPAGENAME}}/{{{1}}}|{{{1}}}]]
Outputs one A–Z letter as a clickable element. Common.js checks on load whether that
|[{{fullurl:{{FULLPAGENAME}}/{{{1}}}|action=edit&preload={{{2}}}}} {{{1}}}]
letter's page already exists: if it does, it becomes an ordinary blue link (no "Creating");
}}<noinclude>
if not, it stays a green link that auto-creates the page on click. No Save screen either way.
Internal helper. {{{1}}} = the letter. {{{2}}} = which preload template to use.
 
</noinclude>
Usage (via AZGrid):  {{GARLetterLink|A|Template:Preload/CountryLetter}}
The letters are always subpages of the page you are on.
</noinclude><includeonly><span class="gar-instant-letter" data-title="{{FULLPAGENAME}}/{{{1}}}" data-preload="{{{2}}}">{{{1}}}</span></includeonly>

Latest revision as of 22:40, 24 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 The letters are always subpages of the page you are on.