Template:Refgram: Difference between revisions

From The Toaq Wiki
(handle spaces in fragment)
(rewrite to use template:feature and add demonstration)
 
Line 6: Line 6:
#
#
#; fragment name (optional) : Such as <code>the cleft verb</code> to link to <code><nowiki>https://.../syntax/#the_cleft_verb</nowiki></code>.
#; fragment name (optional) : Such as <code>the cleft verb</code> to link to <code><nowiki>https://.../syntax/#the_cleft_verb</nowiki></code>.
<div style="padding: 0.5em; border: 1px solid black;">
{{refgram|syntax|the cleft verb}}
Lorem ipsum dolor
<div style="clear: right;"></div>
</div>
</noinclude><includeonly
</noinclude><includeonly
><div class=float-right
>{{feature|More on this in the [[refgram]]
>
|[https://toaq.net/refgram/{{{1}}}/{{#if:{{{2|}}}|&#x23;{{#replace:{{{2}}}|<nowiki> </nowiki>|_}}|}} {{ucfirst:{{{1}}}}}{{#if: {{{2|}}}|<nowiki>:</nowiki> {{ucfirst:{{{2}}}}}|}}]
{{{!}} class=wikitable
}}</includeonly>
! More on this in the [[refgram]]
{{!}}-
{{!}} 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>

Latest revision as of 15:33, 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.
More on this in the refgram
Syntax: The cleft verb

Lorem ipsum dolor