Difference between revisions of "Template:Bare anchored list"

From blackwiki
Jump to navigation Jump to search
imported>Manul
(like {{anchored list}} but uses bare-numbered anchors #1, #2,... instead of #alist-1, #alist-2,...; code copied from {{anchored list}})
 
imported>Pppery
(Duplicate code, duplicate code everywhere!)
Line 1: Line 1:
<ol>{{#if:{{{1|}}}|<!--
+
<ol>{{for nowiki||<nowiki>{{#if:{{{1|}}}|{{#tag:li|{{{1}}}|style="{{{style|}}}"|id="{{{i}}}"}}}}</nowiki>|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}|{{{11|}}}|{{{12|}}}|{{{13|}}}|{{{14|}}}|{{{15|}}}|{{{16|}}}|{{{17|}}}|{{{18|}}}|{{{19|}}}|{{{20|}}}|{{{21|}}}|{{{22|}}}|{{{23|}}}|{{{24|}}}|{{{25|}}}|{{{26|}}}|{{{27|}}}|{{{28|}}}|{{{29|}}}|{{{30|}}}|{{{31|}}}|{{{32|}}}|{{{33|}}}|{{{34|}}}|{{{35|}}}|{{{36|}}}|{{{37|}}}|{{{38|}}}|{{{39|}}}|{{{40|}}}|{{{41|}}}|{{{42|}}}|{{{43|}}}|{{{44|}}}|{{{45|}}}|{{{46|}}}|{{{47|}}}|{{{48|}}}|{{{49|}}}|{{{50|}}}|{{{51|}}}|{{{52|}}}|{{{53|}}}|{{{54|}}}|{{{55|}}}|{{{56|}}}|{{{57|}}}|{{{58|}}}|{{{59|}}}|{{{60|}}}|{{{61|}}}|{{{62|}}}|{{{63|}}}|{{{64|}}}|{{{65|}}}|{{{66|}}}|{{{67|}}}|{{{68|}}}|{{{69|}}}|{{{70|}}}|{{{71|}}}|{{{72|}}}|{{{73|}}}|{{{74|}}}|{{{75|}}}|{{{76|}}}|{{{77|}}}|{{{78|}}}|{{{79|}}}|{{{80|}}}|{{{81|}}}|{{{82|}}}|{{{83|}}}|{{{84|}}}|{{{85|}}}|{{{86|}}}|{{{87|}}}|{{{88|}}}|{{{89|}}}|{{{90|}}}|{{{91|}}}|{{{92|}}}|{{{93|}}}|{{{94|}}}|{{{95|}}}|{{{96|}}}|{{{97|}}}|{{{98|}}}|{{{99|}}}}}
--><li style="{{{style|}}}" id="1">{{{1}}}</li>}}<!--
 
-->{{#if:{{{2|}}}|<!--
 
--><li style="{{{style|}}}" id="2">{{{2}}}</li>}}<!--
 
-->{{#if:{{{3|}}}|<!--
 
--><li style="{{{style|}}}" id="3">{{{3}}}</li>}}<!--
 
-->{{#if:{{{4|}}}|<!--
 
--><li style="{{{style|}}}" id="4">{{{4}}}</li>}}<!--
 
-->{{#if:{{{5|}}}|<!--
 
--><li style="{{{style|}}}" id="5">{{{5}}}</li>}}<!--
 
-->{{#if:{{{6|}}}|<!--
 
--><li style="{{{style|}}}" id="6">{{{6}}}</li>}}<!--
 
-->{{#if:{{{7|}}}|<!--
 
--><li style="{{{style|}}}" id="7">{{{7}}}</li>}}<!--
 
-->{{#if:{{{8|}}}|<!--
 
--><li style="{{{style|}}}" id="8">{{{8}}}</li>}}<!--
 
-->{{#if:{{{9|}}}|<!--
 
--><li style="{{{style|}}}" id="9">{{{9}}}</li>}}<!--
 
-->{{#if:{{{10|}}}|<!--
 
--><li style="{{{style|}}}" id="10">{{{10}}}</li>}}<!--
 
-->{{#if:{{{11|}}}|<!--
 
--><li style="{{{style|}}}" id="11">{{{11}}}</li>}}<!--
 
-->{{#if:{{{12|}}}|<!--
 
--><li style="{{{style|}}}" id="12">{{{12}}}</li>}}<!--
 
-->{{#if:{{{13|}}}|<!--
 
--><li style="{{{style|}}}" id="13">{{{13}}}</li>}}<!--
 
-->{{#if:{{{14|}}}|<!--
 
--><li style="{{{style|}}}" id="14">{{{14}}}</li>}}<!--
 
-->{{#if:{{{15|}}}|<!--
 
--><li style="{{{style|}}}" id="15">{{{15}}}</li>}}<!--
 
-->{{#if:{{{16|}}}|<!--
 
--><li style="{{{style|}}}" id="16">{{{16}}}</li>}}<!--
 
-->{{#if:{{{17|}}}|<!--
 
--><li style="{{{style|}}}" id="17">{{{17}}}</li>}}<!--
 
-->{{#if:{{{18|}}}|<!--
 
--><li style="{{{style|}}}" id="18">{{{18}}}</li>}}<!--
 
-->{{#if:{{{19|}}}|<!--
 
--><li style="{{{style|}}}" id="19">{{{19}}}</li>}}<!--
 
-->{{#if:{{{20|}}}|<!--
 
--><li style="{{{style|}}}" id="20">{{{20}}}</li>}}<!--
 
-->{{#if:{{{21|}}}|<!--
 
--><li style="{{{style|}}}" id="21">{{{21}}}</li>}}<!--
 
-->{{#if:{{{22|}}}|<!--
 
--><li style="{{{style|}}}" id="22">{{{22}}}</li>}}<!--
 
-->{{#if:{{{23|}}}|<!--
 
--><li style="{{{style|}}}" id="23">{{{23}}}</li>}}<!--
 
-->{{#if:{{{24|}}}|<!--
 
--><li style="{{{style|}}}" id="24">{{{24}}}</li>}}<!--
 
-->{{#if:{{{25|}}}|<!--
 
--><li style="{{{style|}}}" id="25">{{{25}}}</li>}}<!--
 
-->{{#if:{{{26|}}}|<!--
 
--><li style="{{{style|}}}" id="26">{{{26}}}</li>}}<!--
 
-->{{#if:{{{27|}}}|<!--
 
--><li style="{{{style|}}}" id="27">{{{27}}}</li>}}<!--
 
-->{{#if:{{{28|}}}|<!--
 
--><li style="{{{style|}}}" id="28">{{{28}}}</li>}}<!--
 
-->{{#if:{{{29|}}}|<!--
 
--><li style="{{{style|}}}" id="29">{{{29}}}</li>}}<!--
 
-->{{#if:{{{30|}}}|<!--
 
--><li style="{{{style|}}}" id="30">{{{30}}}</li>}}<!--
 
-->{{#if:{{{31|}}}|<!--
 
--><li style="{{{style|}}}" id="31">{{{31}}}</li>}}<!--
 
-->{{#if:{{{32|}}}|<!--
 
--><li style="{{{style|}}}" id="32">{{{32}}}</li>}}<!--
 
-->{{#if:{{{33|}}}|<!--
 
--><li style="{{{style|}}}" id="33">{{{33}}}</li>}}<!--
 
-->{{#if:{{{34|}}}|<!--
 
--><li style="{{{style|}}}" id="34">{{{34}}}</li>}}<!--
 
-->{{#if:{{{35|}}}|<!--
 
--><li style="{{{style|}}}" id="35">{{{35}}}</li>}}<!--
 
-->{{#if:{{{36|}}}|<!--
 
--><li style="{{{style|}}}" id="36">{{{36}}}</li>}}<!--
 
-->{{#if:{{{37|}}}|<!--
 
--><li style="{{{style|}}}" id="37">{{{37}}}</li>}}<!--
 
-->{{#if:{{{38|}}}|<!--
 
--><li style="{{{style|}}}" id="38">{{{38}}}</li>}}<!--
 
-->{{#if:{{{39|}}}|<!--
 
--><li style="{{{style|}}}" id="39">{{{39}}}</li>}}<!--
 
-->{{#if:{{{40|}}}|<!--
 
--><li style="{{{style|}}}" id="40">{{{40}}}</li>}}<!--
 
-->{{#if:{{{41|}}}|<!--
 
--><li style="{{{style|}}}" id="41">{{{41}}}</li>}}<!--
 
-->{{#if:{{{42|}}}|<!--
 
--><li style="{{{style|}}}" id="42">{{{42}}}</li>}}<!--
 
-->{{#if:{{{43|}}}|<!--
 
--><li style="{{{style|}}}" id="43">{{{43}}}</li>}}<!--
 
-->{{#if:{{{44|}}}|<!--
 
--><li style="{{{style|}}}" id="44">{{{44}}}</li>}}<!--
 
-->{{#if:{{{45|}}}|<!--
 
--><li style="{{{style|}}}" id="45">{{{45}}}</li>}}<!--
 
-->{{#if:{{{46|}}}|<!--
 
--><li style="{{{style|}}}" id="46">{{{46}}}</li>}}<!--
 
-->{{#if:{{{47|}}}|<!--
 
--><li style="{{{style|}}}" id="47">{{{47}}}</li>}}<!--
 
-->{{#if:{{{48|}}}|<!--
 
--><li style="{{{style|}}}" id="48">{{{48}}}</li>}}<!--
 
-->{{#if:{{{49|}}}|<!--
 
--><li style="{{{style|}}}" id="49">{{{49}}}</li>}}<!--
 
-->{{#if:{{{50|}}}|<!--
 
--><li style="{{{style|}}}" id="50">{{{50}}}</li>}}<!--
 
-->{{#if:{{{51|}}}|<!--
 
--><li style="{{{style|}}}" id="51">{{{51}}}</li>}}<!--
 
-->{{#if:{{{52|}}}|<!--
 
--><li style="{{{style|}}}" id="52">{{{52}}}</li>}}<!--
 
-->{{#if:{{{53|}}}|<!--
 
--><li style="{{{style|}}}" id="53">{{{53}}}</li>}}<!--
 
-->{{#if:{{{54|}}}|<!--
 
--><li style="{{{style|}}}" id="54">{{{54}}}</li>}}<!--
 
-->{{#if:{{{55|}}}|<!--
 
--><li style="{{{style|}}}" id="55">{{{55}}}</li>}}<!--
 
-->{{#if:{{{56|}}}|<!--
 
--><li style="{{{style|}}}" id="56">{{{56}}}</li>}}<!--
 
-->{{#if:{{{57|}}}|<!--
 
--><li style="{{{style|}}}" id="57">{{{57}}}</li>}}<!--
 
-->{{#if:{{{58|}}}|<!--
 
--><li style="{{{style|}}}" id="58">{{{58}}}</li>}}<!--
 
-->{{#if:{{{59|}}}|<!--
 
--><li style="{{{style|}}}" id="59">{{{59}}}</li>}}<!--
 
-->{{#if:{{{60|}}}|<!--
 
--><li style="{{{style|}}}" id="60">{{{60}}}</li>}}<!--
 
-->{{#if:{{{61|}}}|<!--
 
--><li style="{{{style|}}}" id="61">{{{61}}}</li>}}<!--
 
-->{{#if:{{{62|}}}|<!--
 
--><li style="{{{style|}}}" id="62">{{{62}}}</li>}}<!--
 
-->{{#if:{{{63|}}}|<!--
 
--><li style="{{{style|}}}" id="63">{{{63}}}</li>}}<!--
 
-->{{#if:{{{64|}}}|<!--
 
--><li style="{{{style|}}}" id="64">{{{64}}}</li>}}<!--
 
-->{{#if:{{{65|}}}|<!--
 
--><li style="{{{style|}}}" id="65">{{{65}}}</li>}}<!--
 
-->{{#if:{{{66|}}}|<!--
 
--><li style="{{{style|}}}" id="66">{{{66}}}</li>}}<!--
 
-->{{#if:{{{67|}}}|<!--
 
--><li style="{{{style|}}}" id="67">{{{67}}}</li>}}<!--
 
-->{{#if:{{{68|}}}|<!--
 
--><li style="{{{style|}}}" id="68">{{{68}}}</li>}}<!--
 
-->{{#if:{{{69|}}}|<!--
 
--><li style="{{{style|}}}" id="69">{{{69}}}</li>}}<!--
 
-->{{#if:{{{70|}}}|<!--
 
--><li style="{{{style|}}}" id="70">{{{70}}}</li>}}<!--
 
-->{{#if:{{{71|}}}|<!--
 
--><li style="{{{style|}}}" id="71">{{{71}}}</li>}}<!--
 
-->{{#if:{{{72|}}}|<!--
 
--><li style="{{{style|}}}" id="72">{{{72}}}</li>}}<!--
 
-->{{#if:{{{73|}}}|<!--
 
--><li style="{{{style|}}}" id="73">{{{73}}}</li>}}<!--
 
-->{{#if:{{{74|}}}|<!--
 
--><li style="{{{style|}}}" id="74">{{{74}}}</li>}}<!--
 
-->{{#if:{{{75|}}}|<!--
 
--><li style="{{{style|}}}" id="75">{{{75}}}</li>}}<!--
 
-->{{#if:{{{76|}}}|<!--
 
--><li style="{{{style|}}}" id="76">{{{76}}}</li>}}<!--
 
-->{{#if:{{{77|}}}|<!--
 
--><li style="{{{style|}}}" id="77">{{{77}}}</li>}}<!--
 
-->{{#if:{{{78|}}}|<!--
 
--><li style="{{{style|}}}" id="78">{{{78}}}</li>}}<!--
 
-->{{#if:{{{79|}}}|<!--
 
--><li style="{{{style|}}}" id="79">{{{79}}}</li>}}<!--
 
-->{{#if:{{{80|}}}|<!--
 
--><li style="{{{style|}}}" id="80">{{{80}}}</li>}}<!--
 
-->{{#if:{{{81|}}}|<!--
 
--><li style="{{{style|}}}" id="81">{{{81}}}</li>}}<!--
 
-->{{#if:{{{82|}}}|<!--
 
--><li style="{{{style|}}}" id="82">{{{82}}}</li>}}<!--
 
-->{{#if:{{{83|}}}|<!--
 
--><li style="{{{style|}}}" id="83">{{{83}}}</li>}}<!--
 
-->{{#if:{{{84|}}}|<!--
 
--><li style="{{{style|}}}" id="84">{{{84}}}</li>}}<!--
 
-->{{#if:{{{85|}}}|<!--
 
--><li style="{{{style|}}}" id="85">{{{85}}}</li>}}<!--
 
-->{{#if:{{{86|}}}|<!--
 
--><li style="{{{style|}}}" id="86">{{{86}}}</li>}}<!--
 
-->{{#if:{{{87|}}}|<!--
 
--><li style="{{{style|}}}" id="87">{{{87}}}</li>}}<!--
 
-->{{#if:{{{88|}}}|<!--
 
--><li style="{{{style|}}}" id="88">{{{88}}}</li>}}<!--
 
-->{{#if:{{{89|}}}|<!--
 
--><li style="{{{style|}}}" id="89">{{{89}}}</li>}}<!--
 
-->{{#if:{{{90|}}}|<!--
 
--><li style="{{{style|}}}" id="90">{{{90}}}</li>}}<!--
 
-->{{#if:{{{91|}}}|<!--
 
--><li style="{{{style|}}}" id="91">{{{91}}}</li>}}<!--
 
-->{{#if:{{{92|}}}|<!--
 
--><li style="{{{style|}}}" id="92">{{{92}}}</li>}}<!--
 
-->{{#if:{{{93|}}}|<!--
 
--><li style="{{{style|}}}" id="93">{{{93}}}</li>}}<!--
 
-->{{#if:{{{94|}}}|<!--
 
--><li style="{{{style|}}}" id="94">{{{94}}}</li>}}<!--
 
-->{{#if:{{{95|}}}|<!--
 
--><li style="{{{style|}}}" id="95">{{{95}}}</li>}}<!--
 
-->{{#if:{{{96|}}}|<!--
 
--><li style="{{{style|}}}" id="96">{{{96}}}</li>}}<!--
 
-->{{#if:{{{97|}}}|<!--
 
--><li style="{{{style|}}}" id="97">{{{97}}}</li>}}<!--
 
-->{{#if:{{{98|}}}|<!--
 
--><li style="{{{style|}}}" id="98">{{{98}}}</li>}}<!--
 
-->{{#if:{{{99|}}}|<!--
 
--><li style="{{{style|}}}" id="99">{{{99}}}</li>}}
 
 
</ol><noinclude>{{doc}}</noinclude>
 
</ol><noinclude>{{doc}}</noinclude>

Revision as of 22:09, 4 August 2017

Template documentation[view] [edit] [history] [purge]

This template can be used to create an ordered list which generates numbered HTML anchors for every bullet point. This makes it much easier to maintain lists where anchors to individual entries are required.

The generated anchors are named "1", "2", etc., so naturally there should be only one instance of {{bare anchored list}} per page.

Usage

{{bare anchored list
|First entry
|Second entry
|and so on
|...
|Last entry
}}

Example:

  1. First entry
  2. Second entry
  3. and so on
  4. ...
  5. Last entry

Up to 99 entries are supported.

See also