Template:Refgram: Difference between revisions

From The Toaq Wiki
(capitalize)
(handle spaces in fragment)
Line 1: Line 1:
<noinclude>
<noinclude>
Use this template to link to authortitative sections in the refgram.
Use this template to link to authoritative sections in the refgram.


Positional arguments:
Positional arguments:
#; page name (required)
#; page name (required)
#
#
#; fragment name (optional) : Such as <code>interjections</code> to link to <code><nowiki>https://.../syntax/#interjections</nowiki></code>.
#; fragment name (optional) : Such as <code>the cleft verb</code> to link to <code><nowiki>https://.../syntax/#the_cleft_verb</nowiki></code>.
</noinclude><includeonly
</noinclude><includeonly
><div class=float-right
><div class=float-right
Line 12: Line 12:
! More on this in the [[refgram]]
! More on this in the [[refgram]]
{{!}}-
{{!}}-
{{!}} style=text-align:center {{!}} [https://toaq.net/refgram/{{{1}}}/{{#if:{{{2|}}}|&#x23;{{{2}}}|}} {{ucfirst:{{{1}}}}}{{#if: {{{2|}}}|<nowiki>:</nowiki> {{ucfirst:{{{2}}}}}|}}]
{{!}} style=text-align:center {{!}} [https://toaq.net/refgram/{{{1}}}/{{#if:{{{2|}}}|&#x23;{{#replace:{{{2}}}|<nowiki> </nowiki>|_}}|}} {{ucfirst:{{{1}}}}}{{#if: {{{2|}}}|<nowiki>:</nowiki> {{ucfirst:{{{2}}}}}|}}]
{{!}}}</div></includeonly>
{{!}}}</div></includeonly>

Revision as of 10:25, 3 December 2023

Use this template to link to authoritative sections in the refgram.

Positional arguments:

  1. page name (required)
  2. fragment name (optional)
    Such as the cleft verb to link to https://.../syntax/#the_cleft_verb.