Template:Anchor/doc: Difference between revisions

Jump to navigation Jump to search
clean up
m (1 revision)
 
(clean up)
 
Line 21: Line 21:
: {{nowrap|1=<code style="color:darkgreen;"><nowiki>{{</nowiki>{{lc:{{BASEPAGENAME}}}}<nowiki>|Foo|Bar|baz}}</nowiki></code>}}  
: {{nowrap|1=<code style="color:darkgreen;"><nowiki>{{</nowiki>{{lc:{{BASEPAGENAME}}}}<nowiki>|Foo|Bar|baz}}</nowiki></code>}}  
:will create three anchors that can then be linked to with <tt><nowiki>[[#Foo]]</nowiki></tt>, <tt><nowiki>[[#Bar]]</nowiki></tt> and <tt><nowiki>[[#baz]]</nowiki></tt>.  
:will create three anchors that can then be linked to with <tt><nowiki>[[#Foo]]</nowiki></tt>, <tt><nowiki>[[#Bar]]</nowiki></tt> and <tt><nowiki>[[#baz]]</nowiki></tt>.  
:Specifying more than 10 anchors will cause an error message to be displayed.{{#ifeq:{{BASEPAGENAME}}|Visible anchor| <br />
:Specifying more than 10 anchors will cause an error message to be displayed.{{#ifeq:{{BASEPAGENAME}}|Visible anchor|
<br />
<br />
4. If the text to be displayed must differ from the anchor (e.g. because it contains brackets for linking), the <code style="color:darkgreen;">text</code> parameter can be used:  
4. If the text to be displayed must differ from the anchor (e.g. because it contains brackets for linking), the <code style="color:darkgreen;">text</code> parameter can be used:  
Line 35: Line 35:
!Meaning
!Meaning
|-
|-
|&quot;
|"
|<code>&amp;quot;</code> <br /><code>&amp;#34;</code>
|<code>&amp;quot;</code> <br /><code>&amp;#34;</code>
|{{N/a}}
|{{N/a}}
|(double)&nbsp;[[quotation mark]]
|(double)&nbsp;[[quotation mark]]
|-
|-
|&#35;
|#
|<code>&amp;#35;</code>
|<code>&amp;#35;</code>
|{{N/a}}
|{{N/a}}
Line 94: Line 94:
* {{tl|Anchor comment}}
* {{tl|Anchor comment}}
* {{tl|Shortcut}}
* {{tl|Shortcut}}
* [[WP:ANCHOR]]
* [[SV:ANCHOR]]
* [[WP:TARGET]]
* [[SV:TARGET]]


<includeonly>
<includeonly>
14,061

edits

Navigation menu