Template:anchor/documentation: Difference between revisions
Jump to navigation
Jump to search
TheNightAvl (talk | contribs) |
TheNightAvl (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
* {{para|1|req=1}}: anchor ID | * {{para|1|req=1}}: anchor ID | ||
* {{para|2}}: anchor content (inline) | * {{para|2}}: anchor content (inline) | ||
'''OR''' | |||
* {{para|1|req=1}}: language code | |||
* {{para|2|req=1}}: anchor ID minus language name | |||
* {{para|3}}: anchor content (inline) | |||
{{temp|anchor|rad|_genetics}} will generate the anchor <code>Radestrian_genetics</code>. If {{para|1}} is not a language code, the whole of the parameter will be taken as the ID, and {{para|2}} will be taken as content. | |||
== Anchor naming == | == Anchor naming == | ||
When linking with {{temp|m}}, {{temp|m+}} or {{temp|l}}, anchors will be assumed to begin with the language | When linking with {{temp|m}}, {{temp|m+}} or {{temp|l}}, anchors will be assumed to begin with the language name, followed by the specified anchor parameter. Hence, anchor IDs in Radestrian entries should begin with <code>Radestrian</code>. The following systematic approach is also recommended: | ||
* Etymology sections should be labelled with a number: <code> | * Etymology sections should be labelled with a number: <code>Radestrian1</code> | ||
* Senses should be labelled with a number or description following an underscore: <code> | * Senses should be labelled with a number or description following an underscore: <code>Radestrian_1</code>, <code>Radestrian_vitamin</code> | ||
** Hence, <code> | ** Hence, <code>Radestrian3_vitamin</code> should refer to the vitamin sense of Etymology 3. | ||
Linking can then be done by using {{temp|m|rad|word|'''anchor=3_vitamin'''}}, for example. | Linking can then be done by using {{temp|m|rad|word|'''anchor=3_vitamin'''}}, for example. |
Latest revision as of 21:37, 4 April 2024
Creates an anchor ID which can be called in links.
|1=
(required): anchor ID|2=
: anchor content (inline)
OR
|1=
(required): language code|2=
(required): anchor ID minus language name|3=
: anchor content (inline)
{{anchor|rad|_genetics}}
will generate the anchor Radestrian_genetics
. If |1=
is not a language code, the whole of the parameter will be taken as the ID, and |2=
will be taken as content.
Anchor naming
When linking with {{m}}
, {{m+}}
or {{l}}
, anchors will be assumed to begin with the language name, followed by the specified anchor parameter. Hence, anchor IDs in Radestrian entries should begin with Radestrian
. The following systematic approach is also recommended:
- Etymology sections should be labelled with a number:
Radestrian1
- Senses should be labelled with a number or description following an underscore:
Radestrian_1
,Radestrian_vitamin
- Hence,
Radestrian3_vitamin
should refer to the vitamin sense of Etymology 3.
- Hence,
Linking can then be done by using {{m|rad|word|anchor=3_vitamin}}
, for example.