Difference between revisions of "Template:Visible anchor"

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>Eubulides
(Put the first argument inside the spans, not outside. Assume there's a first argument (since it's required anyway).)
(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.)
Line 10: Line 10:
#if: {{{10|}}}|<span id="{{anchorencode:{{{10}}}}}">{{
#if: {{{10|}}}|<span id="{{anchorencode:{{{10}}}}}">{{
#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>
}} }} }} }} }} }} }} }} }} }}{{{1}}}</span>{{
}} }} }} }} }} }} }} }} }} }}{{{text|{{{txt|{{{1}}}}}}}}}</span>{{
#if: {{{2|}}}|</span>{{
#if: {{{2|}}}|</span>{{
#if: {{{3|}}}|</span>{{
#if: {{{3|}}}|</span>{{
Anonymous user