Difference between revisions of "Template:Visible anchor"

294 bytes removed ,  16:45, 10 January 2011
Remove nesting and anchorencode (only needed for external links)
(make it possible to span any text, rather than only the first arg, so that the {{anchor}} can be at the beginning of a para even if the "keyword" isn't.)
w:en>Edokter
(Remove nesting and anchorencode (only needed for external links))
Line 1: Line 1:
<span id="{{anchorencode:{{{1}}}}}">{{
{{#if:{{{1|}}}|<span id="{{{1}}}">{{{text|{{{1}}}}}}</span>}}<!--
#if: {{{2|}}}|<span id="{{anchorencode:{{{2}}}}}">{{
-->{{#if:{{{2|}}}|<span id="{{{2}}}"></span>}}<!--
#if: {{{3|}}}|<span id="{{anchorencode:{{{3}}}}}">{{
-->{{#if:{{{3|}}}|<span id="{{{3}}}"></span>}}<!--
#if: {{{4|}}}|<span id="{{anchorencode:{{{4}}}}}">{{
-->{{#if:{{{4|}}}|<span id="{{{4}}}"></span>}}<!--
#if: {{{5|}}}|<span id="{{anchorencode:{{{5}}}}}">{{
-->{{#if:{{{5|}}}|<span id="{{{5}}}"></span>}}<!--
#if: {{{6|}}}|<span id="{{anchorencode:{{{6}}}}}">{{
-->{{#if:{{{6|}}}|<span id="{{{6}}}"></span>}}<!--
#if: {{{7|}}}|<span id="{{anchorencode:{{{7}}}}}">{{
-->{{#if:{{{7|}}}|<span id="{{{7}}}"></span>}}<!--
#if: {{{8|}}}|<span id="{{anchorencode:{{{8}}}}}">{{
-->{{#if:{{{8|}}}|<span id="{{{8}}}"></span>}}<!--
#if: {{{9|}}}|<span id="{{anchorencode:{{{9}}}}}">{{
-->{{#if:{{{9|}}}|<span id="{{{9}}}"></span>}}<!--
#if: {{{10|}}}|<span id="{{anchorencode:{{{10}}}}}">{{
-->{{#if:{{{10|}}}|<span id="{{{10}}}"></span>}}<!--
#if: {{{11|}}}|<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is 10.</span>
-->{{#if:{{{11|}}}|<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is 10.</span>}}<noinclude>
}} }} }} }} }} }} }} }} }} }}{{{text|{{{txt|{{{1}}}}}}}}}</span>{{
#if: {{{2|}}}|</span>{{
#if: {{{3|}}}|</span>{{
#if: {{{4|}}}|</span>{{
#if: {{{5|}}}|</span>{{
#if: {{{6|}}}|</span>{{
#if: {{{7|}}}|</span>{{
#if: {{{8|}}}|</span>{{
#if: {{{9|}}}|</span>{{
#if: {{{10|}}}|</span>
}} }} }} }} }} }} }} }} }}<noinclude>


{{Documentation}}
{{Documentation}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>
Anonymous user