| 671 | == Setting Anchors == |
| 672 | |
| 673 | An anchor, or more correctly speaking, an [http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1 anchor name] can be added explicitly at any place in the Wiki page, in order to uniquely identify a position in the document: |
| 674 | |
| 675 | {{{ |
| 676 | [=#point1] |
| 677 | }}} |
| 678 | |
| 679 | This sytax was chosen to match the format for explicitly naming the header id [#Headings documented above]. For example.. |
| 680 | {{{ |
| 681 | == Long title == #title |
| 682 | }}} |
| 683 | |
| 684 | It's also very close to the syntax for the corresponding link to that anchor: |
| 685 | {{{ |
| 686 | [#point1] |
| 687 | }}} |
| 688 | |
| 689 | Optionally, a label can be given to the anchor: |
| 690 | {{{ |
| 691 | [[=#point1 '''Point 1''']] |
| 692 | }}} |
| 693 | |
| 694 | ||= Wiki Markup =||= Display =|| |
| 695 | |---------------------------------- |
| 696 | {{{#!td |
| 697 | {{{ |
| 698 | [#point1 jump to the first point] |
| 699 | |
| 700 | ... |
| 701 | |
| 702 | Point1: [=#point1] Jump here |
| 703 | }}} |
| 704 | }}} |
| 705 | {{{#!td |
| 706 | [#point1 jump to the first point] |
| 707 | |
| 708 | ... |
| 709 | |
| 710 | Point1: [=#point1] Jump here |
| 711 | }}} |
| 712 | |
| 713 | For more complex anchors (e.g. when a custom title is wanted), one can use the Span macro, e.g. `[[span(id=point1, class=wikianchor, title=Point 1, ^(1)^)]]`. |
| 714 | |
| 715 | |
879 | | == Setting Anchors == |
880 | | |
881 | | An anchor, or more correctly speaking, an [http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1 anchor name] can be added explicitly at any place in the Wiki page, in order to uniquely identify a position in the document: |
882 | | |
883 | | {{{ |
884 | | [=#point1] |
885 | | }}} |
886 | | |
887 | | This sytax was chosen to match the format for explicitly naming the header id [#Headings documented above]. For example.. |
888 | | {{{ |
889 | | == Long title == #title |
890 | | }}} |
891 | | |
892 | | It's also very close to the syntax for the corresponding link to that anchor: |
893 | | {{{ |
894 | | [#point1] |
895 | | }}} |
896 | | |
897 | | Optionally, a label can be given to the anchor: |
898 | | {{{ |
899 | | [[=#point1 '''Point 1''']] |
900 | | }}} |
901 | | |
902 | | ||= Wiki Markup =||= Display =|| |
903 | | |---------------------------------- |
904 | | {{{#!td |
905 | | {{{ |
906 | | [#point1 jump to the first point] |
907 | | |
908 | | ... |
909 | | |
910 | | Point1: [=#point1] Jump here |
911 | | }}} |
912 | | }}} |
913 | | {{{#!td |
914 | | [#point1 jump to the first point] |
915 | | |
916 | | ... |
917 | | |
918 | | Point1: [=#point1] Jump here |
919 | | }}} |
920 | | |
921 | | For more complex anchors (e.g. when a custom title is wanted), one can use the Span macro, e.g. `[[span(id=point1, class=wikianchor, title=Point 1, ^(1)^)]]`. |
922 | | |
923 | | |