This page is "edit" protected. The "sysop" right is required to "edit" this page.<ul class='mw-logevent-loglines'>
<li data-mw-logid="1976" data-mw-logaction="protect/protect" class="mw-logline-protect"> <a href="/wiki/Special:Log?logid=1976" title="Special:Log">20:15, 30 January 2021</a> <a href="/wiki/User:Celeste" class="mw-userlink" title="User:Celeste"><bdi>Celeste</bdi></a> <span class="mw-usertoollinks mw-changeslist-links"><span><a href="/wiki/User_talk:Celeste" class="mw-usertoollinks-talk" title="User talk:Celeste">talk</a></span> <span><a href="/wiki/Special:Contributions/Celeste" class="mw-usertoollinks-contribs" title="Special:Contributions/Celeste">contribs</a></span></span> protected <a href="/wiki/Module:Outdent" title="Module:Outdent">Module:Outdent</a> [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite) <span class="mw-logevent-actionlink">(<a href="/wiki/Module:Outdent?action=history&offset=20210130201554" title="Module:Outdent">hist</a>)</span> </li>
</ul></ul>
This page is "move" protected. The "sysop" right is required to "move" this page.<ul class='mw-logevent-loglines'>
<li data-mw-logid="1976" data-mw-logaction="protect/protect" class="mw-logline-protect"> <a href="/wiki/Special:Log?logid=1976" title="Special:Log">20:15, 30 January 2021</a> <a href="/wiki/User:Celeste" class="mw-userlink" title="User:Celeste"><bdi>Celeste</bdi></a> <span class="mw-usertoollinks mw-changeslist-links"><span><a href="/wiki/User_talk:Celeste" class="mw-usertoollinks-talk" title="User talk:Celeste">talk</a></span> <span><a href="/wiki/Special:Contributions/Celeste" class="mw-usertoollinks-contribs" title="Special:Contributions/Celeste">contribs</a></span></span> protected <a href="/wiki/Module:Outdent" title="Module:Outdent">Module:Outdent</a> [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite) <span class="mw-logevent-actionlink">(<a href="/wiki/Module:Outdent?action=history&offset=20210130201554" title="Module:Outdent">hist</a>)</span> </li>
</ul></ul>
Module:Outdent
From Celeste Wiki
Revision as of 20:15, 30 January 2021 by Celeste(talk | contribs)(Protected "Module:Outdent" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite)))
localp={}localgetArgs=require('Module:Arguments').getArgsfunctionp.outdent(frame)localargs=getArgs(frame)localwidth=0args['r']=args['reverse']orargs['indent']orargs['r']orargs['in']-- aliases for reverseifnotargs[1]thenargs[1]=''end-- un-nil args[1]width=width+select(2,string.gsub(args[1],':',''))-- increase by 1 for every :width=width+select(2,string.gsub(args[1],'*',''))-- increase by 1 for every *width=width+select(2,string.gsub(args[1],'#',''))*2-- increase by 2 for every #ifwidth==0thenwidth=tonumber(args[1])end-- set width to args[1] if neededifnotwidththenwidth=10end-- default widthifwidth<0thenwidth=-widthargs['r']=notargs['r']endifwidth>40thenwidth=40end-- max widthwidth=width*1.6-- set width to proper widthlocaltop='<span style="display:block;width:'..width..'em;height:0.5em;'..(width==0and''or'border-bottom:1px solid #AAA;')..'border-'..((width==0orargs['r'])and'left'or'right')..':1px solid #AAA;"></span>'-- top halflocalbottom='<span style="display:block;width:'..width..'em;height:0.5em;border-'..(args['r']and'right'or'left')..':1px solid #AAA;"></span>'-- bottom halflocalnote=args[2]and'<span>([[Wikipedia:Indentation#Outdenting|outdent]]) </span>'or''-- notereturn'<div class="outdent-template" style="position:relative;left:1px;">'..top..bottom..note..'</div>';endreturnp
Cookies help us deliver our services. By using our services, you agree to our use of cookies.