Templat:TOC top: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
k Robot: Perubahan kosmetika
kTidak ada ringkasan suntingan
Tag: Suntingan visualeditor-wikitext
 
Baris 1: Baris 1:
<templatestyles src="TOC top/styles.css"/>{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div class="toc plainlinks toc-top {{#switch:{{lc:{{{align|}}}}} |left=toc-top-left |right=toc-top-right |center=toc-top-center}}" role="navigation" aria-labelledby="toc-title-text-template" {{#ifeq:{{{primary|}}}|false||id="toc"}} {{#if:{{{clear|}}}|style="clear: {{{clear}}}"}}>
__NOTOC__<table class="toc plainlinks" id="toc" {{#if:{{{align|}}}|align="{{{align}}}"}}>
<div class="{{#ifeq:{{{primary|}}}|false|toc-top-false-title|toctitle}}">{{#ifeq:{{{primary|}}}|false|<span role="heading" id="toc-title-text-template">{{{title|{{MediaWiki:Toc}} }}}</span>|<h2 id="toc-title-text">{{{title|{{MediaWiki:Toc}} }}}</h2>}}</div>
<tr>
{{flatlist}}<noinclude>
<td>
{{TOC bottom}}
<div id="toctitle" style="text-align: center"><span style="font-weight: bold">{{#if:{{{title|}}}|{{{title}}}|{{MediaWiki:Toc}}}}</span></div>
{{dokumentasi}}</noinclude>
<div><div class="hlist" style="margin: auto"><noinclude>
{{TOC bottom}} {{doc|content=

This is used to create custom table of contents templates such as {{tl|list TOC}}.

Please note that this is '''solely for ease of maintaining existing templates'''. Please '''do not use this to write new templates''': instead, browse through [[:category:Wikipedia table of contents templates]] and use an existing template. This code is one of the final pieces in cleaning up years of redundant and overlapping code in this area.

== See also ==

* {{tl|TOC bottom}}

[[Kategori:Wikipedia table of contents templates]]









}}</noinclude>

Revisi terkini sejak 3 Desember 2023 01.28