Redigerer
Mal:Tlc/dok
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This is the {{tlc|tlc}} template. This page is also the documentation for {{tl|tld}} and {{tl|tlf}} that work almost exactly the same. When showing a template name with brackets in documentation you have to escape the brackets in some way so it doesn't become a call to the template. Instead of using <code><nowiki></nowiki></code> tags you can write it simpler and shorter by using these templates. Here is how these templates look. Code to the left and actual rendering to the right: :{{tlc|tlc|name|parameters}} = {{tlc|name|parameters}} :{{tlc|tld|name|parameters}} = {{tld|name|parameters}} :{{tlc|tlf|name|parameters}} = {{tlf|name|parameters}} These templates work similarly to {{tl|tl}} and {{tlx|tlx}}, but they don't make the template name into a link. When writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability. So on the first occurrence of a template name use {{tl|tl}} or {{tlx|tlx}}, and then use {{tlc|tlc}}, {{tld|tld}} or {{tlf|tlf}}. Features of {{tlc|tlc}}, {{tld|tld}} and {{tlf|tlf}}: * They show a template name and up to eight parameters. * They also show empty parameters. (See examples below.) * They prevent [[line wrap]]s in their output. === Examples === Wikitables make the <code><code></code></code> tags transparent, that's why the "<code>code colouring</code>" is missing in these examples. {| class="wikitable"> !Code !! Result !! Comment |- |{{tlc|tlc}} || {{tlc}} || Shows its own syntax. |- |{{tlc|tlc|name}}||{{tlc|name}}|| |- |{{tlc|tlc|name|one}}||{{tlc|name|one}}|| |- |{{tlc|tlc|name|one|two}}||{{tlc|name|one|two}}|| |- |<code><nowiki>{{tlc|name|a|b|c|d|e|f|g|h|i|j}}</nowiki></code>||{{tlc|name|a|b|c|d|e|f|g|h|i}}||Shows up to eight parameters. The rest are dropped. |- |{{tlc|tlc|name|||three|four}}||{{tlc|name|||three|four}}||Also shows empty parameters. |- |{{tlc|tlc|name|||three||}}||{{tlc|name|||three||}}||Even shows empty parameters that come in the end. |- |{{tlc|tlc|name|3=one=a|4=two=b}}||{{tlc|name|one=a|two=b}}||Equal signs is a problem, but there is a fix. |- |{{tlc|tlc|name|3=2=one=a|4=3=two=b}}||{{tlc|name|2=one=a|3=two=b}}||Use numbered parameters to fix it. Remember to start from 2, since the "name" is number 1. |} If you have equal signs in your template parameters then it probably is simpler and clearer to code it using <code><nowiki></code> tags etc. Here are the codes to emulate {{tlf|tlf}}, {{tld|tld}} and {{tlc|tlc}} respectively. Code to the left and actual rendering to the right: :<code><nowiki><nowiki>{{name|one=a|two=b}}</nowiki></nowiki></code> = <nowiki>{{name|one=a|two=b}}</nowiki> :<code><nowiki><tt><nowiki>{{name|one=a|two=b}}</nowiki></tt></nowiki></code> = <code><nowiki>{{name|one=a|two=b}}</nowiki></code> :<code><nowiki><code><nowiki>{{name|one=a|two=b}}</nowiki></code></nowiki></code> = <code><nowiki>{{name|one=a|two=b}}</nowiki></code> === See also === * {{tl|tlc}} – Not linked, several parameters and text in <code><code></code></code> style. * {{tl|tld}} – Not linked, several parameters and {{mono|teletype}} text style. * {{tl|tlf}} – Not linked, several parameters and normal text style. * {{tl|tl}} – Template link, no parameters and normal text style. * {{tl|tlx}} – Template link, several parameters and interwiki links, {{mono|teletype}} text style. * {{tl|tn}} – Same as {{tlf|tl}}, but shows the braces as part of the link. <includeonly> <!-- ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE --> {{DEFAULTSORT:{{PAGENAME}}}} [[Kategori:Formateringsmaler]] [[cy:Nodyn:Tlc]] [[en:Template:Tlc]] [[es:Plantilla:Tlc]] [[fa:الگو:الگوک]] [[fr:Modèle:Tlc]] [[gl:Modelo:Tlc]] [[ja:Template:Tlc]] [[simple:Template:Tlc]] [[sl:Predloga:Tlc]] [[uk:Шаблон:Tlc]] [[ur:سانچہ:Tlc]] </includeonly>
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider hvor ekspansjonsdybden er overskredet
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon