Maintenance
All wikis at Biowikifarm are in read-only mode due to the restoration after a severe cyberattack in October 2023.
After 1 year being shut down the Biowikifarm is online again.
You see the latest restored version from 18th October 2023.
Difference between revisions of "Template:Back to TOC"
m (created) |
m (+adjusted error in height) |
||
Line 1: | Line 1: | ||
− | <includeonly><!-- no line break here -->{{#ifeq: {{{1|}}} | text | <!-- only 'text' without 'text=back/zurück' --> [[File:Go-to-top_word_{{CONTENTLANGUAGE}}.svg|link=#toc|<!-- height -->{{#switch:{{CONTENTLANGUAGE}} | + | <includeonly><!-- no line break here -->{{#ifeq: {{{1|}}} | text | <!-- only 'text' without 'text=back/zurück' --> [[File:Go-to-top_word_{{CONTENTLANGUAGE}}.svg|link=#toc|x<!-- height -->{{#switch:{{CONTENTLANGUAGE}} |
|en={{#if: {{{height|}}} | <!-- height:true --> {{{height}}}}} | |en={{#if: {{{height|}}} | <!-- height:true --> {{{height}}}}} | ||
|de | |de | ||
Line 11: | Line 11: | ||
|de<!-- no line break here --> | |de<!-- no line break here --> | ||
|de-formal=<span class="error"><tt>hoehe={{{height|}}}{{{hoehe|}}}</tt> wird nur verwendet, wenn <tt><nowiki>{{</nowiki>Verweis zurück Inhalt{{!}}text{{!}}hoehe={{{height|}}}{{{hoehe|}}}<nowiki>}}</nowiki></tt> angegeben ist, nicht zusammen mit <tt>'text={{{text}}}'</tt>.</span> | |de-formal=<span class="error"><tt>hoehe={{{height|}}}{{{hoehe|}}}</tt> wird nur verwendet, wenn <tt><nowiki>{{</nowiki>Verweis zurück Inhalt{{!}}text{{!}}hoehe={{{height|}}}{{{hoehe|}}}<nowiki>}}</nowiki></tt> angegeben ist, nicht zusammen mit <tt>'text={{{text}}}'</tt>.</span> | ||
− | }}<!-- end:test height/hoehe -->}}|[[File:Go-to-top_arrow.svg|link=#toc|<!-- height -->{{#switch:{{CONTENTLANGUAGE}} | + | }}<!-- end:test height/hoehe -->}}|[[File:Go-to-top_arrow.svg|link=#toc|x<!-- height -->{{#switch:{{CONTENTLANGUAGE}} |
|en={{#if: {{{height|}}} | <!-- height:true --> {{{height}}} | <!-- height:false -->16px}} | |en={{#if: {{{height|}}} | <!-- height:true --> {{{height}}} | <!-- height:false -->16px}} | ||
|de | |de |
Latest revision as of 16:57, 6 February 2010
[edit]
DocumentationContents
[hide]Usage
{{Back to TOC}}
produces especially in sections a back-arrow to the table of contents:
== Section==
{{Back to TOC|text}}
produces a text:
== Section==
These are images and for sections it's possible to adjust the size of this image by e.g.height=12px
:
== Section==
{{Back to TOC|text=Back to TOC}}
produces the given text
“Back to TOC” but it does not work in sections properly, because in TOC you see any text of the backlink.
Technical problem: scaling of heigh is done by [[File:…|xheightpx]]
but scaling beyond the original height seems not to work, but width-scaling does. Unfortunately the height is the desired value, not width.